public class PluginDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FRAGMENT_ATTACHMENT_ALWAYS
FRAGMENT_ATTACHMENT_ALWAYS
|
static java.lang.String |
FRAGMENT_ATTACHMENT_NEVER
FRAGMENT_ATTACHMENT_NEVER
|
static java.lang.String |
FRAGMENT_ATTACHMENT_RESOLVE_TIME
FRAGMENT_ATTACHMENT_RESOLVE_TIME
|
Constructor and Description |
---|
PluginDescriptor(EclipseProject eclipseProject)
Creates a new instance of type PluginDescriptor.
|
PluginDescriptor(java.io.File pluginSource)
Creates a new instance of type PluginDescriptor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getActivator()
Returns the activator.
|
java.lang.String[] |
getClasspathEntries()
Returns the classpath entries of the plugin.
|
EclipseProject |
getEclipseProject()
Returns the eclipse project that represents this plugin (may null).
|
java.lang.String |
getFragmentAttachment()
Returns how fragment attachments should be handled.
|
java.lang.String |
getLocalization()
Returns the localization.
|
java.lang.String |
getName()
Return the name of the plugin (not the symbolic name!).
|
java.lang.String |
getPluginID()
Returns the plugin ID which is desired by this fragment.
|
java.io.File |
getPluginSource()
Returns the file or directory that represents the plugin (may null).
|
Version |
getPluginVersion()
Returns the version of the plugin required by this fragment.
|
RequiredPlugin[] |
getRequiredPlugins()
Returns an array of the specified required plugins.
|
java.lang.String |
getSymbolicName()
Returns the symbolic name.
|
java.lang.String |
getVendor()
Returns the vendor of the plugin.
|
Version |
getVersion()
Returns the version of the plugin.
|
boolean |
hasClasspathEntries()
Returns whether the plugin has classpath entries.
|
boolean |
hasRequiredPlugins()
Returns whether the plugin has required plugins.
|
boolean |
hasSymbolicName(java.lang.String symbolicName)
Returns whether or not the plugin has the specified symbolic name.
|
boolean |
isAutoStart()
Returns whether or not the plugin should start automaticly.
|
boolean |
isEclipseProject()
Returns whether or not the plugin is an eclipse project.
|
boolean |
isFragment()
Return whether or not the plugin is a fragment.
|
boolean |
isPluginDirectory()
Returns whether or not the plugin is an plugin directory.
|
boolean |
isPluginJar()
Returns whether or not the plugin is an plugin jarfile.
|
boolean |
isSingleton()
Return whether or not the plugin is a singleton.
|
boolean |
isSystemBundle()
Returns whether the bundle is the system bundle ("system.bundle") or not.
|
void |
setSystemBundle(boolean isSystemBundle) |
java.lang.String |
toString() |
public static java.lang.String FRAGMENT_ATTACHMENT_ALWAYS
public static java.lang.String FRAGMENT_ATTACHMENT_NEVER
public static java.lang.String FRAGMENT_ATTACHMENT_RESOLVE_TIME
public PluginDescriptor(java.io.File pluginSource)
pluginSource
- the file or directory that represents the plugin.public PluginDescriptor(EclipseProject eclipseProject)
eclipseProject
- the eclipse project that represents this plugin.public boolean isEclipseProject()
public boolean isPluginDirectory()
public boolean isPluginJar()
public java.io.File getPluginSource()
public EclipseProject getEclipseProject()
public java.lang.String getFragmentAttachment()
public java.lang.String getActivator()
public java.lang.String getPluginID()
public java.lang.String getSymbolicName()
public boolean hasSymbolicName(java.lang.String symbolicName)
symbolicName
- the symbolic name.public boolean isAutoStart()
public boolean isFragment()
public boolean isSingleton()
public java.lang.String getLocalization()
public java.lang.String getName()
public RequiredPlugin[] getRequiredPlugins()
public boolean hasRequiredPlugins()
public java.lang.String[] getClasspathEntries()
public boolean hasClasspathEntries()
public java.lang.String getVendor()
public Version getVersion()
public Version getPluginVersion()
public boolean isSystemBundle()
public java.lang.String toString()
toString
in class java.lang.Object
public void setSystemBundle(boolean isSystemBundle)
isSystemBundle
- The isSystemBundle to set