Package com.iizigo.plugin
Class PluginDescriptor
java.lang.Object
com.iizigo.plugin.PluginDescriptor
- All Implemented Interfaces:
- IModuleDisposeListener,- IModulePerspective,- IProjectListener,- IServerApplicationSetupProvider
public final class PluginDescriptor extends Object implements IModulePerspective, IProjectListener, IModuleDisposeListener, IServerApplicationSetupProvider
The plug-in descriptor for an iiziGo Designer plug-in.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- final StringThe directory name for files.- final StringThe directory description.- final org.eclipse.jface.resource.ImageDescriptorThe image for the directory.- final StringThe Title for the directory.- final StringThe file name extension for new files, includes the ".".- final org.eclipse.jface.resource.ImageDescriptorThe image for files in the directory.- final StringThe file title.- final StringThe plug-in description.- final StringThe plug-in title.- final StringThe file name for properties (on the class path of the bundle).The class for the property containers for the files or the UI component.- final IPluginDescriptor<?>The Server plug-in descriptor.- final StringThe symbolic name of the plug-in.- Fields inherited from interface com.iizix.server.prop.IServerApplicationSetupProvider- EMPTY_SETUP
- Constructor SummaryConstructorsConstructorDescription- PluginDescriptor- (org.eclipse.ui.plugin.AbstractUIPlugin instance, IPluginInitialize callback, String pluginTitle, String pluginDescription, IPluginDescriptor<?> serverPluginDescriptor, String propertiesSchema, Class<? extends PropCnr> propertyClass) Constructor for data connector plug-in's.- PluginDescriptor- (org.eclipse.ui.plugin.AbstractUIPlugin instance, IPluginInitialize callback, String pluginTitle, String pluginDescription, IPluginDescriptor<?> serverPluginDescriptor, String propertiesSchema, Class<? extends PropCnr> propertyClass, String fileExtension, org.eclipse.jface.resource.ImageDescriptor fileImageDescriptor, String fileTitle, String directory, org.eclipse.jface.resource.ImageDescriptor directoryImageDescriptor, String directoryTitle, String directoryDescription) Constructor for data connector plug-in's.
- Method SummaryModifier and TypeMethodDescription- booleanChecks for two plug-in descriptors for equality.Gets the list of Action Actors providers for the plug-in.Gets the list of classpath URL's used for the designer.- org.eclipse.ui.plugin.AbstractUIPluginGets the plug-in instance.- getServerApplicationSetupInstances- (PropCnr moduleRoot) Queries for instances of the IServerApplicationSetup required.- int- hashCode()The hash code.- final void- initializeModule- (ModuleModel model) Initializes the plug-in after the Module project has been loaded.- boolean- isLoaded()Checks if this plug-in's data has been loaded with an error or not.- final void- onInitialLayout- (org.eclipse.ui.IPageLayout layout, org.eclipse.ui.IFolderLayout folder, org.eclipse.ui.IFolderLayout outlineFolder, org.eclipse.ui.IFolderLayout outputFolder) Called when the Module perspective has completed initializing itself with IIZI related items.- final voidCalled when a Module project is de-configured from this plug-in.- final voidCalled when a Module project is disposed of.- final void- onProjectChanged- (org.eclipse.core.resources.IResourceDelta delta) Called during workspace change to inform the plug-in of a project change.- voidRegisters a new Action Actor provider.
- Field Details- pluginTitleThe plug-in title.
- pluginDescriptionThe plug-in description.
- serverPluginDescriptorThe Server plug-in descriptor.
- propertiesSchemaThe file name for properties (on the class path of the bundle). Set to null if none is required.
- propertyClassThe class for the property containers for the files or the UI component.
- fileExtensionThe file name extension for new files, includes the ".".- This member is only filled in by data connector plug-in's, otherwise it is null. 
- fileImageDescriptorpublic final org.eclipse.jface.resource.ImageDescriptor fileImageDescriptorThe image for files in the directory.- This member is only filled in by data connector plug-in's, otherwise it is null. 
- fileTitleThe file title.- This member is only filled in by data connector plug-in's, otherwise it is null. 
- directoryThe directory name for files.- This member is only filled in by data connector plug-in's, otherwise it is null. 
- directoryImageDescriptorpublic final org.eclipse.jface.resource.ImageDescriptor directoryImageDescriptorThe image for the directory.- This member is only filled in by data connector plug-in's, otherwise it is null. 
- directoryTitleThe Title for the directory.- This member is only filled in by data connector plug-in's, otherwise it is null. 
- directoryDescriptionThe directory description.- This member is only filled in by data connector plug-in's, otherwise it is null. 
- symbolicNameThe symbolic name of the plug-in.
 
