Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » eclipse launch framework
eclipse launch framework [message #330255] Wed, 23 July 2008 11:14 Go to next message
trushna is currently offline trushnaFriend
Messages: 24
Registered: July 2009
Junior Member
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 #330279 is a reply to message #330255] Thu, 24 July 2008 12:37 Go to previous messageGo to next message
Rahul Kamdar is currently offline Rahul KamdarFriend
Messages: 63
Registered: July 2009
Member
Hi,

Does this mean you want to launch your own perspective or view when a user
right-clicks on an item in your custom Project/Product explorer?

In case this is what you want to do, you need to add an objectContribution
or an actionProvider to provide the option for this launch in your right
click menu. Then in the execution for this provided
objectContribution/actionProvider you could do
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage()#setPerspective
or #showView or #activate depending on your requirement.

Rahul


"Trushna" <trushna.kholgade@amdocs.com> wrote in message
news:ccaab3e40ae42e85bd348272142afea7$1@www.eclipse.org...
> 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 #330282 is a reply to message #330279] Thu, 24 July 2008 13:17 Go to previous messageGo to next message
trushna is currently offline trushnaFriend
Messages: 24
Registered: July 2009
Junior Member
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 #330325 is a reply to message #330282] Fri, 25 July 2008 12:44 Go to previous messageGo to next message
Rahul Kamdar is currently offline Rahul KamdarFriend
Messages: 63
Registered: July 2009
Member
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 09:05 Go to previous message
trushna is currently offline trushnaFriend
Messages: 24
Registered: July 2009
Junior Member
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.
Previous Topic:[DataBinding] DOM and Rhino JFace Databinding implementation.
Next Topic:Why I can't set breakpoint on internal class when debugging?
Goto Forum:
  


Current Time: Wed Jul 17 18:27:09 GMT 2024

Powered by FUDForum. Page generated in 0.03554 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top