Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] Perspective switching when using private launch configurations


Kristen,

When you say you have 'the preference checked', what do you mean?  The only way a config causes a perspective switch when it is launched is if you have set the appropriate attribute (for example IDebugUIConstants.ATTR_TARGET_RUN_PERSPECTIVE) with the desired perspective ID.  

So for example:

// Create config
ILaunchConfigurationWorkingCopy config = .......

// Set config to switch to debug perspective in Run mode
config.setAttribute(IDebugUIConstants.ATTR_TARGET_RUN_PERSPECTIVE, debugPerspectiveID);

Thus, I don't think this has anything to do with the config being private.

Regarding relaunching private configs: they do not show up in the history or in the dialog, but it is perfectly valid to relaunch them programtically.  Thus it's probably better to say that a private config cannot be relaunched by the user.

HTH,
Joe




desarmo@xxxxxxxxxx
Sent by: platform-debug-dev-admin@xxxxxxxxxxx

05/03/2002 03:21 PM
Please respond to platform-debug-dev

       
        To:        platform-debug-dev@xxxxxxxxxxx
        cc:        
        Subject:        [platform-debug-dev] Perspective switching when using private launch configurations


One of our scenarios is the following:  we have a daemon listening for
debug engine connections. When a connection is received, we create a
private launch configuration for it and launch it.  We would then expect to
switch to the debug view (we have the preference checked).
launchAdded(ILaunch) is called, but since the configuration is private, it
does not attempt to open the perspective.  (Note that even if I remove the
private attribute, it still will not switch because the perspective ID is
not set - since we did not use the dialog, the "Common" attributes were not
set.)

My understanding of private was that it was not relaunchable, so it
wouldn't be shown in the dialog or the launch history which is what I am
looking for.  Why does "private" also affect the perspective switching and
can it be changed?

Thanks.

Kristen Desarmo
IBM Distributed Debugger

_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-debug-dev



Back to the top