IModule.ImageType
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jface.resource.ImageRegistry |
imageRegistry |
protected IParameterEditionModel |
parameterEditionModel |
Constructor and Description |
---|
AbstractJavaModule(IModelingSession modelingSession,
ModuleComponent moduleComponent,
IModuleUserConfiguration moduleConfiguration)
Deprecated.
use
AbstractJavaModule(IModuleContext)
instead. |
AbstractJavaModule(IModuleContext moduleContext)
Main constructor, to instantiate a new module.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
IModuleUserConfiguration |
getConfiguration()
Get the configuration associated to this module.
|
String |
getDescription()
Used to return the module description.
|
String |
getDescription(PropertyDefinition pdef)
Deprecated.
|
org.eclipse.swt.graphics.Image |
getImage(Stereotype stereotype,
IModule.ImageType type)
Get the image provided by the module for a given stereotype.
|
ScriptEngine |
getJythonEngine()
Deprecated.
|
String |
getLabel()
Get the module label that is displayed in dialog boxes and other GUI parts.
|
String |
getLabel(ExternDocumentType docType)
Deprecated.
|
String |
getLabel(NoteType noteType)
Deprecated.
|
String |
getLabel(PropertyDefinition pdef)
Deprecated.
|
String |
getLabel(Stereotype stereotype)
Deprecated.
|
String |
getLabel(String key)
Deprecated.
|
String |
getLabel(TagType tagType)
Deprecated.
|
ILicenseInfos |
getLicenseInfos() |
ModuleComponent |
getModel()
Deprecated.
|
IModelingSession |
getModelingSession()
Deprecated.
|
IModuleContext |
getModuleContext()
Return the context of a module, to access Modelio services.
|
org.eclipse.swt.graphics.Image |
getModuleImage()
Returns an Image for this module.
|
abstract String |
getModuleImagePath()
Get the path to the image representing the module.
|
String |
getName()
Used to return the module name.
|
IParameterEditionModel |
getParametersEditionModel()
Get the parameters model as it must be shown in the module parameters
edition dialog.
|
Version |
getRequiredModelioVersion()
Returns the minimum Modelio version that authorize the Module to be
activated.
|
Version |
getVersion()
Used to return the module version.
|
int |
hashCode() |
void |
initModulecontext(IModuleContext context)
Reserved for M3.4/M3.5 compatibility.
|
void |
initParametersEditionModel(IParameterEditionModel model)
Register the given parameter model as the fall back parameter edition
model if the module implementation does not define a custom one.
|
String |
toString() |
void |
uninit()
Method automatically called just before the disposal of the module.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLifeCycleHandler, getMdaExpert, getModelComponentContributor, getParametersEditionPanel, getPeerModule, init
protected IParameterEditionModel parameterEditionModel
protected org.eclipse.jface.resource.ImageRegistry imageRegistry
@Deprecated public AbstractJavaModule(IModelingSession modelingSession, ModuleComponent moduleComponent, IModuleUserConfiguration moduleConfiguration)
AbstractJavaModule(IModuleContext)
instead.modelingSession
- the current session.moduleComponent
- the Module representing this module in the model.moduleConfiguration
- the configuration of this module.public AbstractJavaModule(IModuleContext moduleContext)
moduleContext
- access point to Modelio services.public IModuleUserConfiguration getConfiguration()
getConfiguration
in interface IModule
IModuleUserConfiguration
public String getDescription()
getDescription
in interface IModule
public org.eclipse.swt.graphics.Image getImage(Stereotype stereotype, IModule.ImageType type)
@Deprecated public ScriptEngine getJythonEngine()
IModule
MODULE : this moduleClassLoader
CLASSLOADER : the class loader of the modulegetJythonEngine
in interface IModule
@Deprecated public String getLabel(Stereotype stereotype)
public abstract String getModuleImagePath()
getModuleImagePath
in interface IModule
@Deprecated public ModuleComponent getModel()
ModuleComponent
model associated with this module.getModel
in interface IModule
ModuleComponent
model associated with this module.@Deprecated public IModelingSession getModelingSession()
getModelingSession
in interface IModule
public String getName()
The module name corresponds to the name of the module, as defined in the MDA Designer tool.
public Version getRequiredModelioVersion()
getRequiredModelioVersion
in interface IModule
public Version getVersion()
getVersion
in interface IModule
public final org.eclipse.swt.graphics.Image getModuleImage()
IModule
getModuleImage
in interface IModule
null
.@Deprecated public final String getLabel(TagType tagType)
@Deprecated public final String getLabel(NoteType noteType)
@Deprecated public final String getLabel(ExternDocumentType docType)
@Deprecated public String getLabel(String key)
public String getLabel()
public ILicenseInfos getLicenseInfos()
getLicenseInfos
in interface IModule
public void uninit()
IModule
The uninit
method allows the developer to execute the
desired un-initialization code at this step. For example, if IViewpoints
have been registered in the IModule.init()
method, this method is the
perfect place to remove them.
This method should never be called by the developer because it is already invoked by the tool.
public IParameterEditionModel getParametersEditionModel()
This default implementation returns a parameter model computed from the
'module.xml' file unless the module implementation filled the
parameterEditionModel
member.
getParametersEditionModel
in interface IModule
public final void initParametersEditionModel(IParameterEditionModel model)
initParametersEditionModel
in interface IModule
model
- The parameters edition model.@Deprecated public String getLabel(PropertyDefinition pdef)
@Deprecated public String getDescription(PropertyDefinition pdef)
getDescription
in interface IModule
public final void initModulecontext(IModuleContext context)
initModulecontext
in interface IModule
public final IModuleContext getModuleContext()
IModule
getModuleContext
in interface IModule