类型 org.eclipse.ui.texteditor.* 不可见。

huangapple 未分类评论52阅读模式
英文:

The type org.eclipse.ui.texteditor.* is not visible

问题

我正在尝试重新实现AbstractTextEditor类,但问题是我无法将org.eclipse.ui.texteditor添加到依赖部分。它是否依赖于其他内容?

类型 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?

类型 org.eclipse.ui.texteditor.* 不可见。

答案1

得分: 0

org.eclipse.ui.texteditor Java 包含 AbstractTextEditor,位于 org.eclipse.ui.workbench.texteditor 插件中,您的依赖项中已经有了这个插件。您无需对依赖项做其他操作。

虽然 Java 包名通常与包含它们的插件 ID 相似,但这不是必需的。

此外,我看到您的依赖项中有 org.eclipse.ui.editors.sourceorg.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.

huangapple
  • 本文由 发表于 2020年5月29日 05:16:11
  • 转载请务必保留本文链接:https://java.coder-hub.com/62074659.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定