- Constructor Details- PluginDescriptorpublic PluginDescriptor- (org.eclipse.ui.plugin.AbstractUIPlugin instance, IPluginInitialize callback, String pluginTitle, String pluginDescription, IPluginDescriptor<?> serverPluginDescriptor, String propertiesSchema, Class<? extends PropCnr> propertyClass) Constructor for data connector plug-in's.- Parameters:
- instance- The plug-in instance.
- callback- The initialize plug-in callback.
- pluginTitle- The plug-in title.
- pluginDescription- The plug-in description.
- serverPluginDescriptor- The Server plug-in descriptor.
- propertiesSchema- The file name for properties (on the class path of the bundle).
- propertyClass- The class for the property containers for the files.
 
- PluginDescriptorpublic PluginDescriptor- (org.eclipse.ui.plugin.AbstractUIPlugin instance, IPluginInitialize callback, String pluginTitle, String pluginDescription, IPluginDescriptor<?> serverPluginDescriptor, String propertiesSchema, Class<? extends PropCnr> propertyClass, String fileExtension, org.eclipse.jface.resource.ImageDescriptor fileImageDescriptor, String fileTitle, String directory, org.eclipse.jface.resource.ImageDescriptor directoryImageDescriptor, String directoryTitle, String directoryDescription) Constructor for data connector plug-in's.- Parameters:
- instance- The plug-in instance.
- callback- The initialize plug-in callback.
- pluginTitle- The plug-in title.
- pluginDescription- The plug-in description.
- serverPluginDescriptor- The Server plug-in descriptor.
- propertiesSchema- The file name for properties (on the class path of the bundle).
- propertyClass- The class for the property containers for the files.
- fileExtension- The file name extension for new files, includes the ".".
- fileImageDescriptor- The image for files in the directory.
- fileTitle- The file title.
- directory- The directory name for files.
- directoryImageDescriptor- The image for the directory.
- directoryTitle- The Title for the directory.
- directoryDescription- The directory description.
 
 
- Method Details- getInstancepublic org.eclipse.ui.plugin.AbstractUIPlugin getInstance()Gets the plug-in instance.
- isLoadedpublic boolean isLoaded()Checks if this plug-in's data has been loaded with an error or not.
- initializeModuleInitializes the plug-in after the Module project has been loaded.- Parameters:
- model- The Module project.
- Throws:
- org.eclipse.core.runtime.CoreException- For initialization failures.
 
- onInitialLayoutpublic final void onInitialLayout- (org.eclipse.ui.IPageLayout layout, org.eclipse.ui.IFolderLayout folder, org.eclipse.ui.IFolderLayout outlineFolder, org.eclipse.ui.IFolderLayout outputFolder) Called when the Module perspective has completed initializing itself with IIZI related items. Once the plug-ins complete their processing, additional Java and Java-EE items are added.- Specified by:
- onInitialLayoutin interface- IModulePerspective
- Parameters:
- layout- The page layout.
- folder- The folder area, left side.
- outlineFolder- The outline folder on the right side, perhaps null (be careful!).
- outputFolder- The output folder area, bottom placement.
 
- onProjectChangedpublic final void onProjectChanged- (org.eclipse.core.resources.IResourceDelta delta) Called during workspace change to inform the plug-in of a project change.- Specified by:
- onProjectChangedin interface- IProjectListener
- Parameters:
- delta- The resource delta.
 
- onModuleProjectDisposedCalled when a Module project is disposed of.- Specified by:
- onModuleProjectDisposedin interface- IModuleDisposeListener
 
- onModuleProjectDeconfiguredCalled when a Module project is de-configured from this plug-in.- Specified by:
- onModuleProjectDeconfiguredin interface- IModuleDisposeListener
 
- registerActionActorProviderRegisters a new Action Actor provider.
- getActionActorProvidersGets the list of Action Actors providers for the plug-in.- Returns:
- The list of Action Actors providers.
 
- getServerApplicationSetupInstancesQueries for instances of the IServerApplicationSetup required. This call makes it possible to redirect the query to other properties. Most plug-ins would have a single instance.- Specified by:
- getServerApplicationSetupInstancesin interface- IServerApplicationSetupProvider
- Parameters:
- moduleRoot- The root of the Module application.
- Returns:
- The IServerApplicationSetup instances that is participating in the setup.
 
- getDesignerClasspathEntriesGets the list of classpath URL's used for the designer.- Returns:
- The classpath entries required for the plugin when in designer mode, as an unmodifiable list.
 
- equalsChecks for two plug-in descriptors for equality.
- hashCodepublic int hashCode()The hash code.