Bug 26617

Summary: [Tasks] double click on TaskList entry causes 2 gotoMarker events
Product: [Eclipse Project] Platform Reporter: Joel Storey <jstorey>
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 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.