Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 22195 - Limit displayed launch configurations to those relevant to the current project
Summary: Limit displayed launch configurations to those relevant to the current project
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 16325 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-06 05:24 EDT by Leon J. Breedt CLA
Modified: 2004-06-11 11:12 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leon J. Breedt CLA 2002-08-06 05:24:06 EDT
(1) Allow limiting of displayed launch configurations in the launch 
configuration dialog to the currently selected project only, I typically find 
it annoying to have all the myriad unittests of other projects mixed with those 
of the project i'm currently working on, with no distinctive differentiation in 
the tree view. [Will investigate, and possibly provide patch].

(2) Store launch configuration in .project or other file, this would make it 
easy to reproduce run / debug settings for shared projects.
Maybe the information could be tagged for the its target platform, so that you 
could have one set for win32, and another for unix/linux.
The only thing i see as a possible problem is the JRE definition, if users have 
added their own definitions.
Comment 1 Darin Swanson CLA 2002-08-06 09:08:03 EDT
Leon, have you explored using shared launch configurations?  I believe this 
would address concern #2.  Launch configurations can be specified as shared on 
the Common tab of the dialog. This allows you to control their location and 
sharing via the VCM.

We look forward to your accessment of #1...do not hesitate to start a 
discussion on the debug mailing lists.
Comment 2 Leon J. Breedt CLA 2002-08-06 09:32:13 EDT
correct, #2 does exactly what i want. i don't know how i missed it, apologies :)
Comment 3 Leon J. Breedt CLA 2002-08-07 12:05:40 EDT
after some additional investigation, it seems that there isn't a quick solution 
for this, alas.

the project attribute looks to be a JDT addition, while the content provider 
for the launch configuration tree resides in Debug UI, and shouldn't know about 
JDT attributes IMHO.

i couldn't find a clear link between the configuration and the workspace 
project, for a workaround.

a solution could be to make the project attribute more general, since i can't 
see when you'd have a launch configuration without associating a project with 
it?

then the filtering could be done in 
org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog as 
it is currently.

comments?
Comment 4 Darin Swanson CLA 2002-08-07 14:45:25 EDT
Java remote launch configurations do not need to be associated with a project.
Likely there are other cases for other languages.
Comment 5 Joe Szurszewski CLA 2002-08-07 15:29:15 EDT
Even in the local Java case, projects are merely a convenience and are not required.  They exist 
simply to constrain the search for a main type and to provide default values for the source lookup 
fields.  It is perfectly legal for a  local Java application launch configuration to have no 
project specified.
Comment 6 Jared Burns CLA 2002-08-08 18:11:25 EDT
I think the real goal here is the ability to define Working Sets of launch 
configs. This makes perfect sense as people launch different sets of 
configs when they're working in different contexts.

If you're using Eclipse to work on different projects (and one of the core 
goals of Eclipse is to facilitate this), it seems that the current 
interface could quickly become oversaturated with configs that are useless 
in your current context.

Short of adding the notion of Working Sets to the launch configuration 
framework, project-based filtering seems like it would be quite handy. 
While projects aren't required on launch configs, they would give the user 
a means for creating effective working sets (by assigning like configs to 
like projects) without an explicit Working Set infrastructure.
Comment 7 Joe Szurszewski CLA 2002-08-12 12:06:54 EDT
Sounds reasonable.  I will implement this and see what kind of feedback it gets.  Darin, OK to make 
this a 2.1 candidate?
Comment 8 Darin Wright CLA 2002-08-12 12:37:22 EDT
I would prefer to see a (draft) API proposal, and description of how it would 
look to the user before implementing. There are no breaking API changes allowed 
in 2.1. The launch dialog has "high visibility", so changes need to be well 
integrated, as to not "break/change" the current usage.
Comment 9 Joe Szurszewski CLA 2002-08-12 16:10:57 EDT
A proposal has been posted to both debug mailing lists.
Comment 10 Joe Szurszewski CLA 2002-08-13 11:36:54 EDT
Popular opinion favors working sets instead of project filters.  Will investigate.
Comment 11 Darin Wright CLA 2002-08-13 11:40:55 EDT
As well, there is a request to filter by launch config type, or even a way to 
group launch config types. For example, we may have "java" config types - 
local, remote, JUnit, Runtime workbench. This may be out of scope for the 
current scheme, but should be considered if possible.
Comment 12 Leon J. Breedt CLA 2002-08-13 11:54:39 EDT
moving to a working set based approach has one minor implication: a working set 
of is not public (will it be shareable?), hence setting up the working set 
would be a manual process every time the project is newly created in the 
workspace (from CVS or some other source). this is admittedly a fringe case, 
working sets work for me :)
Comment 13 Joe Szurszewski CLA 2002-08-22 11:40:42 EDT
Implemented working sets for launch configurations.  Actions to select/deselect a working set 
are accessed on tree context menu in launch configuration dialog.  User may select individual 
configs, and/or entire config types.  With the latter, all future configs of that type 
essentially become members of the working set.  The working set in effect is persisted across 
invocations of the dialog & workbench.  
Comment 14 Joe Szurszewski CLA 2002-08-22 11:41:01 EDT
Please verify, Darin W.
Comment 15 Darin Wright CLA 2002-08-23 08:35:41 EDT
*** Bug 16325 has been marked as a duplicate of this bug. ***
Comment 16 Darin Wright CLA 2002-08-26 10:06:03 EDT
Comments/Questions
(1) Would it be beneficial to change the title of the "Launch Configurations:" 
tree? When all launch configs are showing, the title could be something 
like "All Launch Configurations:". When a working set is applied, we can use 
the name of the working set. This quickly indicates when a working set is being 
used, and which one.
(2) The menu item labels for "Select working set..." and "Delselect working 
set" might be called "Show Working Set..." and "Show All". (Or, at least the 
capitalization needs to be modified). 
Comment 17 Joe Szurszewski CLA 2002-08-26 10:27:48 EDT
I like (1) and will make this change.  As for (2), I copied the wording 
(though not the capitalization unfortunately) from the Package Explorer.  Are 
you alright with just making the capitalization match?  I think this is a 
little more explicit than "Show All", since it's not clear this has anything 
to do with working sets.
Comment 18 Darin Wright CLA 2002-08-26 10:41:03 EDT
Wording is fine for #2, since it is consistent with Java Tooling (with 
capitalization fix).
Comment 19 Joe Szurszewski CLA 2002-08-26 15:56:10 EDT
Made both fixes.  On (1), I decided to follow the Package Explorer example and indicate the current 
working set via a tooltip on the tree label.  This was necessary because we needed to maintain the 
mnemonic to give focus to the tree.  The only other option was to add a second line of labels, which 
wastes a lot of real-estate.  
Comment 20 Darin Wright CLA 2002-08-26 16:37:15 EDT
Verified
Comment 21 Eric Rizzo CLA 2004-06-11 11:06:44 EDT
Can someone explain (or show with screen capture) how to access this
functionality? I'm looking at both 2.1.3 and 3.0M9 in the Launch Config dialog,
but no matter where I right-click in the tree I don't see any working set
choices. All I get are New, Duplicate, and Delete.
I can find no mention of this in the 2.1.3 or 3.0M9 help pages, which should be
fixed as part of this bug or entered as a new one?
Comment 22 Darin Wright CLA 2004-06-11 11:12:02 EDT
This feature was removed - it never shipped.