1 19 20 package org.netbeans.modules.subversion.ui.actions; 21 22 import org.netbeans.api.project.*; 23 import org.netbeans.api.project.ui.*; 24 import org.netbeans.modules.subversion.util.*; 25 import org.openide.util.*; 26 import org.openide.util.actions.SystemAction; 27 28 38 public abstract class AbstractAllAction extends SystemAction { 39 40 41 public AbstractAllAction() { 42 setIcon(null); 43 putValue("noIconInMenu", Boolean.TRUE); } 45 46 49 public boolean isEnabled() { 50 if (super.isEnabled()) { 51 Project projects[] = OpenProjects.getDefault().getOpenProjects(); 52 for (int i = 0; i < projects.length; i++) { 53 Project project = projects[i]; 54 if (SvnUtils.isVersionedProject(project)) { 55 return true; 56 } 57 } 58 } 59 return false; 60 } 61 62 public HelpCtx getHelpCtx() { 63 return new HelpCtx(getClass()); 64 } 65 66 } 67 | Popular Tags |