Invoking the "run" button command in plugin [message #793637] |
Wed, 08 February 2012 06:28  |
Eclipse User |
|
|
|
Is there any way to invoke the "Run" button command in Eclipse plugin? I want to run automatically the selected project in my plugin. The basic idea is to run the selected project if it has saved run configuration, or open the "Run as" dialog if no configuration exist.
So far, I've been running only Java applications automatically, but now I want to extend the plugin to launch also different types of applications in Eclipse.
|
|
|
|
|
|
Re: Invoking the "run" button command in plugin [message #841372 is a reply to message #825824] |
Wed, 11 April 2012 04:11   |
Eclipse User |
|
|
|
I'm sorry for the late reply also.
I mean a situation where, for instance, I have imported an Android project to Eclipse and click Run button in toolbar. Because (I guess so), the project is new in the workspace, Eclipse does not know its launch configuration. However, Eclipse can suggest me to launch it as "Android application" or "Java application". The same happens with Java applications and applets, MIDP application etc.
I don't know what this feature is called, but I'd like to have it also in my plugin, which imports projects with different natures to workspace and tries to run them. Instead of creating launch configurations for each project is there way to provide launch configuration suggestions automatically to the user when launching an application?
Please see the picture attached to see what I mean
Attachment: example.png
(Size: 19.43KB, Downloaded 439 times)
[Updated on: Wed, 11 April 2012 04:12] by Moderator
|
|
|
Re: Invoking the "run" button command in plugin [message #1847822 is a reply to message #793637] |
Tue, 09 November 2021 06:27  |
Eclipse User |
|
|
|
Hi Olli and team,
I'm new to eclipse and text-based programming. I'm trying to achieve the similar behavior which you have implemented. I want to invoke the run button in my eclipse plugin and in my case it's fine if it works only for java applications.
Based on your post (So far, I've been running only Java applications automatically), I understand that you know how to invoke the run button in the eclipse plugin to run a java application. Could you please help me by sharing your knowledge with a sample code?
Your help will save a lot of time for me. Thanks in advance.
Thanks,
Vani
|
|
|
Powered by
FUDForum. Page generated in 0.03404 seconds