Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 6611 - [Tasks] Task List does not update when jar files selected
Summary: [Tasks] Task List does not update when jar files 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: Tod Creasey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 18458 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-12-05 15:53 EST by Tod Creasey CLA
Modified: 2006-04-07 09:59 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 Tod Creasey CLA 2001-12-05 15:53:24 EST
I am not sure if this is a JDT issue or ours but it should be investigated 
within the context of contributors to the TaskList.

When you select a jar file the task list does not update - that is if you have 
chosen to show only errors on a selected resource they are not cleared out by 
selecting a jar file.

STEPS
1) Open the packages view
2) Select a method with errors
3) Select "Show on selected resource only" - it will just show the errors for 
the method
4) Select a random jar file - no update.

We should clear the list out if the selection changes to no resource
Comment 1 Stefan Xenos CLA 2003-12-10 17:37:04 EST
Confirmed that this is still occurring on I20031209.
Comment 2 Stefan Xenos CLA 2003-12-10 17:56:39 EST
This happens because the problems view only refreshes when you select an
IResource, and external .jars aren't IResources. I experimented with a change
that cleared all errors when you didn't have an IResource in your selection, but
this had the unfortunate consequence of clearing the progress view whenever you
click on the Outline view or any other selection provider that does not contain
IResources... and I'm not sure which behavior is more annoying.

In case anyone's interested, you can make the change in MarkerView.updateNeeded
by removing the < 1 checks on the following lines:

		if (newResources == null || newResources.length < 1) {
			return false;
		}
		if (oldResources == null || oldResources.length < 1) {
			return true;
		}

Comment 3 Stefan Xenos CLA 2003-12-11 14:08:06 EST
This is a trivial code change. The question is whether or not this behavior is
desirable.
Comment 4 Stefan Xenos CLA 2004-08-25 14:35:34 EDT
*** Bug 18458 has been marked as a duplicate of this bug. ***
Comment 5 Tod Creasey CLA 2006-04-07 09:59:14 EDT
This is working in 3.2 M6