Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Hyperlinks don't go away
Hyperlinks don't go away [message #331711] Wed, 17 September 2008 18:27 Go to next message
Nikola Borisov is currently offline Nikola BorisovFriend
Messages: 10
Registered: July 2009
Junior Member
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 07:08 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
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
>
Previous Topic:How to provide the initial checked state for the items of a TableViewer with SWT.CHECK?
Next Topic:Replace plugin'ed HTML file with a new one from a fragment
Goto Forum:
  


Current Time: Thu Nov 21 11:54:57 GMT 2024

Powered by FUDForum. Page generated in 0.05397 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top