eclipse launch framework [message #330255] |
Wed, 23 July 2008 07:14  |
Eclipse User |
|
|
|
Hi everyone,
I am using eclipse launch framework for GUI in my application.
I am launching this ui from eclipse menubar. It works fine.
I have my own product explorer which can be viewed by..
windows -> show view -> other -> my customised explorer.
I want to launch the same screen (my customised eclipse launch
screen) on right click of one of the item in explorer.
Does anyone know how to achieve this?
|
|
|
|
|
Re: eclipse launch framework [message #330325 is a reply to message #330282] |
Fri, 25 July 2008 08:44   |
Eclipse User |
|
|
|
Hi Trushna,
If you are able to invoke it via the menubar, you must be invoking it via a
ContributionItem on the menu? There must be some menu item or action that is
in turn calling the Launch Configuration (default/custom of your own).
For right-click and then some action for which the same should be launched,
all you need to do is add an actionProvider or an objectContribution to your
context menu and for this action/objectContribution invoke the above
contribution item from the menu.
Rahul
"Trushna" <trushna.kholgade@amdocs.com> wrote in message
news:5c72ee11883b4526d8f56b3727e8fa37$1@www.eclipse.org...
> Hi Rahul,
>
> Thx for the reply.
>
> I dont want to launch my own perspective.
> Like eclipse have its run or debug launch config screen, i have my own
> launch config screen for specifying my own configurations. Right now i
> invoke this launch screen (which uses eclipse launch framework
> LaunchConfigurationDelegate etc..) from the menubar. It works fine.
> I have my own product explorer. I have various actions on right click
> of the items like refactor, move etc. Like these actions, i need to hook
> up action which will invoke same launch configuration screen.
> Similar to -> if we right click on project -> Run as -> Run -> it
> launches eclipse config screen. Similarly when i right click on my product
> item, it should launch my customised launch configuration screen.
> any idea ?
>
> Regards,
> Trushna.
>
>
|
|
|
Re: eclipse launch framework [message #330498 is a reply to message #330325] |
Wed, 30 July 2008 05:05  |
Eclipse User |
|
|
|
Hi Rahul,
Thx for the reply.
I found v. easy way to invoke eclipse launch f/w from my action.
in run method of our action invoke:
DebugUITools.openLaunchConfigurationDialogOnGroup(Display.ge tCurrent().getActiveShell(),
new StructuredSelection(configuration), fIdentifier);
where fIdentifier is name of your customised launch configuration.
Regards,
Trushna.
|
|
|
Powered by
FUDForum. Page generated in 0.04600 seconds