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 TypeMethodDescriptionbooleanclose()MagicDraw calls this method before exiting the application.protected abstract com.nomagic.magicdraw.emfuml2xmi.helpers.BaseEmfUml2Cleanerprotected abstract com.nomagic.magicdraw.emfuml2xmi.export.commandline.BaseEclipseUml2CommandLineExporterActionprotected abstract com.nomagic.magicdraw.emfuml2xmi.export.BaseEmfUml2ExportercreateExporter(String format, String optionsGroupID) protected abstract com.nomagic.magicdraw.emfuml2xmi.imp0rt.BaseEmfUml2ImportercreateImporter(String format, String optionsGroupID) protected abstract BaseEmfOptionsGroupcreateOptionsGroup(String id, String format) voiddisposeModel(Collection elements) Disposes given elements.exportModel(Project project) Exports given project to Eclipse UML2 ModelvoidExports given project to Eclipse UML2 XMIvoidexportXMI(Project project, String destinationDir, ProgressStatus progressStatus) Exports given project to Eclipse UML2 XMIfinal Stringfinal StringReturns Eclipse UML2 XMI format supported by plugin.final Stringfinal StringReturns plugin'e environment options group id.final StringvoidImports (opens) given Eclipse UML2 XMIvoidinit()Plugin initialization method.booleanMagicDraw 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:PluginPlugin 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:PluginMagicDraw 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:PluginMagicDraw 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:
isSupportedin classPlugin- Returns:
- true, if plugin is supported; false, if plugin is not supported
-
getResourcesJarPath
-
getOptionsDir
-
getSupportedUmlUris
-