Hyperlinks don't go away [message #331711] |
Wed, 17 September 2008 14:27  |
Eclipse User |
|
|
|
Hi All,
I'm trying to add support for a new type of hyperlinks in my editor...
Everything seems good. I have HyperlinkDetector that extends the
AbstractHyperlinkDetector, I have my own Hyperlink class that implements
the IHyperlink interface. Hyperlinks actually work everything is great
except...
Sometimes the blue colored text with the underline does not go away after
the first time i pass with my mouse (holding Ctrl) over the word. I later
discovered that his only happens if there is no space after the word that
becomes a link.
For example if i have:
<code>
my_hyperlink1(one or more spaces after it)
my_hyperlink2(no spaces after it, just new line)
</code>
my_hyperlink2 stays colored after the first time i pass over it (sounds
like a bug) and my_hyperlink1 doesn't.
I haven't defined my own HyperlinkPresentation... I'm using the default
one...
Am I doing something wrong.
Nikola
|
|
|
Re: Hyperlinks don't go away [message #331714 is a reply to message #331711] |
Thu, 18 September 2008 03:08  |
Eclipse User |
|
|
|
Nikola Borisov wrote:
> Hi All,
>
> I'm trying to add support for a new type of hyperlinks in my editor...
> Everything seems good. I have HyperlinkDetector that extends the
> AbstractHyperlinkDetector, I have my own Hyperlink class that
> implements the IHyperlink interface. Hyperlinks actually work
> everything is great except...
>
> Sometimes the blue colored text with the underline does not go away
> after the first time i pass with my mouse (holding Ctrl) over the
> word. I later discovered that his only happens if there is no space
> after the word that becomes a link.
> For example if i have:
>
> <code>
> my_hyperlink1(one or more spaces after it)
> my_hyperlink2(no spaces after it, just new line)
> </code>
>
> my_hyperlink2 stays colored after the first time i pass over it
> (sounds like a bug) and my_hyperlink1 doesn't.
>
> I haven't defined my own HyperlinkPresentation... I'm using the
> default one...
> Am I doing something wrong.
Don't know ;-)
It might be a bug. The best you can do is create a little demo plug-in
and attach it to a bug report (Platform Text,
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform).
Dani
>
> Nikola
>
|
|
|
Powered by
FUDForum. Page generated in 0.03332 seconds