Eclipse RCP

The following instructions describe how to set up the Eclipse RCP Integration Demo.

Set up Eclipse to develop JavaFX

  1. Make sure you have the latest version of Eclipse installed.
  2. Install the e(fx)clipse plug-in as described here: http://www.eclipse.org/efxclipse/install.html.
  3. Follow the tutorial #2 of e(fx)clipse step by step: http://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial2.

Import the Eclipse RCP Integration Demo in your workspace

  1. Click on File and select Import.
  2. Choose Existing Projects into Workspace which is located under General and click Next.
  3. In Select root directory, browse to your yFiles installation folder and select the folder demos/src/interoperability/eclipsercp.

Enable development of yFiles for JavaFX in Eclipse

  1. Copy your license file into the src folder of the demo project.
  2. Copy the yfiles-for-javafx.jar that is located in the lib directory of your yFiles for JavaFX installation into the lib folder of the demo project.
  3. Open the context menu of the project and select Properties.
  4. Choose Java Build Path.
  5. In the Libraries tab, click on Add External JARs and add the yfiles-for-javafx.jar that is located in the lib folder of the demo project.
  6. Click on Add External JARs again and add the jfxswt.jar that is located in the lib directory of your local Java SDK installation.
  7. Finally click on Add Library and add Plug-in Dependencies and click Finish.

Starting the demo

  1. In the main workbench toolbar, hit the green Launch Button and choose Eclipse Application. A new instance of Eclipse should be starting up.
  2. To show the views of the demo, select Window from the menu an navigate to Show View -> Other....
  3. Select the following views, which are located in the Other tab:
  4. To center the graph in the Graph Editor View, start by clicking on the Fit Graph Bounds button in the view's toolbar.