eclipse中的新启动按钮(Run As) [英] New launching button (Run As) in eclipse

查看:502
本文介绍了eclipse中的新启动按钮(Run As)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建自己的启动按钮。当您单击项目的鼠标右键,然后单击运行方式 - 您有一些可能性,如Java Applet,Java应用程序或例如JUnitTest。我想用自己的运行配置创建我自己的按钮,像Trololo Application一样的按钮。我想它一定是插件,唯一我在网上找到的是这篇文章 http://www.eclipse.org/articles/Article-Launch-Framework/launch.html 。但是看起来相当困难,我不确定是否可以做我想做的事情。任何其他更快的想法或教程如何做到这一点?

I would like to create my own Launch Button. When You click right mouse button on your project, then "Run As.." - you have some possibilities like Java Applet, Java Application or for example JUnitTest. I would like to create my own button, something like "Trololo Application" with it's own run configuration. I suppose it must be plugin, the only thing I found on the Net is this article http://www.eclipse.org/articles/Article-Launch-Framework/launch.html . But it looks quite difficult and I'm not sure if it can do what I want to do. Any other, faster ideas or tutorial how to do this?

或者是不可能的?

推荐答案

必需的一点是 org.eclipse.debug.core.launchConfigurationTypes 扩展点。其余的只是铃声和口哨,像图标。

The essential bit is the org.eclipse.debug.core.launchConfigurationTypes extension point. The rest are just bells and whistles, like icons.

(当然,你可能还需要一些机制来实际配置您自己的启动配置。)

(Of course, you probably still want some mechanism to actually configure your own launch configurations.)

这篇关于eclipse中的新启动按钮(Run As)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