1 package org.enhydra.kelp.jbuilder.actions; 2 3 import com.borland.primetime.actions.ActionGroup; 4 import javax.swing.Icon ; 5 import com.borland.primetime.ide.Browser; 6 import com.borland.jbuilder.node.JBProject; 7 import com.borland.primetime.vfs.Url; 8 import java.io.File ; 9 10 18 19 public class EnhydraGroup extends ActionGroup { 20 21 public EnhydraGroup(String name, char mnem, 22 String longname, Icon icon, boolean popup) { 23 super(name, mnem, longname, icon, popup); 24 } 25 26 32 public void update(Browser browser) { 33 JBProject project; 34 if (browser.getActiveProject() != null) { 35 project = (JBProject)browser.getActiveProject(); 36 setEnabled( (project instanceof JBProject) && 37 (project.getProperty("enhydra.project", "false") 38 .equalsIgnoreCase("true")) ); 39 } else { 40 setEnabled(false); 41 } 42 } 43 44 } | Popular Tags |