Community
Participate
Working Groups
Move your mouse pointer over the "W" letter on this hyperlink: bug#1234W. It is activating the hyperlink, so the detector is getting 1 extra character.
*** Bug 176213 has been marked as a duplicate of this bug. ***
Strange... we're returning the correct region but as you say the link is activating over the trailing character.
Actually, it seems to be a platform bug. I can reproduce it with a normal Java class hyperlink: Ctrl+hover mouse over any class name and you will get a hyperlink. If you hover over the next character, the hyperlink disappears, but you still get a "hand" mouse cursor and you can click the leading character to open the link. I'll move this bug to Platform/Text for comments.
It seems I don't have permissions to change the assignee back to platform-text inbox. Rob, can you do it?
Works for me using Eclipse SDK R3.3 and I20071030-0010 (next time please provide the build ID). Maybe the bug detector interferes here and takes the hyperlink down. Please try whether you can reproduce in plain Eclipse SDK. If yes, reopen with more detailed steps. If not, make a small plug-in that only contributes your bug hyperlink detector and see whether this exhibits the bug. If so, attach the plug-in here and reopen the bug.
Daniel, I can reproduce in a plain 3.3.1 SDK, Windows Vista, sun jdk 1.6.0_03. It is very easy to reproduce. Create the following class: public class Test { private String test; } Hold Ctrl and move the mouse over the whitespace between "String" and "test". It helps if you increase the font size to 14 or bigger. Note that the cursor is changed to "hand", although it is not a hyperlink, neither there is a hyperlink font decoration. If you Ctrl+click the white space, it will open the String class. That is a hyperlink detector contributed by JDT. I can reproduce it with Mylyn (the original bug) task hyperlinks, URL hyperlinks, and JDT/Debug "Step Into" hyperlinks.
See it now.
While you're right that there's also a bug when using Java element hyperlink you are wrong that it is in the framework. The bug was in our Java element hyperlink detector (fixed in HEAD) and there's probably a bug in yours as well.
Daniel: thanks for the pointer. Willian: since you've done the hard work on this I'll reassign to you for further investigation. If you want to pass on this bounce it back to Inbox.
Created attachment 98377 [details] patch I found a way to fix this. I think that this was a problem with is 0 the first index or is this 1.
Created attachment 98378 [details] mylyn/context/zip
Rob: please review. Fyi, I can't reproduce on Mylyn 2.3.x with the case in the description.
Reassigning to you Frank. (In reply to comment #12) > Rob: please review. Fyi, I can't reproduce on Mylyn 2.3.x with the case in the > description. I can still reproduce with Eclipse 3.4 M7 + Mylyn 2.3.2.
Created attachment 100962 [details] updated patch I double check this and think that it is fixed with this patch. What now work is: If you have the text"Ubug#1Vbug#2W" only if the cursor is over the "bug#1" or "bug#2" changes to the hyperlink presentation. If you put the cursor over "W" you no longer get "bug#2". Same for "V" and "bug#1". This test was with 3.4M7 and Mylyn from head.
Created attachment 100963 [details] mylyn/context/zip
Awesome! Patch applied. Thanks for fixing and debugging this Frank.