ILOG JViews Graph Layout for Eclipse step-by-step exercise (full version)
This exercise describes how to use ILOG JViews Graph Layout for Eclipse to add powerful Layout capabilities to Eclipse/GMF modelers. The movie explains the types of services you can expect from this integration and shows how to take a pure GMF application and enable JViews algorithms on it.
Prerequisites: This step-by-step exercise assumes that you have already installed Eclipse 3.4 with its modeling extensions (EMF, GMF and GEF), and that you have installed and integrated JViews Graph Layout for Eclipse. A full evaluation version can be requested here.
Project for Step 1 :Download this zipped Plugin Project corresponding to the first step of this exercise. You will have to import this project into your Eclipse environment. It contains a generic modeler, based on GMF. The following movie describes how to import this project (at 5 minutes and 28 seconds in the movie).
The following movie is best viewed in full screen mode:
Code Snippets: To make things easier, here are some code snippets you can use to complete the exercise:
public class MyDiagramEditPart extends DiagramEditPart implements IGrapherEditPart
public class MyEditor extends Diag
If you have completed this exercise, you can then have a look at a more complete version of a GMF-based editor, available in the Samples section of JViews Graph Layout for Eclipse. The easiest way is to display the Eclipse Welcome page (available in Help menu) and look for the GMF Editor appearing in the Samples section. You will see a more complete integration, including property editors for customizing the different layouts, persistence of your settings, and much more.