Bug 434379 - Option to delay start of launch until switch perspective dialog prompt is answered
Summary: Option to delay start of launch until switch perspective dialog prompt is ans...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.2.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-07 19:05 EDT by Jeff Nevicosi CLA
Modified: 2014-05-07 19:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?