mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-113199 Grails Plugins manager uses application.properties instead of BuildConfig.groovy
Disable Grails plugin dialog for Grails 2.3.0
This commit is contained in:
@@ -19,7 +19,7 @@ public abstract class MvcActionBase extends DumbAwareAction {
|
||||
@Override
|
||||
public final void actionPerformed(AnActionEvent e) {
|
||||
Pair<MvcFramework, Module> pair = guessFramework(e);
|
||||
if (pair != null && isFrameworkSupported(pair.getFirst())) {
|
||||
if (pair != null && isSupported(pair.getFirst(), pair.getSecond())) {
|
||||
actionPerformed(e, pair.getSecond(), pair.getFirst());
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,10 @@ public abstract class MvcActionBase extends DumbAwareAction {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected boolean isSupported(@NotNull MvcFramework framework, @NotNull Module module) {
|
||||
return isFrameworkSupported(framework);
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static Pair<MvcFramework, Module> guessFramework(AnActionEvent event) {
|
||||
final Module module = event.getData(event.getPlace().equals(ActionPlaces.MAIN_MENU) ? LangDataKeys.MODULE : LangDataKeys.MODULE_CONTEXT);
|
||||
@@ -74,7 +78,7 @@ public abstract class MvcActionBase extends DumbAwareAction {
|
||||
|
||||
public final void update(AnActionEvent event) {
|
||||
Pair<MvcFramework, Module> pair = guessFramework(event);
|
||||
if (pair != null && isFrameworkSupported(pair.getFirst())) {
|
||||
if (pair != null && isSupported(pair.getFirst(), pair.getSecond())) {
|
||||
event.getPresentation().setVisible(true);
|
||||
updateView(event, pair.getFirst(), pair.getSecond());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user