Viewpoint - Deploy a Modeler description file

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

Contents

Create a new Eclipse plug-in

Import your modeler

Contribute to fr.obeo.dsl.viewpoint.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();

}

This sample comes from the plug-in tests fr.obeo.dsl.viewpoint.tests