Home > Articles > Programming > Java

  • Print
  • + Share This
This chapter is from the book

2.2 Draw2D Project

The full Eclipse RCP framework is not needed to use the Draw2D framework, so if you are creating a simple Java application, you can create a simple Java project in Eclipse and modify its build path to include the following Eclipse JAR files:

  • 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

Alternatively, if you are creating a diagram as part of a larger Eclipse RCP application, then create a Plug-in project with the following plug-in dependencies (see Chapter 2 in the Eclipse Plug-ins book for more about Plug-in projects):

  • org.eclipse.ui
  • org.eclipse.core.runtime
  • org.eclipse.draw2d

Since the second half of this book describes techniques that require the Eclipse RCP framework, we use a Plug-in project rather than a simple Java project for all of the samples in this book.

  • + Share This
  • 🔖 Save To Your Account