Search code examples
javaeclipseeclipse-gefzest

Problem with draw2d dependency in Eclipse with zest


When trying to run this zest tutorial, I get the following error:

The type org.eclipse.draw2d.FigureCanvas cannot be resolved. It is indirectly referenced from required .class files

over the following bit of code:

GraphNode n = new GraphNode(g, SWT.NONE, "Paper");

I have gef 3.6.2 installed, so I don't get what may be the problem. All that Eclipse seems able to do is ask me if I want to configura my build path settings:

enter image description here

What may I be missing?


Solution

  • Go to your project's manifest file and add dependency on org.eclipse.draw2d bundle.

    Edit: What made it work was adding a couple of draw2d "external jars" to the project's dependencies. Thanks by the clue!