Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 262310

Summary: Open Link in Console view doesn't work
Product: [Eclipse Project] Platform Reporter: Toshihiro Izumi <euthanasia_waltz>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse, nachervenkova, remy.suen
Version: 3.4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Toshihiro Izumi CLA 2009-01-25 02:17:08 EST
Build ID: M20080911-1700

Steps To Reproduce:
1. In JDT for example, create new class and run it.
public class Test {
	public static void main(String[] args) {
		int i = 1 / 0;
	}
}
2. Error message appears in the Console view.
Exception in thread "main" java.lang.ArithmeticException: / by zero
	at Test.main(Test.java:3)
3. Right-click the hyperlink on "Test.java:3", and click "Open Link".
=> Nothing will happen.
(4. Click the hyperlink => This will work.)


More information:
If user move mouse pointer onto hyperlink,
org.eclipse.ui.console.TextConsoleViewer.linkEntered(IHyperlink)
set the link to internal variable.
However, when user click menu-item "Open Link",
org.eclipse.ui.console.TextConsoleViewer.linkExited(IHyperlink)
run first and clear internal variable.
Next
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Event, boolean)
run and
558: if (action.isEnabled()) {
will fail.
So the action won't run.
Comment 1 Michael Spector CLA 2009-05-29 07:00:10 EDT
*** Bug 232244 has been marked as a duplicate of this bug. ***
Comment 2 Darin Wright CLA 2009-06-09 16:15:41 EDT

*** This bug has been marked as a duplicate of bug 229202 ***