Package com.nomagic.magicdraw.emfuml2xmi
Class BaseEmfUml2XmiPlugin
java.lang.Object
com.nomagic.magicdraw.plugins.Plugin
com.nomagic.magicdraw.emfuml2xmi.BaseEmfUml2XmiPlugin
- Direct Known Subclasses:
EmfUml2XmiPlugin
,EmfUml2XmiPlugin
,EmfUml2XmiPlugin
,EmfUml2XmiPlugin
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
close()
MagicDraw calls this method before exiting the application.protected abstract com.nomagic.magicdraw.emfuml2xmi.helpers.BaseEmfUml2Cleaner
protected abstract com.nomagic.magicdraw.emfuml2xmi.export.commandline.BaseEclipseUml2CommandLineExporterAction
protected abstract com.nomagic.magicdraw.emfuml2xmi.export.BaseEmfUml2Exporter
createExporter
(String format, String optionsGroupID) protected abstract com.nomagic.magicdraw.emfuml2xmi.imp0rt.BaseEmfUml2Importer
createImporter
(String format, String optionsGroupID) protected abstract BaseEmfOptionsGroup
createOptionsGroup
(String id, String format) void
disposeModel
(Collection elements) Disposes given elements.exportModel
(Project project) Exports given project to Eclipse UML2 Modelvoid
Exports given project to Eclipse UML2 XMIvoid
exportXMI
(Project project, String destinationDir, ProgressStatus progressStatus) Exports given project to Eclipse UML2 XMIfinal String
final String
Returns Eclipse UML2 XMI format supported by plugin.final String
final String
Returns plugin'e environment options group id.final String
void
Imports (opens) given Eclipse UML2 XMIvoid
init()
Plugin initialization method.boolean
MagicDraw calls this method to identify if this plugin is supported.Methods inherited from class com.nomagic.magicdraw.plugins.Plugin
getDescriptor
-
Constructor Details
-
BaseEmfUml2XmiPlugin
-
-
Method Details
-
init
public void init()Description copied from class:Plugin
Plugin initialization method. Every plugin must override this method and do any action related to plugin initialization. For example registers actions configurators to MagicDraw application. This method is called by MagicDraw application during MagicDraw startup. -
getFormat
Returns Eclipse UML2 XMI format supported by plugin.- Returns:
- Eclipse UML2 XMI format.
-
getFileExtension
-
getOptionsGroupID
Returns plugin'e environment options group id.- Returns:
- options group id.
-
createExporter
-
createImporter
-
createCleaner
protected abstract com.nomagic.magicdraw.emfuml2xmi.helpers.BaseEmfUml2Cleaner createCleaner() -
createOptionsGroup
-
createCommandLineExporterAction
protected abstract com.nomagic.magicdraw.emfuml2xmi.export.commandline.BaseEclipseUml2CommandLineExporterAction createCommandLineExporterAction() -
exportXMI
Exports given project to Eclipse UML2 XMI- Parameters:
project
- project to exportdestinationDir
- destination directory- Throws:
Exception
-
exportXMI
@OpenApi public void exportXMI(Project project, String destinationDir, ProgressStatus progressStatus) throws Exception Exports given project to Eclipse UML2 XMI- Parameters:
project
- project to exportdestinationDir
- destination directoryprogressStatus
- export progress status- Throws:
Exception
-
exportModel
Exports given project to Eclipse UML2 Model- Parameters:
project
- project to export- Returns:
- map of exported model (MagicDraw model (or profile) -> Eclipse UML2 model (or profile))
- Throws:
Exception
-
disposeModel
Disposes given elements.- Parameters:
elements
- collection of Eclipse UML2 element.
-
imp0rt
Imports (opens) given Eclipse UML2 XMI- Parameters:
file
- Eclipse UML2 XMI file path
-
close
public boolean close()Description copied from class:Plugin
MagicDraw calls this method before exiting the application. If at least one plugin returns 'false', MagicDraw application will not exit. Override this method and do any exit specific action(your plugin state saving for example). -
isSupported
public boolean isSupported()Description copied from class:Plugin
MagicDraw calls this method to identify if this plugin is supported. Plugin is initialized and started only if this method returnstrue
. Override this method to check specific conditions for the plugin supportability.- Specified by:
isSupported
in classPlugin
- Returns:
- true, if plugin is supported; false, if plugin is not supported
-
getResourcesJarPath
-
getOptionsDir
-
getSupportedUmlUris
-