Bug 482755 - [launch] Optionally cleanup generated launch configuration
Summary: [launch] Optionally cleanup generated launch configuration
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.5.1   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-21 09:25 EST by Rüdiger Herrmann CLA
Modified: 2015-11-30 05:10 EST (History)
3 users (show)

See Also:


Attachments

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