Graphical editor Framework Eclipse Project Primer Series (1)---overview, we've mentioned that the DRAW2D framework is an important part of the GEF framework. So how does the draw2d environment build up? In fact, it's easy to go to Eclipse's official website to download an Eclipse development environment (this department I will not repeat, there is a lot of information online). I am the author of the computer is Indigo, so I will take Eclipse Indigo as an example to show you draw2d development environment. For details, see the steps below.
(1) Open Indigo Eclipse, then click on Help---->install new software, will pop up a page, select the Update site Indigo
(2) After selecting an update site for Indigo, select the three projects under the Model node and the GEF project.
(3) After loading, restart Eclipse. The framework for running DRAW2D does not need to be in Eclipse's RCP framework, we use a common Java application. So create a new Java project. and set the following jar below the build path of the current normal Java application project. However, the author also added draw2d's Help documentation and source code to the current project, noting that draw2d's help documentation and source code are optional and not required.
? eclipse_home/plugins/
Org.eclipse.swt_3.7.x.vxxxx.jar
? eclipse_home/plugins/
Org.eclipse.swt.win32.win32.x86_3.7.x.vxxxx.jar
? eclipse_home/plugins/
Org.eclipse.draw2d_3.7.x.vxxxx.jar
(4) Congratulations, your environment is set up.
Next, the reader can start writing and running the example program. In the chapter, I will show you a simple example of Hello world. Please pay attention and look forward to ....
GEF (graphical Editor Framework) Eclipse Project Starter series (2)---the building of the draw2d development environment