-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request winterDroid#119 from winterDroid/develop
Release 0.4
- Loading branch information
Showing
54,583 changed files
with
2,389 additions
and
645 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
language: java | ||
sudo: false | ||
|
||
notifications: | ||
email: false | ||
|
||
branches: | ||
only: | ||
- master | ||
- develop | ||
|
||
before_script: | ||
- if [ $TRAVIS_BRANCH == 'develop' ]; then export PLUGIN_CHANNEL=nightly; fi | ||
|
||
script: | ||
- ./gradlew buildPlugin | ||
- if [ $TRAVIS_PULL_REQUEST == 'false' ]; then ./gradlew publishPlugin; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/java/de/mprengemann/intellij/plugin/androidicons/IProjectSettingsComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package de.mprengemann.intellij.plugin.androidicons; | ||
|
||
import com.intellij.openapi.components.ProjectComponent; | ||
|
||
public interface IProjectSettingsComponent extends ProjectComponent { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/main/java/de/mprengemann/intellij/plugin/androidicons/ProjectSettingsComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package de.mprengemann.intellij.plugin.androidicons; | ||
|
||
import com.intellij.openapi.application.ApplicationManager; | ||
import com.intellij.openapi.components.AbstractProjectComponent; | ||
import com.intellij.openapi.project.Project; | ||
import de.mprengemann.intellij.plugin.androidicons.controllers.IControllerFactory; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class ProjectSettingsComponent extends AbstractProjectComponent implements IProjectSettingsComponent { | ||
private IControllerFactory controllerFactory; | ||
|
||
protected ProjectSettingsComponent(Project project) { | ||
super(project); | ||
} | ||
|
||
@Override | ||
public void projectOpened() { | ||
this.controllerFactory.setProject(myProject); | ||
} | ||
|
||
@Override | ||
public void initComponent() { | ||
super.initComponent(); | ||
final IconApplication iconApplication = ApplicationManager.getApplication().getComponent(IconApplication.class); | ||
this.controllerFactory = iconApplication.getControllerFactory(); | ||
} | ||
|
||
@Override | ||
public void disposeComponent() { | ||
super.disposeComponent(); | ||
this.controllerFactory = null; | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public String getComponentName() { | ||
return "ProjectSettingsComponent"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.