Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Testing the diagram synthesis is most easiest done by means of some menu contribution. Here are some instructions using the Eclipse 3.X API: Register a command with some arbitrary id and a default handler. In the execute() method of your handler call

...

This statements will open an eclipse view part showing your desired diagram. someId <<someId>> is an the Id that can be used to access, update, or close the view part later on programmatically, and <<someName>> is the name of the view (shown at the view's tab), <<yourConcreteData>> is an instance of the input type of your diagram synthesis implementation. Via the last parameter some additional instructions can be handed over. For those that are not yet familiar with Eclipse menu staff have a look on at a corresponding tutorial, e.g. at vogella.com.

An exemplary use case diagram created according to the UML2UseCaseDiagramSynthesis is shown in following screenshot, the source UML model is part of the examples project, too.

Image Added

Advanced diagram synthesis features

...