How to create/start a run-target?

Is this possible? I would like to add a menu item to the
project/packages trees, and based on the selection run a particular
run-target. I would really like to create the run-target on the fly also.

--
Barry Kaplan
Integrated Trading Solutions
bkaplan@integratedtrading.com

5 comments

Hi,
Take a look at com.intellij.execution package. Classes like RunManager, RuntimeConfiguration etc looks like fits your need. But this API not officially open!!! (But they not fully scrambled ;) )

TIA,
Dmitry

0

Ok. I was looking at the javadocs in 1165, but they only had a class for
java parameters and one exception class. Do I need to use the code and
not the apis to study the openapi?

Dmitry Kashin wrote:

Hi,
Take a look at com.intellij.execution package. Classes like RunManager, RuntimeConfiguration etc looks like fits your need. But this API not officially open!!! (But they not fully scrambled ;) )

TIA,
Dmitry


--
Barry Kaplan
Integrated Trading Solutions
bkaplan@integratedtrading.com

0

Whoops, sorry Dmitry. I did not notice your comment about the classes
not being open yet. But I'll play with them anyway. Thanks.


Dmitry Kashin wrote:

Hi,
Take a look at com.intellij.execution package. Classes like RunManager, RuntimeConfiguration etc looks like fits your need. But this API not officially open!!! (But they not fully scrambled ;) )

TIA,
Dmitry


--
Barry Kaplan
Integrated Trading Solutions
bkaplan@integratedtrading.com

0

I'm affraid you can only examine this classes in IDEA to determine what you want by its names and signatures. But it's normal practice I guess. There are many interesting classes without javadocs :)

TIA,
Dmitry

0

You may try these: (It will probably work, but without any guarantee to work
in the future).
You may implement com.intellij.execution.ConfigurationFactory your
implementation should be ApplicationComponent. - this will add a new tab to
Run/Debug Configurations dialog. Also new factory will be used to create new
configurations from context (in editor, project view, ...) but only when no
default configuration can be created (you won't be able to run directories
and packages - JUnit configurations dominate, classes with main methods -
Applications, JApplet inheritors, classes and methods which are suitable as
tests. All other PsiElements are at your service.)

Implement com.intellij.execution.RuntimeConfiguration and pass your
implementation directly to RunManager to run.

--

Dmitry Peshehonov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Barry Kaplan" <bkaplan@integratedtrading.com> wrote in message
news:c2locf$tbk$1@is.intellij.net...

Is this possible? I would like to add a menu item to the
project/packages trees, and based on the selection run a particular
run-target. I would really like to create the run-target on the fly also.

>

--
Barry Kaplan
Integrated Trading Solutions
bkaplan@integratedtrading.com

>


0

Please sign in to leave a comment.