alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

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-2000 Sun
 * Microsystems, Inc. All Rights Reserved.
 */
package org.netbeans.modules.javacvs.commands;

import java.beans.*;
import org.netbeans.modules.javacvs.customizers.UpdateParamInput;
import org.openide.util.*;
import org.netbeans.modules.javacvs.editors.KeywordSubstitutionPropertyEditor;


    /** Description of the CvsUpdate class.
 */
public class CvsUpdate$UpdateImplBeanInfo extends SimpleBeanInfo {

    private int defaultPropertyIndex = -1; 
    private int defaultEventIndex = -1; 

    public BeanInfo[] getAdditionalBeanInfo () {
/*        try {
            return new BeanInfo[] { Introspector.getBeanInfo (FileSystemCommand.class) };
        } catch (IntrospectionException ie) {
            org.openide.ErrorManager.getDefault().notify(ie);
            return null;
        }
 */
        return null;
    }

    /**
     * Gets the bean's BeanDescriptors.
     * 
     * @return BeanDescriptor describing the editable
     * properties of this bean.  May return null if the
     * information should be obtained by automatic analysis.
     */
    public BeanDescriptor getBeanDescriptor() {
        BeanDescriptor bd = new BeanDescriptor (CvsUpdate.UpdateImpl.class, UpdateParamInput.class);
        bd.setDisplayName(NbBundle.getMessage (CvsUpdate.class, "CvsUpdate.BeanName")); //NOI18N
        return bd;
    }

    /**
     * Gets the bean's PropertyDescriptors.
     * 
     * @return An array of PropertyDescriptors describing the editable
     * properties supported by this bean.  May return null if the
     * information should be obtained by automatic analysis.
     * 

* If a property is indexed, then its entry in the result array will * belong to the IndexedPropertyDescriptor subclass of PropertyDescriptor. * A client of getPropertyDescriptors can use "instanceof" to check * if a given PropertyDescriptor is an IndexedPropertyDescriptor. */ public PropertyDescriptor[] getPropertyDescriptors() { try { PropertyDescriptor prune = new PropertyDescriptor ("pruneDirectories", CvsUpdate.UpdateImpl.class); //NOI18N prune.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_pruneDirectories")); //NOI18N prune.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_pruneDirectories")); //NOI18N // prune.setPropertyEditorClass(DisplayTypePropertyEditor.class); PropertyDescriptor clean = new PropertyDescriptor ("cleanCopy", CvsUpdate.UpdateImpl.class); //NOI18N clean.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_cleanCopy")); //NOI18N clean.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_cleanCopy")); //NOI18N PropertyDescriptor buildDirectories = new PropertyDescriptor ("buildDirectories", CvsUpdate.UpdateImpl.class); //NOI18N buildDirectories.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_buildDirectories")); //NOI18N buildDirectories.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_buildDirectories")); //NOI18N PropertyDescriptor keywordSubst = new PropertyDescriptor ("keywordSubst", CvsUpdate.UpdateImpl.class); //NOI18N keywordSubst.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_keywordSubst")); //NOI18N keywordSubst.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_keywordSubst")); //NOI18N keywordSubst.setPropertyEditorClass(KeywordSubstitutionPropertyEditor.class); PropertyDescriptor updateByRevision = new PropertyDescriptor ("updateByRevision", CvsUpdate.UpdateImpl.class); //NOI18N updateByRevision.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_updateByRevision")); //NOI18N updateByRevision.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_updateByRevision")); //NOI18N PropertyDescriptor updateByDate = new PropertyDescriptor ("updateByDate", CvsUpdate.UpdateImpl.class); //NOI18N updateByDate.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_updateByDate")); //NOI18N updateByDate.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_updateByDate")); //NOI18N PropertyDescriptor useHeadIfNotFound = new PropertyDescriptor ("useHeadIfNotFound", CvsUpdate.UpdateImpl.class); //NOI18N useHeadIfNotFound.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_useHeadIfNotFound")); //NOI18N useHeadIfNotFound.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_useHeadIfNotFound")); //NOI18N PropertyDescriptor resetStickyOnes = new PropertyDescriptor ("resetStickyOnes", CvsUpdate.UpdateImpl.class); //NOI18N resetStickyOnes.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_resetStickyOnes")); //NOI18N resetStickyOnes.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_resetStickyOnes")); //NOI18N PropertyDescriptor pipeToOutput = new PropertyDescriptor ("pipeToOutput", CvsUpdate.UpdateImpl.class); //NOI18N pipeToOutput.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_pipeToOutput")); //NOI18N pipeToOutput.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_pipeToOutput")); //NOI18N PropertyDescriptor mergeRevision2 = new PropertyDescriptor ("mergeRevision2", CvsUpdate.UpdateImpl.class); //NOI18N mergeRevision2.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_mergeRevision2")); //NOI18N mergeRevision2.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_mergeRevision2")); //NOI18N PropertyDescriptor mergeRevision1 = new PropertyDescriptor ("mergeRevision1", CvsUpdate.UpdateImpl.class); //NOI18N mergeRevision1.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_mergeRevision1")); //NOI18N mergeRevision1.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_mergeRevision1")); //NOI18N PropertyDescriptor recursive = new PropertyDescriptor ("recursive", CvsUpdate.UpdateImpl.class); //NOI18N recursive.setDisplayName (NbBundle.getMessage (CvsUpdate.class, "PROP_recursive")); //NOI18N recursive.setShortDescription (NbBundle.getMessage (CvsUpdate.class, "HINT_recursive")); //NOI18N return new PropertyDescriptor[] { prune, clean, buildDirectories, keywordSubst, updateByRevision, updateByDate, useHeadIfNotFound, resetStickyOnes, pipeToOutput, mergeRevision2, mergeRevision1, recursive}; } catch (IntrospectionException ie) { org.openide.ErrorManager.getDefault().notify(ie); return null; } } /** * Gets the bean's EventSetDescriptors. * * @return An array of EventSetDescriptors describing the kinds of * events fired by this bean. May return null if the information * should be obtained by automatic analysis. */ public EventSetDescriptor[] getEventSetDescriptors() { return null; } /** * Gets the bean's MethodDescriptors. * * @return An array of MethodDescriptors describing the methods * implemented by this bean. May return null if the information * should be obtained by automatic analysis. */ public MethodDescriptor[] getMethodDescriptors() { return null; } /** * A bean may have a "default" property that is the property that will * mostly commonly be initially chosen for update by human's who are * customizing the bean. * @return Index of default property in the PropertyDescriptor array * returned by getPropertyDescriptors. *

Returns -1 if there is no default property. */ public int getDefaultPropertyIndex() { return defaultPropertyIndex; } /** * A bean may have a "default" event that is the event that will * mostly commonly be used by human's when using the bean. * @return Index of default event in the EventSetDescriptor array * returned by getEventSetDescriptors. *

Returns -1 if there is no default event. */ public int getDefaultEventIndex() { return defaultEventIndex; } }

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

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.