[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Displaying URL in TableViewer
|
- Blue not a problem use
3.3: ColumnViewerLabelProvider#getForegroundColor(Object)
3.2: ITableColorLabelProvider#getForegroundColor(int,Object)
- Clickable, I'd simply add a MouseListener on the table and check if
tht click is done on the cell with the URL
- Underline is bit harder because you'd need OwnerDraw and in 3.3 you
have write everything your own. In 3.4 we added support for styled text.
Example found here:
http://wiki.eclipse.org/JFaceSnippets
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet049StyledCellLabelProvider.java?view=markup
Tom
Vivian schrieb:
Hi Tom,
Yes, I would like to know if there is a way of rendering a URL in a
table (blue, underlined) and be able to open it by single-clicking. Thanks.
--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl JFace-Committer
--------------------------------------------------------------------