IModule.ImageType
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jface.resource.ImageRegistry |
imageRegistry
The module image registry.
|
protected IParameterEditionModel |
parameterEditionModel |
Constructor and Description |
---|
AbstractJavaModule(IModuleContext moduleContext)
Main constructor, to instantiate a new module.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
Used to return the module description.
|
org.eclipse.swt.graphics.Image |
getImage(Profile profile,
IModule.ImageType imageType)
Get the image provided by the module for a given profile.
|
org.eclipse.swt.graphics.Image |
getImage(Stereotype stereotype,
IModule.ImageType type)
Get the image provided by the module for a given stereotype.
|
java.lang.String |
getLabel()
Get the module label that is displayed in dialog boxes and other GUI parts.
|
ILicenseInfos |
getLicenseInfos() |
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 java.lang.String |
getModuleImagePath()
Get the path to the image representing the module.
|
java.lang.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.
|
java.lang.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 org.eclipse.jface.resource.ImageRegistry imageRegistry
This registry contains the module stereotypes images and icons. This registry is disposed when the module is unloaded.
Sub classes may use it to store other images as well.
Sub classes should not set this property to another registry.
protected IParameterEditionModel parameterEditionModel
public AbstractJavaModule(IModuleContext moduleContext)
moduleContext
- access point to Modelio services.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getDescription()
getDescription
in interface IModule
public org.eclipse.swt.graphics.Image getImage(Stereotype stereotype, IModule.ImageType type)
public org.eclipse.swt.graphics.Image getImage(Profile profile, IModule.ImageType imageType)
IModule
public java.lang.String getLabel()
public ILicenseInfos getLicenseInfos()
getLicenseInfos
in interface IModule
public final IModuleContext getModuleContext()
IModule
getModuleContext
in interface IModule
public final org.eclipse.swt.graphics.Image getModuleImage()
IModule
getModuleImage
in interface IModule
null
.public abstract java.lang.String getModuleImagePath()
getModuleImagePath
in interface IModule
public java.lang.String getName()
The module name corresponds to the name of the module, as defined in the MDA Designer 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 Version getRequiredModelioVersion()
getRequiredModelioVersion
in interface IModule
public Version getVersion()
getVersion
in interface IModule
public int hashCode()
hashCode
in class java.lang.Object
public final void initModulecontext(IModuleContext context)
initModulecontext
in interface IModule
context
- the module's context.public final void initParametersEditionModel(IParameterEditionModel model)
initParametersEditionModel
in interface IModule
model
- The parameters edition model.public java.lang.String toString()
toString
in class java.lang.Object
public void uninit()
IModule
The uninit
method allows the developer to execute the
desired un-initialization code at this step. For example, if an IExpertise
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.