Eclipse Plug-in Deployment
by, 02-11-2012 at 03:33 PM (1432 Views)
To deploy an Eclipse plug-in, deploy following into Eclipse intallation’s plug-in folder.
• Manifest File
• Jar Files
• Any other resources
Now Eclipse can activate this plug-in when it is required to perform some functionality. To activate a plug-in:
• Load runtime class
• Instantiate it
• Initialize it
Plug-in class is responsible for doing special tasks like allocation and reallocation of resources. For some simple plug-ins this activation and deactivation is not required and also plug-in class is not required in such cases. Eclipse runtime provides a default class in such cases.
Activation and deactivation methods are overridden by the org.eclipse.core.runtime.Plugin subclasses in order to perform some specific tasks at time of activation and deactivation.
Eclipse deployment consists of a management kernel called Eclipse platform and a certain core plug-ins. These are hard-coded plug-ins in the Eclipse environment and platform activates these plug-ins.
Remaining plug-ins which are not core are activated when they are required.
A plug-in may have one of the following relations with other plug-in in the Eclipse model.
• Dependency: Main roles are
o Dependent plug-in• Extension: Main roles are
o Prerequisite plug-in
o Host plug-in
o Extender plug-in
Plug-in manifest file contains the declaration of these relationships.