Sirius – Deploy a Modeler description file

This document describes how to deploy a modeler description file as an Eclipse plug-in through the available APIs.

Create a new Eclipse plug-in

Import your modeler

Contribute to org.eclipse.sirius.componentization

Here is an example :

 id="com.mycompany.yourproject.mymodeler.modeler"
 name="com.mycompany.yourproject.mymodeler.modeler"
 class="com.mycompany.yourproject.mymodeler.modeler.MyActivator"

Register your viewpoints at the start of your plug-in

viewpoints = new HashSet<Viewpoint>();
viewpoints.addAll(ViewpointRegistry.getInstance().registerFromPlugin(PLUGIN_ID+"/<path_from_the_plugin_project>/<myModeler>.odesign"));
if (viewpoints != null) {
  for (Viewpoint viewpoint : viewpoints) {
    ViewpointRegistry.getInstance().disposeFromPlugin(viewpoint);
  }
  viewpoints.clear();
}