Eclipse 中的draw2d依赖问题与zest
当尝试运行 此 zest 教程时,出现以下错误:
类型 org.eclipse.draw2d.FigureCanvas 不能 得到解决。是间接的 从所需的 .class 文件引用
通过以下代码从
GraphNode n = new GraphNode(g, SWT.NONE, "Paper");
:我安装了 gef 3.6.2,所以我不知道可能是什么问题。 Eclipse 似乎能做的就是询问我是否要配置我的构建路径设置:
>
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:
What may I be missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
转到项目的清单文件并添加对 org.eclipse.draw2d 包的依赖项。
编辑:使它起作用的原因是向项目的依赖项添加了几个draw2d“外部jar”。谢谢指点!
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!