1 19 20 package org.netbeans.modules.diff.builtin.provider; 21 22 import java.beans.*; 23 import org.openide.util.*; 24 25 28 public class BuiltInDiffProviderBeanInfo extends SimpleBeanInfo { 29 30 private static final int PROPERTY_trimLines = 0; 31 32 private static String iconNameC16 = "/org/netbeans/modules/diff/diffSettingsIcon.gif"; 34 41 public BeanDescriptor getBeanDescriptor() { 42 return new BeanDescriptor ( BuiltInDiffProvider.class , null ); 43 } 44 45 57 public PropertyDescriptor[] getPropertyDescriptors() { 58 PropertyDescriptor[] properties = new PropertyDescriptor[1]; 59 60 try { 61 properties[PROPERTY_trimLines] = new PropertyDescriptor ( "trimLines", BuiltInDiffProvider.class, "isTrimLines", "setTrimLines" ); properties[PROPERTY_trimLines].setDisplayName ( NbBundle.getMessage(BuiltInDiffProvider.class,"BK0001") ); 63 properties[PROPERTY_trimLines].setShortDescription ( NbBundle.getMessage(BuiltInDiffProvider.class,"BK0002") ); 64 } 65 catch(IntrospectionException e) { 66 Exceptions.printStackTrace(e); 67 } 68 69 return properties; 70 } 71 72 79 public EventSetDescriptor[] getEventSetDescriptors() { 80 return new EventSetDescriptor[0]; 81 } 82 83 90 public MethodDescriptor[] getMethodDescriptors() { 91 return new MethodDescriptor[0]; 92 } 93 94 public java.awt.Image getIcon(int iconKind) { 95 return Utilities.loadImage(iconNameC16); 96 } 97 98 } 99 100 | Popular Tags |