Bug 32131

Summary: [Tasks] Filter on error only task still shows "todo" tasks
Product: [Eclipse Project] Platform Reporter: Simon Arsenault <simon_arsenault>
Component: UIAssignee: Jeff Halhead <jhalhead>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Simon Arsenault CLA 2003-02-18 11:28:24 EST
Setup your workbench so in the task view there are different tasks including 
TODO's, warning, errors, etc (looking at org.eclipse.ui.workbench is a good 
example).

No open the filter dialog, and check on "Where problem severity is:" and check 
on "Error". Press the OK button.

Notice the TODO tasks are shown still. This is not the behavior I was 
expecting. They should not be visible.
Comment 1 Jeff Halhead CLA 2003-03-21 17:16:11 EST
This filter setting does not apply to tasks since tasks do not have a 
severity. Therefore tasks are unaffected.
Comment 2 Jeff Halhead CLA 2003-03-21 17:19:51 EST
Notice that all tasks are still shown, now just 'TODO' tasks.
Comment 3 Simon Arsenault CLA 2003-03-21 18:02:14 EST
Sorry, but I disagree. The task view is showing a bunch of tasks - whether they 
be todos, warnings, errors, etc. When I say I only want to see tasks whose 
severity is error, all other tasks should go away. If a todo does not have a 
severity, that's fine, it's should be considered like todo.severity != error 
and be hidden.

I know the base definition for "task" marker by core does not define 
the "severity" attribute. Nevertheless, a plugin developer could define 
a "mytask" marker that inherites from "task" marker and defines a "severity" 
attribute. So why shouldn't these participate?

Note, we should change the label in the filter dialog to be "Where severity 
is:" (i.e not include the word problem). I would do the same with "Where 
priority is" and "Where status is")
Comment 4 Jeff Halhead CLA 2003-03-25 17:03:18 EST
I agree with you but I think that in order to change this behavior we need to 
add a 'Not Applicable' or 'No Severity' option to make it possible to include 
markers with no severity attribute defined. For example if I wanted to see 
Java Problems as well as regular Tasks but I didn't want to see warnings or 
infos. Then I could check off Error and Not Applicable. Otherwise it would be 
impossible for me to only see Problems and Tasks. A similar system would be 
required for priority and status.
Comment 5 Chris McLaren CLA 2003-05-20 16:24:03 EDT
fixed. split taskview and problemsview makes this invalid.