Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] accessing LaunchConfiguration from a tab

It turns out that the "initializeFrom(ILanuchConfiguration)" is a working 
copy (you could save it in an instance variable). As well, the 
activated(...)/deactivated(...) methods provide the working copy as a 
parameter (from AbstractLaunchConfigurationTab).

Darin Wright




"Mike Frysinger" <vapier.adi@xxxxxxxxx> 
Sent by: platform-debug-dev-bounces@xxxxxxxxxxx
05/26/2008 11:15 PM
Please respond to
"Eclipse Platform Debug component developers list." 
<platform-debug-dev@xxxxxxxxxxx>


To
"Eclipse Platform Debug component developers list." 
<platform-debug-dev@xxxxxxxxxxx>
cc

Subject
Re: [platform-debug-dev] accessing LaunchConfiguration from a tab






On Mon, May 26, 2008 at 4:09 PM, Darin Wright wrote:
> A launch tab has access to the working copy, and the working copy has
> access to the original
>
> @see ILaunchConfigurationWorkingCopy.getOriginal()
>
> Since working copies can be nested, you should also traverse the parents
> of a working copy to get to the root working copy first - @see
> getParent().

ah, the code i was playing with was in an event handler, so "this"
wasnt referring back to the LaunchConfigurationTab like i was thinking
at the time ... the LaunchConfigurationTab certainly has a lot more
functions to play with, but i cant seem to see how to get at the
working copy via it.  any hints ?

i do see that LaunchConfigurationTab's can access any
LaunchConfiguration via the LaunchManager, but that involves
specifying a name when i just want "the active one".
-mike
_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-debug-dev




Back to the top