Eclipse RCP
The following instructions describe how to set up the Eclipse RCP Integration Demo.
Set up Eclipse to develop JavaFX
- Make sure you have the latest version of Eclipse installed.
- Install the e(fx)clipse plug-in as described here: http://www.eclipse.org/efxclipse/install.html.
- 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
- Click on File and select Import.
- Choose Existing Projects into Workspace which is located under General and click Next.
- 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
- Copy your license file into the
src folder of the demo project.
- 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.
- Open the context menu of the project and select Properties.
- Choose Java Build Path.
- 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.
- Click on Add External JARs again and add the
jfxswt.jar that is located in the lib directory of your local Java SDK installation.
- Finally click on Add Library and add
Plug-in Dependencies and click Finish.
Starting the demo
- In the main workbench toolbar, hit the green Launch Button and choose Eclipse Application. A new instance of Eclipse should be starting up.
- To show the views of the demo, select Window from the menu an navigate to Show View -> Other....
- Select the following views, which are located in the Other tab:
- Graph Editor View
- Graph Overview
- Node Description
- Palette
- To center the graph in the Graph Editor View, start by clicking on the Fit Graph Bounds button in the view's toolbar.
Copyright yWorks GmbH, 2015. All rights reserved.