Bug 434379

Summary: Option to delay start of launch until switch perspective dialog prompt is answered
Product: [Eclipse Project] Platform Reporter: Jeff Nevicosi <nevicosi>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.2.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jeff Nevicosi CLA 2014-05-07 19:05:17 EDT
If preference in Run/Debug > Perspective is set to Prompt, the entire launch could start running & possibly complete in the old perspective before the user answers the prompt (assuming not running Debug with breakpoints).  This could be problematic for a number of reasons:

1) Some views/editors were scheduled to open / be brought to front on launch.  If the perspective isn't switched to until after the run begins, these wouldn't be initialized.

2) User confusion if run completes while still prompted.  Perpsective might switch & nothing happens.

Worked around this by adding the prompt modally to LaunchConfigurationDelegate.finalLaunchCheck(), but it required using some internal API, so it's not optimal:

PerspectiveManager (to determine default perspective)
DebugUIPlugin (for access to Perspective Manager)
LaunchConfigurationsMessages (to reuse resources)

Alternatively, request to make these public API?