Eclipse RCP 自定义启动
我对日食完全陌生。我开始开发 Eclipse 产品来实现自定义 IDE。 我想知道是否可以创建自定义“运行”和“调试”操作来启动应用程序。我不想为这些操作添加默认菜单和工具栏条目。
谢谢
I'm totally new to eclipse. I started developing an Eclipse product to realize a custom IDE.
I would like to know if i could create a custom "Run" and "Debug" action to launch an application. I would like not to add the default menus and toolbar entries for these actions.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
菜单和工具栏中的项目是由 RCP 的 ActionBarAdvisor 创建的。您可以选择不添加 Run &调试项目。
您可以通过编程方式创建/编辑/查找启动配置并启动它。请参阅
http://eclipse.org/articles/Article-Java-launch/启动java.html
http://eclipse.org/articles/Article-Launch-Framework/launch.html
了解更多详细信息
The items in your menu and tool bar is created by your RCP's ActionBarAdvisor. You can choose not to add the Run & Debug items.
Programmatically you can create/edit/find a launch configuration and launch it. See
http://eclipse.org/articles/Article-Java-launch/launching-java.html
http://eclipse.org/articles/Article-Launch-Framework/launch.html
for more details
是的,你可以。
如果您希望运行设置与调试设置不同,则需要两个启动配置。如果您想在没有所有 eclipse/目标平台插件的情况下启动 rcp 应用程序,则必须更改 lauch 配置。
使用按钮右侧的小三角形单击“调试配置...”或“运行配置...”。选择启动配置,然后选择“插件选项卡”。将“启动方式:”更改为“仅在下面选择的插件”,然后按“添加所需的插件”按钮。现在您的应用程序应该在没有 IDE 插件的情况下启动。
yes you can.
if you want to have different settings for run than for debug, you need two launch configs. if you want to start your rcp application without all the eclipse/target platform plugins than you have to change the lauch configs.
Click on "Debug Configurations ..." or "Run Configurations ..." using the small triangle right to the buttons. select the launch config and then the "plug-ins tab". change "Launch with:" to "plug-ins selected below only" and press the "Add Required Plug-ins" Button. Now your Application should start without the IDE Plugins.