Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkgilmer2005-12-07 23:18:06 +0000
committerkgilmer2005-12-07 23:18:06 +0000
commitd95a9a9c06a3203f249a71663f24cd71fe8d07e6 (patch)
tree27b7d3a69e121b5cea1a8c071e8457d58fc849cc /framework/bundles/org.eclipse.ecf.ui/src
parent0d17bd24a23b03fd573045785c418eed8319bdb4 (diff)
downloadorg.eclipse.ecf-d95a9a9c06a3203f249a71663f24cd71fe8d07e6.tar.gz
org.eclipse.ecf-d95a9a9c06a3203f249a71663f24cd71fe8d07e6.tar.xz
org.eclipse.ecf-d95a9a9c06a3203f249a71663f24cd71fe8d07e6.zip
Switched to SimpleLinkTextViewer for hyperlink support.
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.ui/src')
-rw-r--r--framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatRoomView.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatRoomView.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatRoomView.java
index 9adb0a86f..373e95597 100644
--- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatRoomView.java
+++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/ChatRoomView.java
@@ -65,7 +65,7 @@ public class ChatRoomView extends ViewPart implements IMessageListener, IPartici
private Composite mainComp = null;
private IRoomInfo roomInfo = null;
private Text writeText = null;
- private TextViewer readText = null;
+ private SimpleLinkTextViewer readText = null;
private ListViewer memberViewer = null;
IChatRoomViewCloseListener closeListener = null;
@@ -130,10 +130,10 @@ public class ChatRoomView extends ViewPart implements IMessageListener, IPartici
readInlayComp.setLayout(new GridLayout());
readInlayComp.setLayoutData(new GridData(GridData.FILL_BOTH));
readInlayComp.setBackground(memberViewer.getList().getBackground());
- readText = new TextViewer(readInlayComp, SWT.V_SCROLL | SWT.H_SCROLL
+ readText = new SimpleLinkTextViewer(readInlayComp, SWT.V_SCROLL | SWT.H_SCROLL
| SWT.WRAP);
- readText.setDocument(new Document());
- readText.setEditable(false);
+
+ readText.getTextWidget().setEditable(false);
readText.getTextWidget().setLayoutData(new GridData(GridData.FILL_BOTH));
Composite writeComp = new Composite(rightSash, SWT.NONE);

Back to the top