When trying to run this zest tutorial, I get the following e开发者_JAVA百科rror:
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:
What may I be missing?
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!
精彩评论