英文:
The type org.eclipse.ui.texteditor.* is not visible
问题
我正在尝试重新实现AbstractTextEditor类,但问题是我无法将org.eclipse.ui.texteditor添加到依赖部分。它是否依赖于其他内容?
英文:
I am trying to reimplement the AbstractTextEditor class but the problem that I couldn't add org.eclipse.ui.texteditor in dependencies section. Does it depend on other one?
答案1
得分: 0
org.eclipse.ui.texteditor
Java 包含 AbstractTextEditor
,位于 org.eclipse.ui.workbench.texteditor
插件中,您的依赖项中已经有了这个插件。您无需对依赖项做其他操作。
虽然 Java 包名通常与包含它们的插件 ID 相似,但这不是必需的。
此外,我看到您的依赖项中有 org.eclipse.ui.editors.source
和 org.eclipse.ui.workbench.texteditor.source
,这些只是 Eclipse 内部使用的源代码插件,您不需要将它们列在依赖项列表中。当您尝试构建插件时,它们可能会引起问题。
英文:
The org.eclipse.ui.texteditor
Java package containing AbstractTextEditor
is in the org.eclipse.ui.workbench.texteditor
plug-in which you already have in your dependencies. You do not need to do anything else to the dependencies.
Although Java package names are often similar to the plug-in id that contains them this is not a required.
Also I see you have org.eclipse.ui.editors.source
and org.eclipse.ui.workbench.texteditor.source
in your dependencies - these are source code only plug-ins used internally by Eclipse you don't need them in the dependencies list. They may cause complications when you try and build the plug-in.
专注分享java语言的经验与见解,让所有开发者获益!
评论