Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Problem with Hyperlink Presenter
Problem with Hyperlink Presenter [message #34590] Wed, 26 November 2008 07:32
Matthias Kohles is currently offline Matthias KohlesFriend
Messages: 71
Registered: July 2009
Hey guys, it's me again :-)

Now i have a slight problem with the presentation of my hyperlinks in the

I created a class called HyperLinkPresenter which implements the interface

Then i implemented the following two methods.

public void install(ITextViewer textViewer)
System.out.println("install called");

this.viewer = textViewer;

public void showHyperlinks(IHyperlink[] hyperlinks) throws
System.out.println("show hyperlinks called");
Display display =
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShel l().getDisplay();
IHyperlink link = hyperlinks[0];
IRegion link_region = link.getHyperlinkRegion();
Color color = new Color(display, new RGB(128, 128, 128));

this.viewer.setTextColor(color, link_region.getOffset(),
link_region.getLength(), true);


The goal is to make the hyperlink in another color and underline it like
in the java editor. Both methods are called, but the setTextColor method
has no effect? what i am doing wrong here?

thanks in advance

Previous Topic:Problems with p2-izing a product
Next Topic:Problem with Hyperlink Presenter
Goto Forum:

Current Time: Thu Aug 05 12:09:41 GMT 2021

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

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

Back to the top