Community
Participate
Working Groups
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.
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.