public class ModuleDefinition extends Object
Constructor and Description |
---|
ModuleDefinition(IConfigurationElement config) |
Modifier and Type | Method and Description |
---|---|
Object |
createModuleInstance()
Create a new instance of the module.
|
String |
getBundleID() |
static ModuleDefinition |
getDefinition(Object module)
Retrieve the module definition for a given module instance.
|
Collection<String> |
getDependencies()
Get a collection of module dependencies.
|
List<Field> |
getFields() |
String |
getHelpLocation(String topic)
Provide the help location for a given topic.
|
String |
getId() |
ImageDescriptor |
getImageDescriptor() |
List<Method> |
getMethods() |
Class<?> |
getModuleClass()
Get the class definition of the provided module.
|
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(Object module)
module
- module instance to look upnull
public String getName()
public Collection<String> getDependencies()
public Class<?> getModuleClass()
public Object createModuleInstance()
public boolean isVisible()
true
when visiblepublic void setVisible(boolean visible)
visible
- true
to make visiblepublic void resetVisible()
public IPath getPath()
public String getId()
public ImageDescriptor getImageDescriptor()
public String getBundleID()
public String getHelpLocation(String topic)
topic
- help topic within modulepublic boolean isDeprecated()
true
when module is deprecated