1 19 24 25 package org.netbeans.modules.web.jsf.navigation.options; 26 27 import java.awt.Image ; 28 import java.beans.IntrospectionException ; 29 import java.beans.PropertyDescriptor ; 30 import org.openide.ErrorManager; 31 import org.openide.util.NbBundle; 32 import org.openide.util.Utilities; 33 34 38 public class NavigationSettingsBeanInfo { 39 40 41 public NavigationSettingsBeanInfo() { 42 } 43 44 public PropertyDescriptor [] getPropertyDescriptors() { 45 try { 46 PropertyDescriptor [] desc = 47 new PropertyDescriptor [] { 48 new PropertyDescriptor (NavigationSettings.PROP_USE_NEW_GRAPH_VIEW, NavigationSettings.class, 49 "getUseNewGraphView", "setUseNewGraphView"), }; 51 52 desc[0].setDisplayName(NbBundle.getMessage(NavigationSettings.class, "USE_NEW_GRAPH_VIEW")); 53 54 return desc; 55 } catch (IntrospectionException ex) { 56 ErrorManager.getDefault().notify(ex); 57 58 return null; 59 } 60 } 61 62 63 public Image getIcon(int type) { 64 return Utilities.loadImage("org/netbeans/modules/web/jsf/navigation/navigation.gif"); } 66 67 } 68 | Popular Tags |