1 19 20 21 package org.netbeans.modules.xml.wsdl.ui.view.treeeditor; 22 23 import java.awt.Image ; 24 25 import javax.swing.Action ; 26 27 import org.netbeans.modules.xml.wsdl.ui.view.IWSDLPanelConstants; 28 import org.openide.actions.PropertiesAction; 29 import org.openide.nodes.AbstractNode; 30 import org.openide.nodes.Children; 31 import org.openide.util.Utilities; 32 import org.openide.util.actions.SystemAction; 33 34 35 41 public class PropertyFolderNode extends AbstractNode { 42 43 private static final Image ICON = Utilities.loadImage 44 ("org/netbeans/modules/xml/wsdl/ui/view/resources/propertyFolder.png"); 45 46 47 public PropertyFolderNode() { 48 super(new Children.Array()); 49 this.setDisplayName(IWSDLPanelConstants.PROPERTY_FOLDER_NODE_NAME); 50 } 51 52 public Image getIcon(int type) { 53 return ICON; 54 } 55 56 public Image getOpenedIcon(int type) { 57 return ICON; 58 } 59 60 public Action [] getActions(boolean context) { 61 SystemAction[] sysAction = new SystemAction[]{ 62 SystemAction.get(PropertiesAction.class) 63 }; 64 65 return sysAction; 66 } 67 68 69 public Object getWSDLConstruct() { 70 return null; 71 } 72 73 74 } 75 | Popular Tags |