Skip to content

Commit

Permalink
fix inspection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
VISTALL committed Aug 23, 2024
1 parent 2ee3564 commit d10aa4b
Show file tree
Hide file tree
Showing 4 changed files with 201 additions and 202 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.consulo/
target/
plugin/sandbox/
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@

package com.intellij.gwt.impl.actions;

import com.intellij.gwt.GwtBundle;
import com.intellij.gwt.base.actions.GwtCreateActionBase;
import consulo.annotation.component.ActionImpl;
import consulo.annotation.component.ActionParentRef;
import consulo.annotation.component.ActionRef;
import consulo.google.gwt.base.icon.GwtIconGroup;
import consulo.google.gwt.localize.GwtLocalize;
import consulo.ui.annotation.RequiredUIAccess;
import consulo.ui.ex.action.AnActionEvent;
import consulo.ui.ex.action.AnSeparator;
import consulo.ui.ex.action.DefaultActionGroup;
Expand All @@ -30,27 +31,23 @@
* @author nik
*/
@ActionImpl(id = "GWT", children = {
@ActionRef(type = CreateGwtTestCaseAction.class),
@ActionRef(type = CreateGwtModuleAction.class),
@ActionRef(type = CreateGwtEntryPointAction.class),
@ActionRef(type = CreateGwtSerializableClassAction.class),
@ActionRef(type = AnSeparator.class),
@ActionRef(type = CreateGwtSampleAppAction.class),
@ActionRef(type = CreateGwtTestCaseAction.class),
@ActionRef(type = CreateGwtModuleAction.class),
@ActionRef(type = CreateGwtEntryPointAction.class),
@ActionRef(type = CreateGwtSerializableClassAction.class),
@ActionRef(type = AnSeparator.class),
@ActionRef(type = CreateGwtSampleAppAction.class),
}, parents = @ActionParentRef(@ActionRef(id = "NewGroup")))
public class GwtCreateActionGroup extends DefaultActionGroup
{
public GwtCreateActionGroup()
{
super(GwtBundle.message("action.group.gwt.title"), true);
getTemplatePresentation().setDescription(GwtBundle.message("action.group.gwt.description"));
getTemplatePresentation().setIcon(GwtIconGroup.gwt());
}


@Override
public void update(AnActionEvent e)
{
e.getPresentation().setVisible(GwtCreateActionBase.isUnderSourceRootsOfModuleWithGwtFacet(e));
}
public class GwtCreateActionGroup extends DefaultActionGroup {
public GwtCreateActionGroup() {
super(GwtLocalize.actionGroupGwtTitle(), true);
getTemplatePresentation().setDescriptionValue(GwtLocalize.actionGroupGwtDescription());
getTemplatePresentation().setIcon(GwtIconGroup.gwt());
}

@RequiredUIAccess
@Override
public void update(AnActionEvent e) {
e.getPresentation().setVisible(GwtCreateActionBase.isUnderSourceRootsOfModuleWithGwtFacet(e));
}
}
Loading

0 comments on commit d10aa4b

Please sign in to comment.