-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TASK: Refactor settings and startup activity
- Loading branch information
Showing
7 changed files
with
67 additions
and
22 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/main/java/de/vette/idea/neos/FrameworkConfigurableProvider.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,22 @@ | ||
package de.vette.idea.neos; | ||
|
||
import com.intellij.openapi.project.Project; | ||
import com.jetbrains.php.frameworks.PhpFrameworkConfigurable; | ||
import com.jetbrains.php.frameworks.PhpFrameworkConfigurableProvider; | ||
import org.jetbrains.annotations.Nls; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class FrameworkConfigurableProvider implements PhpFrameworkConfigurableProvider { | ||
public FrameworkConfigurableProvider() { | ||
} | ||
|
||
@Override | ||
public @Nls @NotNull String getName() { | ||
return "Neos"; | ||
} | ||
|
||
@Override | ||
public @NotNull PhpFrameworkConfigurable createConfigurable(@NotNull Project project) { | ||
return new SettingsForm(project); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/de/vette/idea/neos/FrameworkUsageProvider.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,20 @@ | ||
package de.vette.idea.neos; | ||
|
||
import com.intellij.openapi.project.Project; | ||
import com.jetbrains.php.frameworks.PhpFrameworkUsageProvider; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
public class FrameworkUsageProvider implements PhpFrameworkUsageProvider { | ||
public FrameworkUsageProvider() { | ||
} | ||
|
||
@Override | ||
public @NotNull String getName() { | ||
return "Neos"; | ||
} | ||
|
||
@Override | ||
public boolean isEnabled(@NotNull Project project) { | ||
return Settings.getInstance(project).pluginEnabled; | ||
} | ||
} |
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
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