Bug 12286 - [Tasks] Auto Fix is Task view should be disabled when multiple tasks selected
Summary: [Tasks] Auto Fix is Task view should be disabled when multiple tasks selected
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-03-26 10:43 EST by Michael Valenta CLA
Modified: 2006-06-22 08:20 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Valenta CLA 2002-03-26 10:43:34 EST
In the Task view, when multiple markers that support Auto Fix are selected, 
Auto Fix is enabled but the operation only applies to one of the items 
selected. It would be better to disable auto fix when multiple entries are 
selected.
Comment 1 Johan Compagner CLA 2002-04-09 10:07:32 EDT
Not disable it no,
if they are all the same kind then please let me autofix them all at onces
for example:

I delete 5 files from my workspace that are under CVS control
Then when i select those 5 files i want to be able to autofix and
say at onces commit delete.

If i also select another item that doesn't match, for example a new
file that has a autofix of add to version control/cvsignore then it should be 
disabled.

It should work like GUI Builders work if you select multiply components at 
onces, you still can edit the mutual properties.
Comment 2 Michael Valenta CLA 2002-04-09 10:24:53 EDT
Just because the markers are the same "kind" doesn't mean they have the same 
autofix options (i.e files. This is a result of the current API for determining 
valid autofix options (i.e. the operations are retrieved for a single marker). 
In order to support multiselect, the API for getting resolutions would need to 
be based on an array of markers instead of a single one.
Comment 3 Johan Compagner CLA 2002-04-09 10:53:45 EDT
I don't mean with the same kind that they are a Info/Error or Warning marker. 
But a Info marker with (as far as i can see) the same description like: 

favs.jar is a local addition not under CVS control

And all the info markers that have that "description" should be multiple 
selectable and fixeable at onces.

I don't know what the structure is at the momemt of course.
But i think this should be possible.

Comment 4 Randy Giffen CLA 2002-04-09 17:08:01 EDT
I've released the fix to only enable for single selection.

I agree that showing the "common to all" resolutions is a better solution but 
I am concerned about performance.

I will think through the issues but we may not be able to address this in the 
2.0 time frame.
Comment 5 Randy Giffen CLA 2002-05-16 18:59:14 EDT
Implement "common to all" case post 2.0
Comment 6 Randy Giffen CLA 2002-08-09 16:07:47 EDT
Reopen to investigate
Comment 7 Tod Creasey CLA 2006-06-22 08:20:48 EDT
This is the case in 3.2