Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 51506 - multi-selection for contextual launch
Summary: multi-selection for contextual launch
Status: RESOLVED DUPLICATE of bug 59729
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Chris Tilt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 51420 54117
Blocks:
  Show dependency tree
 
Reported: 2004-02-10 13:44 EST by Darin Wright CLA
Modified: 2004-04-23 09:31 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Wright CLA 2004-02-10 13:44:24 EST
Chris, does the context launch work with multi-selection?

A found a team that requires two files to be selected in the navigator before 
launching. It currently works with launch shortcuts, so we need to ensure that 
it still works/enables for the contextual launch case.
Comment 1 Chris Tilt CLA 2004-02-10 14:10:36 EST
Darin,
No, it currently does not work with multi-selection, by design. What is the
use-case for multi-selection? I think we can extend it to multi-selection, but
there may be some issues with the filtering rules, etc. For example, do the
filters need to be composed? Do the filters need to accept the multi-selection?
Thanks, Chris
Comment 2 Darin Wright CLA 2004-02-11 10:50:54 EST
The use case is that the user must select an XML file and a Java file to 
run "together". This currently works with launch shortcuts in the top level 
menu. The filter should accecpt an ISelection in this case. 

Currently, does the filter just get the selected object? Perhaps we should 
just generalize this to an ISelection?
Comment 3 Darin Wright CLA 2004-02-12 11:49:16 EST
Erin, can you comment on the use case for multi-selection? Thanks.
Comment 4 Chris Tilt CLA 2004-02-12 12:41:27 EST
Darin, you make good points. I have reduced the ISelection to an IResource
because I did not consider the multi-selection case and it appeared to simplify
(greatly) the interface for the filterClass:testAttribute() method. If we use
ISelection, there are several lines of casting/instance checking that must be
added to every filter method. It is also unclear how the new nameFilter
attribute should function. I will need to check if there are any existing
patterns in UI land that we want to be consistent with. To summarize, I agree
that we should find a way to support multi-selection; I would like to make the
typical case the easy one for implementors, though.
Comment 5 Erin Harris CLA 2004-02-13 09:31:09 EST
In order to run an XSL transform, both an xsl file and an xml file need to be
specified.  To provide a true quick launch (e.g. no dialogs) we would need to
allow both these files to be selected by the user.  Also, users can do batch
transforms where one xsl file is applied to a list of xml files.  In this case
it would be nice to allow the user to select one xsl file and several xml files.
Comment 6 Chris Tilt CLA 2004-03-09 01:16:47 EST
Agreed, we need to support multi-selection. This will be accomplished by the
combination of fixing both bugs #51420 and #54117.

Leaving this one open until the above two are resolved and verified.
	
Comment 7 Chris Tilt CLA 2004-03-12 20:03:12 EST
Marking as FIXED since #51420 and #54117 are finished.

Not sure how to proceed to verify. The multi-selection can't be shown yet since
we don't have a multi-selection shortcut handy. However, code inspection of the
ContextualLaunchObjectActionDelegate type in debug/ui will show that we now
treat the user selection as an instance of IStructuredSelection. So, shortcut
providers are free to use multi-selection in the context menu.

Please inspect ContextualLaunchObjectActionDelegate to verify. Thanks.
Comment 8 Darin Wright CLA 2004-04-23 09:31:02 EDT
Re-opening since the bug Jared filed makes this look incomplete.
Comment 9 Darin Wright CLA 2004-04-23 09:31:28 EDT

*** This bug has been marked as a duplicate of 59729 ***