[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: Establishing Initial Launch Configurations

Asaf (and Bud):

The description of your problem doesn't make sense to me, at least as far as my understanding of eclipse arcania goes. Perhaps if we discuss the terms used in the description the problem will be clearer?
...few custom launch configurations...ILaunchConfiguration instances?
...plugin is installed... plugin is "started" aka "activiated" aka
"loaded". (Not when the user installs it into eclipse?). I guess
the best term is "started" since it is signaled with a call to
start(BundleContext).
...establishes a new workspace... ? this time is neither when the user
installs the plugin into eclipse nor when the plugin starts.
I am guessing that you want these configs triggered when your plugin starts.


Another thing that may help is a description of the "user experience" you want to create. With your plugin installed in to eclipse there may be three cases:
1) User does not use your plugin (should be only some menu items)
2) User needs your plugin but not right now. (actually same as 1)
3) User needs your plugin now. (launch config in place)
To go from (1) or (2) to (3), loading the ILaunchManager in your plugin start(BundleContext) would work.


John.


Asaf Mesika wrote:
I know this posted long ago, but I'm facing the same problem, without any help found in the Eclipse manuals.

Thanks,

Asaf


Bud Curtis wrote:

We would like to establish a few custom launch configurations when our plugin is installed. I believe these configurations have to be installed when ever the user establishes a new workspace. What would be the best technique to accomplish this?

1. We could establish a .Lauch file for each unique job in a project when the user creates one of our project types, but we would only want one created for the workspace or project level launches will be repeated for each project in a workspace.

2. A custom lauch could be created when a new workspace is selected in the workspace's .metadata.pluginsorg.eclipse.debug.core.launches... folder. However, I do not know how to capture that moment from our plugin. Also, I do not know how to get the initial lauch set up with Eclipse once the workspace is created.

I would be very interested in any comments you might have with regard to this topic. Perhaps there is a third way which is better than the first two choices.