public class ModuleDefinition
extends java.lang.Object
Constructor and Description |
---|
ModuleDefinition(IConfigurationElement config) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createModuleInstance()
Create a new instance of the module.
|
java.lang.String |
getBundleID() |
static ModuleDefinition |
getDefinition(java.lang.Object module)
Retrieve the module definition for a given module instance.
|
java.util.Map<java.lang.String,java.lang.Boolean> |
getDependencies()
Get a map of module dependencies.
|
java.util.List<java.lang.reflect.Field> |
getFields() |
java.lang.String |
getHelpLocation(java.lang.String topic)
Provide the help location for a given topic.
|
java.lang.String |
getId() |
ImageDescriptor |
getImageDescriptor() |
java.util.List<java.lang.reflect.Method> |
getMethods() |
java.lang.Class<?> |
getModuleClass()
Get the class definition of the provided module.
|
java.lang.String |
getName() |
IPath |
getPath()
Get the full module name.
|
boolean |
isDeprecated()
Check deprecation status of module.
|
boolean |
isVisible()
Get visibility status of module.
|
void |
resetVisible()
Reset visibility to defaults.
|
void |
setVisible(boolean visible)
Sets visibility status of module in preferences
|
public ModuleDefinition(IConfigurationElement config)
public static ModuleDefinition getDefinition(java.lang.Object module)
module
- module instance to look upnull
public java.lang.String getName()
public java.util.Map<java.lang.String,java.lang.Boolean> getDependencies()
public java.lang.Class<?> getModuleClass()
public java.lang.Object createModuleInstance()
public boolean isVisible()
true
when visiblepublic void setVisible(boolean visible)
visible
- true
to make visiblepublic void resetVisible()
public IPath getPath()
public java.lang.String getId()
public ImageDescriptor getImageDescriptor()
public java.lang.String getBundleID()
public java.util.List<java.lang.reflect.Method> getMethods()
public java.util.List<java.lang.reflect.Field> getFields()
public java.lang.String getHelpLocation(java.lang.String topic)
topic
- help topic within modulepublic boolean isDeprecated()
true
when module is deprecated