1 19 20 package org.openide.options; 21 22 import java.beans.*; 23 24 import org.openide.options.SystemOption; 25 import org.openide.util.Exceptions; 26 27 31 public class SystemOptionBeanInfo extends SimpleBeanInfo { 32 35 public PropertyDescriptor[] getPropertyDescriptors () { 36 try { 37 PropertyDescriptor name = new PropertyDescriptor ("name", SystemOption.class, "getName", null); 38 name.setHidden (true); 39 PropertyDescriptor helpCtx = new PropertyDescriptor ("helpCtx", SystemOption.class, "getHelpCtx", null); 40 helpCtx.setHidden (true); 41 return new PropertyDescriptor[] { name, helpCtx }; 42 } catch (IntrospectionException ie) { 43 Exceptions.printStackTrace(ie); 44 return null; 45 } 46 } 47 } 48 | Popular Tags |