Bug 26617 - [Tasks] double click on TaskList entry causes 2 gotoMarker events
Summary: [Tasks] double click on TaskList entry causes 2 gotoMarker events
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jeff Halhead CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-18 17:06 EST by Joel Storey CLA
Modified: 2003-05-20 16:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Storey CLA 2002-11-18 17:06:27 EST
To reproduce:

Create Java class, insert an error in the code.  Save the file.  Double click 
on the marker in the task list.  The gotoMarker action is run twice.  Once from 
the TaskList.selectionChanged(SelectionChangedEvent) method (inside the 
"if (canJump)" block), and again by the GotoTaskAction (which is itself invoked 
by the IOpenListener on the Task List table viewer).

This is not a problem for text editors as the action performed by the 
gotoMarker does not cause a modal window to appear.  However, in our case, we 
have a modal properties dialog being presented to the user so the error from 
the task list can be corrected.  If the user cancels out of the dialog, then 
the dialog reappears and will confuse the user.
Comment 1 Chris McLaren CLA 2003-05-20 16:23:17 EDT
fixed. note from former student to fixed problem:

"Since a selection changed action always occurs before an open action, 
RevealMarkerAction is called via the selection changed action. 
RevealMarkerAction is only performed however if the active editor has the same 
resource as the current selection. Therefore, if the active editor has the 
same resource as the current selection, OpenMarkerAction simply activates the 
active editor."

let me know if this is still a problem.