@Override public void update(@NotNull AnActionEvent e) { final Presentation presentation = e.getPresentation(); final Project project = e.getProject(); if (project == null) { presentation.setEnabledAndVisible(false); return; } presentation.setEnabledAndVisible(true); }
@Override public void updateInPerspective(@NotNull ActionEvent event) { event.getPresentation().setEnabledAndVisible(true); } }
/** {@inheritDoc} */ @Override public void updateInPerspective(@NotNull ActionEvent event) { event.getPresentation().setEnabledAndVisible(true); } }
@Override public void updateInPerspective(@NotNull ActionEvent event) { event.getPresentation().setEnabledAndVisible(true); } }
@Override public void updateInPerspective(@NotNull ActionEvent event) { event.getPresentation().setEnabledAndVisible(true); } }
@Override public void updateInPerspective(@NotNull ActionEvent event) { event.getPresentation().setEnabledAndVisible(true); } }
@Override public void updateInPerspective(@NotNull ActionEvent event) { event.getPresentation().setEnabledAndVisible(true); } }
@Override public void updateInPerspective(@NotNull ActionEvent event) { event.getPresentation().setEnabledAndVisible(true); } }
@Override public void update(ActionEvent e) { if (!(activePart instanceof ProjectExplorerPresenter)) { e.getPresentation().setEnabledAndVisible(false); return; } e.getPresentation().setEnabledAndVisible(true); }
@Override public void update(ActionEvent e) { if (activePartStack == null) { e.getPresentation().setEnabledAndVisible(false); return; } e.getPresentation() .setEnabledAndVisible(PartStack.State.NORMAL == activePartStack.getPartStackState()); }
@Override public void update(ActionEvent e) { if (activePartStack == null) { e.getPresentation().setEnabledAndVisible(false); return; } e.getPresentation() .setEnabledAndVisible(PartStack.State.MAXIMIZED == activePartStack.getPartStackState()); }
/** {@inheritDoc} */ @Override public void updateInPerspective(@NotNull ActionEvent event) { event.getPresentation().setEnabledAndVisible(editorAgent.getActiveEditor() != null); }
@Override public void update(ActionEvent e) { final Resource resource = appContext.getResource(); if (resource == null) { e.getPresentation().setEnabledAndVisible(false); return; } final Optional<Project> project = resource.getRelatedProject(); e.getPresentation().setEnabledAndVisible(project.isPresent() && project.get().isTypeOf(JAVAC)); } }
@Override public void update(ActionEvent e) { e.getPresentation().setEnabledAndVisible(commandActionsPopUpGroup.getChildrenCount() != 0); } }
@Override public void updateInPerspective(ActionEvent event) { Optional<DebugConfiguration> configurationOptional = configurationsManager.getCurrentDebugConfiguration(); boolean isCurrentConfig = configurationOptional.isPresent() && configuration.equals(configurationOptional.get()); event.getPresentation().setEnabledAndVisible(!isCurrentConfig); }
@Override public final void update(ActionEvent e) { if (appContext.getRootProject() == null) { e.getPresentation().setEnabledAndVisible(false); return; } updateProjectAction(e); }
@Override public void update(ActionEvent e) { CommandImpl command = ((CommandsExplorerView) commandsExplorer.getView()).getSelectedCommand(); e.getPresentation().setEnabledAndVisible(command != null); }
@Override public void update(ActionEvent e) { final TreeExpander treeExpander = getTreeExpander(); e.getPresentation().setEnabledAndVisible(treeExpander.isCollapseEnabled()); } }
@Override public void update(ActionEvent e) { final TreeExpander treeExpander = getTreeExpander(); e.getPresentation().setEnabledAndVisible(treeExpander.isExpandEnabled()); } }
@Override public void update(ActionEvent e) { CommandImpl command = ((CommandsExplorerView) commandsExplorer.getView()).getSelectedCommand(); e.getPresentation().setEnabledAndVisible(command != null); }