eclipse.platform icon indicating copy to clipboard operation
eclipse.platform copied to clipboard

Eclipse Launch Configuration: group by project and add convenient filters

Open nimo23 opened this issue 5 months ago • 1 comments

Let's make sure issue is not already fixed in latest builds first.

Suggestion

I have many launch configurations belonging to different projects, and it would be user-friendly to be able to group the launch configurations by the workspace location of the project ${workspace_loc} (i.e., project folder).

Currently, grouping is only possible by launch type:

Image

For example, I also used Eclipse Runner plugin (see https://github.com/zaunerc/eclipserunnerplugin), which allowed me to group tasks by own folders:

Image

Ideally, all launch configurations would be grouped by project and, within the project, by launch type.

The Eclipse Runner plugin also has 3 predefined filters which makes the maintainability of launch configurations easier:

  • Filter closed projects
  • Filter deleted projects (to easily remove orphaned tasks manually)
  • Filter current project (shows only the launch configuration of the currently focused project)

Would be nice to also add those filters to the Eclipse Launch Configuration-View.

To sum up:

  1. Please add "Group by workspace" (as described above)
  2. Please add "Filters" (as described above)

Community

  • [x] I understand suggesting an enhancement doesn't mandate anyone to implement it. Other contributors may consider this suggestion, or not, at their own convenience. The most efficient way to get it fixed is that I implement it myself and contribute it back as a good quality patch to the project.

nimo23 avatar Aug 03 '25 17:08 nimo23

That's a good idea for usability!

But implementing it can be a strong challenge at the moment: One tricky thing is that there is not really a common "metamodel" for launch configuration types: some launch configs will require a particular property pointing to a folder, some other another property pointing to a file, some other property pointing to a Type.... and each one of those description types are usually independent. The only relatively common property used is org.eclipse.debug.core.ATTR_WORKING_DIRECTORY, but it's not guaranteed all launch configuraiton types use and set it to the project location; and if too many of them don't set it well, grouping by project would be perceived as incomplete and unusable. But there is still some hope that this is usually well enough set to achieve the suggested grouping.

mickaelistria avatar Aug 03 '25 17:08 mickaelistria