Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Using eclipse launch framework
Using eclipse launch framework [message #329878] Wed, 09 July 2008 06:22 Go to next message
Trushna is currently offline TrushnaFriend
Messages: 1
Registered: July 2009
Junior Member
I am using eclipse launch framework for my GUI.
I have followed all the steps given here:
http://www.eclipse.org/articles/Article-Launch-Framework/lau nch.html
I am able to see all my tabs and controls when i select my configuration
but I dont know how to configure Run button to execute my code.
Do we have any similar method like performApply()?

Also, i need to make Apply button ebabled on some event. How to make it
enabled in my selectionListner?

Also, need a help on how to retrieve all the configurations saved in
launch context programatically on any IAction.

Like hibernate has its own launch configuration, can we have our own
launch configuration and configurationType? if yes how?

Can anyone help?

Thanks
Trushna
Re: Using eclipse launch framework [message #329912 is a reply to message #329878] Thu, 10 July 2008 13:43 Go to previous messageGo to next message
Rahul Kamdar is currently offline Rahul KamdarFriend
Messages: 63
Registered: July 2009
Member
"T" <trush_b@yahoo.com> wrote in message
news:3e0bae75f9e563ee7f72aab9bc91a9ca$1@www.eclipse.org...
>I am using eclipse launch framework for my GUI.
> I have followed all the steps given here:
> http://www.eclipse.org/articles/Article-Launch-Framework/lau nch.html
> I am able to see all my tabs and controls when i select my configuration
> but I dont know how to configure Run button to execute my code.
> Do we have any similar method like performApply()?

Need a class that implements ILaunchConfigurationDelegate. In the overridden
"launch" method write your code

>
> Also, i need to make Apply button ebabled on some event. How to make it
> enabled in my selectionListner?

Use the setDirty(boolean) and updateLaunchConfigurationDialog methods

>
> Also, need a help on how to retrieve all the configurations saved in
> launch context programatically on any IAction.

What do you intend to do here exactly? In case you want this information
available to your Delegate class for the LaunchConfiguration, then it gets a
working copy of the LaunchConfiguration object with the values saved from
the Tab. You can use this object.

Rahul

>
> Like hibernate has its own launch configuration, can we have our own
> launch configuration and configurationType? if yes how?
>
> Can anyone help?
>
> Thanks Trushna
>
>
>
Re: Using eclipse launch framework [message #329941 is a reply to message #329912] Thu, 10 July 2008 22:35 Go to previous messageGo to next message
Kilian is currently offline KilianFriend
Messages: 3
Registered: July 2009
Junior Member
Rahul Kamdar wrote:
> "T" <trush_b@yahoo.com> wrote in message
> news:3e0bae75f9e563ee7f72aab9bc91a9ca$1@www.eclipse.org...
>> I am using eclipse launch framework for my GUI.
>> I have followed all the steps given here:
>> http://www.eclipse.org/articles/Article-Launch-Framework/lau nch.html
>> I am able to see all my tabs and controls when i select my configuration
>> but I dont know how to configure Run button to execute my code.

Have you created a launch configuration shortcut as described on that page?
Re: Using eclipse launch framework [message #329942 is a reply to message #329941] Fri, 11 July 2008 04:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trushna.kholgade.xxxx.com

yes i did. actually writing code to be executed i launch method worked.
Thanks a lot for the reply.
Re: Using eclipse launch framework [message #329944 is a reply to message #329941] Fri, 11 July 2008 05:03 Go to previous messageGo to next message
trushna is currently offline trushnaFriend
Messages: 24
Registered: July 2009
Junior Member
Hi,

I am able to customise Run button by overriding launch method in
LaunchConfigurationDelegate.

Aply button also worked calling updateLaunchConfigurationDialog() on
listner.

I could retrieve all the configurations which i created through my launch
dialog using :

ILaunchConfigurationType type =
DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rationType( "id
of my config type");

ILaunchConfiguration[] configs =
DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);

Also i was able to get fully customised launch dialog by adding
'org.eclipse.debug.ui.launchGroups' and other needed extensions. and
specifying customised 'category' i.e. other that run or debug for
'org.eclipse.debug.core.launchConfigurationTypes' and
'org.eclipse.debug.ui.launchGroups' extensions.

Thanks a lot for the reply.
Re: Using eclipse launch framework [message #329947 is a reply to message #329944] Fri, 11 July 2008 07:04 Go to previous messageGo to next message
Rahul Kamdar is currently offline Rahul KamdarFriend
Messages: 63
Registered: July 2009
Member
Great! :)

I didn't know of
DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);

So something I got to know as well!

Rahul

"T" <trushna.kholgade@amdocs.com> wrote in message
news:36d5e114ace28e3367acda674b6c24c1$1@www.eclipse.org...
> Hi,
> I am able to customise Run button by overriding launch method in
> LaunchConfigurationDelegate.
>
> Aply button also worked calling updateLaunchConfigurationDialog() on
> listner.
>
> I could retrieve all the configurations which i created through my launch
> dialog using :
> ILaunchConfigurationType type =
> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rationType( "id
> of my config type");
> ILaunchConfiguration[] configs =
> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);
>
> Also i was able to get fully customised launch dialog by adding
> 'org.eclipse.debug.ui.launchGroups' and other needed extensions. and
> specifying customised 'category' i.e. other that run or debug for
> 'org.eclipse.debug.core.launchConfigurationTypes' and
> 'org.eclipse.debug.ui.launchGroups' extensions.
>
> Thanks a lot for the reply.
>
Re: Using eclipse launch framework [message #329995 is a reply to message #329947] Fri, 11 July 2008 18:13 Go to previous messageGo to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
Did you guys understand what the difference is between a
LaunchConfigurationType and a LaunchConfigurationGroup?

At one time I had my launch config type showing up in Run and Debug
configuration UIs. But now they don't show. Any hints on how to debug this?


Rahul Kamdar wrote:
> Great! :)
>
> I didn't know of
> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);
>
> So something I got to know as well!
>
> Rahul
>
> "T" <trushna.kholgade@amdocs.com> wrote in message
> news:36d5e114ace28e3367acda674b6c24c1$1@www.eclipse.org...
>> Hi,
>> I am able to customise Run button by overriding launch method in
>> LaunchConfigurationDelegate.
>>
>> Aply button also worked calling updateLaunchConfigurationDialog() on
>> listner.
>>
>> I could retrieve all the configurations which i created through my launch
>> dialog using :
>> ILaunchConfigurationType type =
>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rationType( "id
>> of my config type");
>> ILaunchConfiguration[] configs =
>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);
>>
>> Also i was able to get fully customised launch dialog by adding
>> 'org.eclipse.debug.ui.launchGroups' and other needed extensions. and
>> specifying customised 'category' i.e. other that run or debug for
>> 'org.eclipse.debug.core.launchConfigurationTypes' and
>> 'org.eclipse.debug.ui.launchGroups' extensions.
>>
>> Thanks a lot for the reply.
>>
>
>
Re: Using eclipse launch framework [message #330044 is a reply to message #329995] Mon, 14 July 2008 08:42 Go to previous messageGo to next message
Rahul Kamdar is currently offline Rahul KamdarFriend
Messages: 63
Registered: July 2009
Member
LaunchConfigurationType is the description of how to launch a
program/application; while these configuration types sit under a
LaunchConfigurationGroup. The group is basically the placeholder for these
types in the Run/Debug menu (I think).

What was/is the problem you were encountering exactly?

Rahul

"John J Barton" <johnjbarton@johnjbarton.com> wrote in message
news:g587f3$vq7$1@build.eclipse.org...
> Did you guys understand what the difference is between a
> LaunchConfigurationType and a LaunchConfigurationGroup?
>
> At one time I had my launch config type showing up in Run and Debug
> configuration UIs. But now they don't show. Any hints on how to debug
> this?
>
>
> Rahul Kamdar wrote:
>> Great! :)
>>
>> I didn't know of
>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);
>>
>> So something I got to know as well!
>>
>> Rahul
>>
>> "T" <trushna.kholgade@amdocs.com> wrote in message
>> news:36d5e114ace28e3367acda674b6c24c1$1@www.eclipse.org...
>>> Hi,
>>> I am able to customise Run button by overriding launch method in
>>> LaunchConfigurationDelegate.
>>>
>>> Aply button also worked calling updateLaunchConfigurationDialog() on
>>> listner.
>>>
>>> I could retrieve all the configurations which i created through my
>>> launch dialog using :
>>> ILaunchConfigurationType type =
>>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rationType( "id
>>> of my config type");
>>> ILaunchConfiguration[] configs =
>>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);
>>>
>>> Also i was able to get fully customised launch dialog by adding
>>> 'org.eclipse.debug.ui.launchGroups' and other needed extensions. and
>>> specifying customised 'category' i.e. other that run or debug for
>>> 'org.eclipse.debug.core.launchConfigurationTypes' and
>>> 'org.eclipse.debug.ui.launchGroups' extensions.
>>>
>>> Thanks a lot for the reply.
>>>
>>
Re: Using eclipse launch framework [message #330094 is a reply to message #330044] Mon, 14 July 2008 18:36 Go to previous messageGo to next message
John J. Barton is currently offline John J. BartonFriend
Messages: 311
Registered: July 2009
Senior Member
Rahul Kamdar wrote:
> LaunchConfigurationType is the description of how to launch a
> program/application; while these configuration types sit under a
> LaunchConfigurationGroup. The group is basically the placeholder for these
> types in the Run/Debug menu (I think).

So then what is a "category" on the LaunchConfigurationType? I thought
that the category was the thing the types would sit under...

>
> What was/is the problem you were encountering exactly?

I had put my LaunchConfigurationType under a non-existent category. Once
I removed the category, the type appeared, yay!

>
> Rahul
>
> "John J Barton" <johnjbarton@johnjbarton.com> wrote in message
> news:g587f3$vq7$1@build.eclipse.org...
>> Did you guys understand what the difference is between a
>> LaunchConfigurationType and a LaunchConfigurationGroup?
>>
>> At one time I had my launch config type showing up in Run and Debug
>> configuration UIs. But now they don't show. Any hints on how to debug
>> this?
>>
>>
>> Rahul Kamdar wrote:
>>> Great! :)
>>>
>>> I didn't know of
>>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);
>>>
>>> So something I got to know as well!
>>>
>>> Rahul
>>>
>>> "T" <trushna.kholgade@amdocs.com> wrote in message
>>> news:36d5e114ace28e3367acda674b6c24c1$1@www.eclipse.org...
>>>> Hi,
>>>> I am able to customise Run button by overriding launch method in
>>>> LaunchConfigurationDelegate.
>>>>
>>>> Aply button also worked calling updateLaunchConfigurationDialog() on
>>>> listner.
>>>>
>>>> I could retrieve all the configurations which i created through my
>>>> launch dialog using :
>>>> ILaunchConfigurationType type =
>>>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rationType( "id
>>>> of my config type");
>>>> ILaunchConfiguration[] configs =
>>>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);
>>>>
>>>> Also i was able to get fully customised launch dialog by adding
>>>> 'org.eclipse.debug.ui.launchGroups' and other needed extensions. and
>>>> specifying customised 'category' i.e. other that run or debug for
>>>> 'org.eclipse.debug.core.launchConfigurationTypes' and
>>>> 'org.eclipse.debug.ui.launchGroups' extensions.
>>>>
>>>> Thanks a lot for the reply.
>>>>
>
Re: Using eclipse launch framework [message #330436 is a reply to message #330094] Mon, 28 July 2008 19:33 Go to previous message
Rahul Kamdar is currently offline Rahul KamdarFriend
Messages: 63
Registered: July 2009
Member
Hi John,

I am really sorry for having read this so late.

"John J Barton" <johnjbarton@johnjbarton.com> wrote in message
news:g5g5sv$cuh$1@build.eclipse.org...
> Rahul Kamdar wrote:
>> LaunchConfigurationType is the description of how to launch a
>> program/application; while these configuration types sit under a
>> LaunchConfigurationGroup. The group is basically the placeholder for
>> these types in the Run/Debug menu (I think).
>
> So then what is a "category" on the LaunchConfigurationType? I thought
> that the category was the thing the types would sit under...

Rahul: Hmm... I am also pretty unsure of this now :( You could try posting
this as a new topic?

>
>>
>> What was/is the problem you were encountering exactly?
>
> I had put my LaunchConfigurationType under a non-existent category. Once I
> removed the category, the type appeared, yay!

Rahul: Great! :)

>
>>
>> Rahul
>>
>> "John J Barton" <johnjbarton@johnjbarton.com> wrote in message
>> news:g587f3$vq7$1@build.eclipse.org...
>>> Did you guys understand what the difference is between a
>>> LaunchConfigurationType and a LaunchConfigurationGroup?
>>>
>>> At one time I had my launch config type showing up in Run and Debug
>>> configuration UIs. But now they don't show. Any hints on how to debug
>>> this?
>>>
>>>
>>> Rahul Kamdar wrote:
>>>> Great! :)
>>>>
>>>> I didn't know of
>>>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);
>>>>
>>>> So something I got to know as well!
>>>>
>>>> Rahul
>>>>
>>>> "T" <trushna.kholgade@amdocs.com> wrote in message
>>>> news:36d5e114ace28e3367acda674b6c24c1$1@www.eclipse.org...
>>>>> Hi,
>>>>> I am able to customise Run button by overriding launch method in
>>>>> LaunchConfigurationDelegate.
>>>>>
>>>>> Aply button also worked calling updateLaunchConfigurationDialog() on
>>>>> listner.
>>>>>
>>>>> I could retrieve all the configurations which i created through my
>>>>> launch dialog using :
>>>>> ILaunchConfigurationType type =
>>>>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rationType( "id
>>>>> of my config type");
>>>>> ILaunchConfiguration[] configs =
>>>>> DebugPlugin.getDefault().getLaunchManager().getLaunchConfigu rations(type);
>>>>>
>>>>> Also i was able to get fully customised launch dialog by adding
>>>>> 'org.eclipse.debug.ui.launchGroups' and other needed extensions. and
>>>>> specifying customised 'category' i.e. other that run or debug for
>>>>> 'org.eclipse.debug.core.launchConfigurationTypes' and
>>>>> 'org.eclipse.debug.ui.launchGroups' extensions.
>>>>>
>>>>> Thanks a lot for the reply.
>>>>>
>>
Previous Topic:"Open" menu action in Project Explorer
Next Topic:Modifying Menu inside Job/Display.asyncExec()
Goto Forum:
  


Current Time: Fri Oct 18 13:24:32 GMT 2024

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

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

Back to the top