简体   繁体   English

导入org.eclipse.ui.internal.ShowViewAction无法解析

[英]The import org.eclipse.ui.internal.ShowViewAction cannot be resolved

I can not figure out what I am missing solve this import error. 我无法弄清楚我要解决的导入错误。 I have org.eclipse.ui_3.107.0.v20150507-1945.jar included in my build path, but it does not seem to be what is required. 我的构建路径中包含org.eclipse.ui_3.107.0.v20150507-1945.jar,但这似乎不是必需的。 I've tried including all the other org.eclipse.ui.* jar files in my build path but none seem to be resolving the import error. 我尝试将所有其他org.eclipse.ui。* jar文件包含在我的构建路径中,但是似乎没有一个文件可以解决导入错误。 Does any one know what is needed for this? 有谁知道这需要什么吗?

I'm a relatively new java developer, but have run into the "The import * cannot be resolved" quite a bit and the only way I've found to fix it, if it can't be auto resolved with eclipse's quick fix, is to try and guess what jar needs to be added to the build path. 我是一个相对较新的Java开发人员,但是遇到了“无法解决导入*问题”,这是我发现要解决的唯一方法,如果无法使用eclipse的快速修复方法自动解决它,是尝试猜测需要将哪些jar添加到构建路径。 Is there a more reliable method or is trial and error what it comes down to? 有没有更可靠的方法或者是反复试验的结果?

This is an internal class (the package name includes 'internal'). 这是一个内部类(包名称包括“ internal”)。 You should not be trying to use it. 您不应该尝试使用它。 Internal classes are often created / changed / deleted without warning between Eclipse releases. 内部类通常在Eclipse版本之间创建/更改/删除而不会发出警告。

See Eclipse API Rules of Engagement for more information about the Eclipse API. 有关Eclipse API的更多信息请参阅Eclipse API参与规则

This particular action existed in Eclipse 3.x but is no longer present in Eclipse 4. The action essentially calls IWorkbenchPage.showView , you will have to write your own action to do the same. 这个特定的动作存在于Eclipse 3.x中,但不再存在于Eclipse 4中。该动作实质上调用了IWorkbenchPage.showView ,您必须编写自己的动作才能执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM