问题描述
我正在为Eclipse创建一些插件,我已经选择了另一个Eclipse安装目标平台,当我运行插件时,它成功启动Eclipse实例,但始终在资源透视图,任何人都知道如何在启动另一个被选为目标平台的Eclipse实例时指定例如 Java EE 透视图?您可以在目标平台 plugins / p>中的
(或者它可能是 plugin_customization.ini
文件中设置默认透视图, org.eclipse.sdk plugins / org.eclipse.platform
,具体取决于您的启动配置)。添加行:
org.eclipse.ui / defaultPerspectiveId =透视图
/ pre>
I'm creating some plugins for Eclipse, and I have selected as Target Platform another Eclipse installation, when I run the plugin it launch the Eclipse instance successfully but it always is opened on the Resources perspective, anyone knows how to specify the default for example Java EE perspective when launching another instance of Eclipse selected as target platform?
解决方案You can set the default perspective in the
plugin_customization.ini
file in the target platformplugins/org.eclipse.sdk
(or it might beplugins/org.eclipse.platform
depending on your launch configuration). Add the line:org.eclipse.ui/defaultPerspectiveId=perspective id
这篇关于在Eclipse中设置插件开发的默认视角的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!