public void update(AnActionEvent e) {
   boolean enabled = true;
   for (DependenciesBuilder builder : myBuilders) {
     enabled &= builder.getScope().isValid();
   }
   e.getPresentation().setEnabled(enabled);
 }
 public void update(final AnActionEvent e) {
   super.update(e);
   final PatternDialectProvider provider =
       PatternDialectProvider.getInstance(mySettings.SCOPE_TYPE);
   e.getPresentation().setText(provider.getDisplayName());
   e.getPresentation().setIcon(provider.getIcon());
 }
 public void update(final AnActionEvent e) {
   final boolean[] direct = new boolean[] {true};
   processDependencies(
       getSelectedScope(myLeftTree),
       getSelectedScope(myRightTree),
       new Processor<List<PsiFile>>() {
         public boolean process(final List<PsiFile> path) {
           direct[0] = false;
           return false;
         }
       });
   e.getPresentation().setEnabled(!direct[0]);
 }
 public void update(final AnActionEvent e) {
   final Presentation presentation = e.getPresentation();
   presentation.setEnabled(false);
   final PackageDependenciesNode leftNode = myLeftTree.getSelectedNode();
   final PackageDependenciesNode rightNode = myRightTree.getSelectedNode();
   if (leftNode != null && rightNode != null) {
     final PatternDialectProvider provider =
         PatternDialectProvider.getInstance(mySettings.SCOPE_TYPE);
     presentation.setEnabled(
         (provider.createPackageSet(leftNode, true) != null
                 || provider.createPackageSet(leftNode, false) != null)
             && (provider.createPackageSet(rightNode, true) != null
                 || provider.createPackageSet(rightNode, false) != null));
   }
 }
 public void update(AnActionEvent e) {
   PackageDependenciesNode node = myRightTree.getSelectedNode();
   e.getPresentation().setEnabled(node != null && node.canSelectInLeftTree(myDependencies));
 }
 public void update(final AnActionEvent e) {
   super.update(e);
   e.getPresentation().setEnabled(getScope() != null);
 }
 public void update(final AnActionEvent e) {
   super.update(e);
   e.getPresentation().setEnabled(!getSelectedScope(myLeftTree).isEmpty());
 }
 public void update(final AnActionEvent e) {
   super.update(e);
   e.getPresentation().setEnabled(mySettings.UI_SHOW_MODULES);
 }