问题描述
我正在开发Eclipse插件,并将目标平台设置为运行平台".但是,如果我在Eclipse实例中的Java项目上按Alt-Shift-F1组合键,则表示它是IJavaProject,但如果在目标Eclipse实例中进行相同操作,则表示它是IProject.另外,代码完成找不到IJavaProject接口.看来目标平台毕竟与运行中的平台不兼容.
I'm developing an Eclipse plugin and set the Target Platform to "Running Platform". However, if I press Alt-Shift-F1 on a Java project in the Eclipse instance I'm developing in it says it's an IJavaProject but if I do the same in the target Eclipse Instance it says it's an IProject. Also, code completion can't find the interface IJavaProject. It looks like the target platform is incompatible with the running platform after all.
有什么想法吗?
推荐答案
目标平台定义了可能的可用插件集.您正在运行的内容可能只是其中的一部分.在插件"选项卡中查看启动配置,并确保它是您想要的-可能是所有工作区和已启用的目标插件".还要确保在目标平台设置中,并且正在选择目标平台的所有插件.
The target platform defines the possible set of plugins that are available. What you are running will can be a subset of that. Have a look at your launch configuration in the plugins tab and make sure it's what you want - probably "all workspace and enabled target plugins". Also make sure in your target platform setup and you are selecting all of the plugins of the target platform.
这篇关于目标平台与Eclipse插件开发中的运行平台不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!