1 19 20 package org.netbeans.modules.editor.options; 21 22 import java.beans.IntrospectionException ; 23 import java.util.ArrayList ; 24 import java.util.List ; 25 import org.netbeans.modules.editor.options.BaseOptions; 26 import org.openide.nodes.BeanNode; 27 import org.openide.nodes.Node; 28 import org.openide.ErrorManager; 29 import org.openide.util.actions.SystemAction; 30 31 37 public class MIMEOptionNode extends BeanNode { 38 39 private String name; 40 41 42 public MIMEOptionNode(BaseOptions beanObject) throws IntrospectionException { 43 super(beanObject); 44 name = beanObject.getName(); 45 } 46 47 48 public String getDisplayName(){ 49 return name; 50 } 51 52 public boolean canDestroy() { 54 return false; 55 } 56 57 public Node cloneNode() { 59 try { 60 return new MIMEOptionNode((BaseOptions)getBean()); 61 } catch (IntrospectionException ie) { 62 ErrorManager.getDefault().notify(ErrorManager.INFORMATIONAL, ie); 63 return super.cloneNode(); 64 } 65 } 66 67 } 68 | Popular Tags |