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.HistoryParamInput;
import org.openide.util.*;
/** Description of the CvsUpdate class.
*/
public class CvsHistory$HistoryImplBeanInfo 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 BeanDescriptor s.
*
* @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 (CvsHistory.HistoryImpl.class, HistoryParamInput.class);
bd.setDisplayName(NbBundle.getMessage (CvsHistory.class, "CvsHistory.BeanName")); // NOI18N
return bd;
}
/**
* Gets the bean's PropertyDescriptor s.
*
* @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 forAllUsers = new PropertyDescriptor ("forAllUsers", CvsHistory.HistoryImpl.class); // NOI18N
forAllUsers.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_forAllUsers")); // NOI18N
forAllUsers.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_forAllUsers")); // NOI18N
PropertyDescriptor forWorkingDirectory = new PropertyDescriptor ("forWorkingDirectory", CvsHistory.HistoryImpl.class); // NOI18N
forWorkingDirectory.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_forWorkingDirectory")); // NOI18N
forWorkingDirectory.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_forWorkingDirectory")); // NOI18N
PropertyDescriptor lastEventForFile = new PropertyDescriptor ("lastEventForFile", CvsHistory.HistoryImpl.class); // NOI18N
lastEventForFile.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_lastEventForFile")); // NOI18N
lastEventForFile.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_lastEventForFile")); // NOI18N
PropertyDescriptor lastEventOfProject = new PropertyDescriptor ("lastEventOfProject", CvsHistory.HistoryImpl.class); // NOI18N
lastEventOfProject.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_lastEventOfProject")); // NOI18N
lastEventOfProject.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_lastEventOfProject")); // NOI18N
PropertyDescriptor reportCheckouts = new PropertyDescriptor ("reportCheckouts", CvsHistory.HistoryImpl.class); // NOI18N
reportCheckouts.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_reportCheckouts")); // NOI18N
reportCheckouts.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_reportCheckouts")); // NOI18N
PropertyDescriptor reportCommits = new PropertyDescriptor ("reportCommits", CvsHistory.HistoryImpl.class); // NOI18N
reportCommits.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_reportCommits")); // NOI18N
reportCommits.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_reportCommits")); // NOI18N
PropertyDescriptor reportEventType = new PropertyDescriptor ("reportEventType", CvsHistory.HistoryImpl.class); // NOI18N
reportEventType.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_reportEventType")); // NOI18N
reportEventType.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_reportEventType")); // NOI18N
PropertyDescriptor reportEverything = new PropertyDescriptor ("reportEverything", CvsHistory.HistoryImpl.class); // NOI18N
reportEverything.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_reportEverything")); // NOI18N
reportEverything.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_reportEverything")); // NOI18N
PropertyDescriptor reportLastEventForModule = new PropertyDescriptor ("reportLastEventForModule", CvsHistory.HistoryImpl.class); // NOI18N
reportLastEventForModule.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_reportLastEventForModule")); // NOI18N
reportLastEventForModule.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_reportLastEventForModule")); // NOI18N
PropertyDescriptor reportOnModule = new PropertyDescriptor ("reportOnModule", CvsHistory.HistoryImpl.class); // NOI18N
reportOnModule.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_reportOnModule")); // NOI18N
reportOnModule.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_reportOnModule")); // NOI18N
PropertyDescriptor reportTags = new PropertyDescriptor ("reportTags", CvsHistory.HistoryImpl.class); // NOI18N
reportTags.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_reportTags")); // NOI18N
reportTags.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_reportTags")); // NOI18N
PropertyDescriptor showBackToRecordContaining = new PropertyDescriptor ("showBackToRecordContaining", CvsHistory.HistoryImpl.class); // NOI18N
showBackToRecordContaining.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_showBackToRecordContaining")); // NOI18N
showBackToRecordContaining.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_showBackToRecordContaining")); // NOI18N
PropertyDescriptor sinceDate = new PropertyDescriptor ("sinceDate", CvsHistory.HistoryImpl.class); // NOI18N
sinceDate.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_sinceDate")); // NOI18N
sinceDate.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_sinceDate")); // NOI18N
PropertyDescriptor sinceRevision = new PropertyDescriptor ("sinceRevision", CvsHistory.HistoryImpl.class); // NOI18N
sinceRevision.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_sinceRevision")); // NOI18N
sinceRevision.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_sinceRevision")); // NOI18N
PropertyDescriptor sinceTag = new PropertyDescriptor ("sinceTag", CvsHistory.HistoryImpl.class); // NOI18N
sinceTag.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_sinceTag")); // NOI18N
sinceTag.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_sinceTag")); // NOI18N
PropertyDescriptor timeZone = new PropertyDescriptor ("timeZone", CvsHistory.HistoryImpl.class); // NOI18N
timeZone.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_timeZone")); // NOI18N
timeZone.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_timeZone")); // NOI18N
PropertyDescriptor forUsers = new PropertyDescriptor ("forUsers", CvsHistory.HistoryImpl.class); // NOI18N
forUsers.setDisplayName (NbBundle.getMessage (CvsHistory.class, "PROP_forUsers")); // NOI18N
forUsers.setShortDescription (NbBundle.getMessage (CvsHistory.class, "HINT_forUsers")); // NOI18N
return new PropertyDescriptor[] {timeZone, sinceTag, sinceRevision, sinceDate, showBackToRecordContaining,
reportTags, reportOnModule, reportLastEventForModule,reportEverything,
reportEventType,reportCommits, reportCheckouts, lastEventOfProject, lastEventForFile,
forWorkingDirectory, forAllUsers, forUsers};
} catch (IntrospectionException ie) {
org.openide.ErrorManager.getDefault().notify(ie);
return null;
}
}
/**
* Gets the bean's EventSetDescriptor s.
*
* @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 MethodDescriptor s.
*
* @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 0;
}
/**
* 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;
}
}
|