|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.modules.editor.options; import java.beans.SimpleBeanInfo; import java.awt.Image; import java.beans.PropertyDescriptor; import java.beans.BeanInfo; import java.util.ResourceBundle; import org.openide.util.NbBundle; /** BeanInfo for AnnotationTypeOptions * * @author David Konecny * @since 07/2001 */ public class AnnotationTypeOptionsBeanInfo extends SimpleBeanInfo { /** Propertydescriptors */ private static PropertyDescriptor[] descriptors; /* PropertyDescriptotrs * @return Returns an array of PropertyDescriptors * describing the editable properties supported by this bean. */ public PropertyDescriptor[] getPropertyDescriptors () { if (descriptors == null) { try { descriptors = new PropertyDescriptor[] { new PropertyDescriptor("highlightColor", AnnotationTypeOptions.class), // NOI18N new PropertyDescriptor("useHighlightColor", AnnotationTypeOptions.class), // NOI18N new PropertyDescriptor("foregroundColor", AnnotationTypeOptions.class), // NOI18N new PropertyDescriptor("inheritForegroundColor", AnnotationTypeOptions.class), // NOI18N new PropertyDescriptor("waveUnderlineColor", AnnotationTypeOptions.class), // NOI18N new PropertyDescriptor("useWaveUnderlineColor", AnnotationTypeOptions.class), // NOI18N new PropertyDescriptor("wholeLine", AnnotationTypeOptions.class, "isWholeLine", null) // NOI18N }; ResourceBundle bundle; bundle = NbBundle.getBundle(AnnotationTypeOptionsBeanInfo.class); descriptors[0].setDisplayName(bundle.getString("PROP_AT_HIGHLIGHT")); // NOI18N descriptors[0].setShortDescription(bundle.getString("HINT_AT_HIGHLIGHT")); // NOI18N descriptors[1].setDisplayName(bundle.getString("PROP_AT_USE_HIGHLIGHT")); // NOI18N descriptors[1].setShortDescription(bundle.getString("HINT_AT_USE_HIGHLIGHT")); // NOI18N descriptors[2].setDisplayName(bundle.getString("PROP_AT_FOREGROUND")); // NOI18N descriptors[2].setShortDescription(bundle.getString("HINT_AT_FOREGROUND")); // NOI18N descriptors[3].setDisplayName(bundle.getString("PROP_AT_INHERIT_FOREGROUND")); // NOI18N descriptors[3].setShortDescription(bundle.getString("HINT_AT_INHERIT_FOREGROUND")); // NOI18N descriptors[4].setDisplayName(bundle.getString("PROP_AT_WAVEUNDERLINE")); // NOI18N descriptors[4].setShortDescription(bundle.getString("HINT_AT_WAVEUNDERLINE")); // NOI18N descriptors[5].setDisplayName(bundle.getString("PROP_AT_USE_WAVEUNDERLINE")); // NOI18N descriptors[5].setShortDescription(bundle.getString("HINT_AT_USE_WAVEUNDERLINE")); // NOI18N descriptors[6].setDisplayName(bundle.getString("PROP_AT_WHOLELINE")); // NOI18N descriptors[6].setShortDescription(bundle.getString("HINT_AT_WHOLELINE")); // NOI18N } catch (Exception e) { descriptors = new PropertyDescriptor[0]; } } return descriptors; } } |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.