public class PluginActivator extends AbstractUIPlugin implements IPluginInitialize, IModulePerspective
Modifier and Type | Field and Description |
---|---|
static String |
DIRECTORY_NAME
The plug-in directory ID.
|
static String |
PLUGIN_ID
The plug-in ID.
|
static PropertyEditorSetup |
setup
The resource setup.
|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME
Constructor and Description |
---|
PluginActivator()
The constructor
|
Modifier and Type | Method and Description |
---|---|
void |
createNewWizards(ArrayList<CommandContributionItem> newWizards)
Call to fill the array with "New Wizards".
|
static PluginActivator |
getDefault()
Returns the shared instance
|
static ImageDescriptor |
getIcon(String fileName)
Returns an image descriptor for the image file at the given plug-in relative path.
|
static PluginActivator |
getInstance()
Returns the shared instance.
|
static PluginDescriptor |
getPluginDescriptor()
Gets the iizi PluginDescriptor.
|
void |
initializeModule(ModuleModel model)
Initializes the plug-in after the Module project has been loaded.
|
void |
onInitialLayout(IPageLayout layout,
IFolderLayout folder,
IFolderLayout outlineFolder,
IFolderLayout outputfolder)
Called when the Module perspective has completed initializing itself with iizi-related items.
|
void |
registerPlugin()
Registers this plug-in with iiziGo.
|
void |
start(org.osgi.framework.BundleContext context)
Starts up the WebService plug-in bundle.
|
void |
stop(org.osgi.framework.BundleContext context) |
createImageRegistry, getDialogSettings, getImageRegistry, getPreferenceStore, getWorkbench, imageDescriptorFromPlugin, initializeDefaultPluginPreferences, initializeDefaultPreferences, initializeImageRegistry, loadDialogSettings, loadPreferenceStore, refreshPluginActions, saveDialogSettings, savePreferenceStore, shutdown, startup
find, find, getBundle, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, toString
public static final String PLUGIN_ID
public static final String DIRECTORY_NAME
public static final PropertyEditorSetup setup
public static PluginActivator getInstance()
public void start(org.osgi.framework.BundleContext context) throws Exception
If this method throws an exception, it is taken as an indication that plug-in initialization has failed; as a result, the plug-in will not be activated; moreover, the plug-in will be marked as disabled and ineligible for activation for the duration.
Note 1: This method is automatically invoked by the platform the first time any code in the plug-in is executed.
Note 2: This method is intended to perform simple initialization of the plug-in environment. The platform may terminate initializers that do not complete in a timely fashion.
Note 3: The class loader typically has monitors acquired during invocation of this method. It is strongly recommended that this method avoid synchronized blocks or other thread locking mechanisms, as this would lead to deadlock vulnerability.
Note 4: The supplied bundle context represents the plug-in to the OSGi framework. For security reasons, it is strongly recommended that this object should not be divulged.
Note 5: This method and the stop(BundleContext) may be called from separate threads, but the OSGi framework ensures that both methods will not be called simultaneously.
start
in interface org.osgi.framework.BundleActivator
start
in class AbstractUIPlugin
context
- The bundle context.Exception
- For errors in loading the iizi properties framework.public void registerPlugin() throws CoreException
registerPlugin
in interface IPluginInitialize
CoreException
- For registration failures.public void initializeModule(ModuleModel model) throws CoreException
initializeModule
in interface IPluginInitialize
model
- The Module project.CoreException
- For initialization failures.public void stop(org.osgi.framework.BundleContext context) throws Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class AbstractUIPlugin
Exception
public static PluginActivator getDefault()
public static PluginDescriptor getPluginDescriptor()
public void createNewWizards(ArrayList<CommandContributionItem> newWizards)
createNewWizards
in interface IPluginInitialize
newWizards
- Array of New Wizard's.public static ImageDescriptor getIcon(String fileName)
fileName
- The image file name inside "icons".public void onInitialLayout(IPageLayout layout, IFolderLayout folder, IFolderLayout outlineFolder, IFolderLayout outputfolder)
onInitialLayout
in interface IModulePerspective
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.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.