Bug 482755

Summary: [launch] Optionally cleanup generated launch configuration
Product: [Eclipse Project] Platform Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: gautier.desaintmartinlacaze, ruediger.herrmann, sarika.sinha
Version: 4.5.1   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Rüdiger Herrmann CLA 2015-11-21 09:25:37 EST
The Launching preference page should have an option to cleanup generated launch configurations.

With 'generated' I mean those launch configurations that are created by commands that directly launch the code like 'Run As > JUnit Test' (Alt+Shift+X T) and don't need manual adjustments to the launch configuration.

During a work day, dozens of these launch configurations get created. When opening the launch configuration dialog all these uninteresting items block the view on the few interesting launch configurations that were manually created.

In order to cleanup generated launch configurations, I see two questions arise:
1. how to identify generated launch configurations
   A possible strategy could be to mark launch configurations with a
   'generated' attribute. Another option might be to treat all launch
   configurations that are created outside of the LaunchConfigurationsDialog
   as 'generated'.
2. how and when to treat generated launch configurations
   If the launch configuration wasn't modified since it was created it
   could be deleted after the (first and only) launch terminated.
Comment 1 Sarika Sinha CLA 2015-11-27 01:38:15 EST
Thanks  Rüdiger, for finding and analyzing the scenarios. Will you like to work on it ?
Comment 2 Rüdiger Herrmann CLA 2015-11-27 12:37:28 EST
(In reply to Sarika Sinha from comment #1)
> Thanks  Rüdiger, for finding and analyzing the scenarios. Will you like to
> work on it ?
I already have been working on it. The result can be installed and is described here [1] and the code is here [2]. If the approach turns out feasible, would you like to integrate it?

[1] https://github.com/rherrmann/eclipse-extras#clean-up-generated-lanch-configurations
[2] https://github.com/rherrmann/eclipse-extras/tree/master/com.codeaffine.extras.launch/src/com/codeaffine/extras/launch/internal/cleanup