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 Summary
Modifier and TypeFieldDescriptionfinal String
The directory name for files.final String
The directory description.final org.eclipse.jface.resource.ImageDescriptor
The image for the directory.final String
The Title for the directory.final String
The file name extension for new files, includes the ".".final org.eclipse.jface.resource.ImageDescriptor
The image for files in the directory.final String
The file title.final String
The plug-in description.final String
The plug-in title.final String
The 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 String
The symbolic name of the plug-in.Fields inherited from interface com.iizix.server.prop.IServerApplicationSetupProvider
EMPTY_SETUP
Constructor Summary
ConstructorDescriptionPluginDescriptor
(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 Summary
Modifier and TypeMethodDescriptionboolean
Checks 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.AbstractUIPlugin
Gets 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 void
Called when a Module project is de-configured from this plug-in.final void
Called 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.void
Registers a new Action Actor provider.
Field Details
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). Set to null if none is required.propertyClass
The class for the property containers for the files or the UI component.fileExtension
The file name extension for new files, includes the ".".This member is only filled in by data connector plug-in's, otherwise it is null.
fileImageDescriptor
public 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.
fileTitle
The file title.This member is only filled in by data connector plug-in's, otherwise it is null.
directory
The directory name for files.This member is only filled in by data connector plug-in's, otherwise it is null.
directoryImageDescriptor
public 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.
directoryTitle
The Title for the directory.This member is only filled in by data connector plug-in's, otherwise it is null.
directoryDescription
The directory description.This member is only filled in by data connector plug-in's, otherwise it is null.
symbolicName
The symbolic name of the plug-in.
Constructor Details
PluginDescriptor
public 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.
PluginDescriptor
public 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
getInstance
public org.eclipse.ui.plugin.AbstractUIPlugin getInstance()Gets the plug-in instance.isLoaded
public boolean isLoaded()Checks if this plug-in's data has been loaded with an error or not.initializeModule
Initializes the plug-in after the Module project has been loaded.- Parameters:
model
- The Module project.- Throws:
org.eclipse.core.runtime.CoreException
- For initialization failures.
onInitialLayout
public 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:
onInitialLayout
in interfaceIModulePerspective
- 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.
onProjectChanged
public final void onProjectChanged(org.eclipse.core.resources.IResourceDelta delta) Called during workspace change to inform the plug-in of a project change.- Specified by:
onProjectChanged
in interfaceIProjectListener
- Parameters:
delta
- The resource delta.
onModuleProjectDisposed
Called when a Module project is disposed of.- Specified by:
onModuleProjectDisposed
in interfaceIModuleDisposeListener
onModuleProjectDeconfigured
Called when a Module project is de-configured from this plug-in.- Specified by:
onModuleProjectDeconfigured
in interfaceIModuleDisposeListener
registerActionActorProvider
Registers a new Action Actor provider.getActionActorProviders
Gets the list of Action Actors providers for the plug-in.- Returns:
- The list of Action Actors providers.
getServerApplicationSetupInstances
Queries 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:
getServerApplicationSetupInstances
in interfaceIServerApplicationSetupProvider
- Parameters:
moduleRoot
- The root of the Module application.- Returns:
- The IServerApplicationSetup instances that is participating in the setup.
getDesignerClasspathEntries
Gets 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.
equals
Checks for two plug-in descriptors for equality.hashCode
public int hashCode()The hash code.