Wednesday, 21 August 2013

How to add hyper link text to textconsoleviewer?

How to add hyper link text to textconsoleviewer?

In my application i have a dialog where i am putting a text console
viewer.On text console viewer there is some text .Can i make some of the
text as hyperlink.Any pointer on this is appreciated.
CODE:
console = new MessageConsole("Try", null, false);
outputStream = console.newMessageStream();
Composite viewerParent = new Composite(container, SWT.NONE);
GridLayout layout2 = new GridLayout();
layout2.marginBottom = layout2.marginHeight =
layout2.marginLeft = layout2.marginRight = layout2.marginTop =
layout2.marginWidth = 1;
viewerParent.setLayout(layout2);
viewerParent.setLayoutData(new GridData(SWT.FILL, SWT.FILL,
true, true));
viewer = new TextConsoleViewer(viewerParent, console);
viewer.setEditable(false);
viewer.getControl().setLayoutData(new GridData(SWT.FILL,
SWT.FILL, true, true));

No comments:

Post a Comment