Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkgilmer2005-12-07 23:18:54 +0000
committerkgilmer2005-12-07 23:18:54 +0000
commit494be95292e0f722d14ce7c987f2a88ffeb732f9 (patch)
tree700cd5a91089ad7e7059885e9e689eb8ccf0759b
parentd95a9a9c06a3203f249a71663f24cd71fe8d07e6 (diff)
downloadorg.eclipse.ecf-494be95292e0f722d14ce7c987f2a88ffeb732f9.tar.gz
org.eclipse.ecf-494be95292e0f722d14ce7c987f2a88ffeb732f9.tar.xz
org.eclipse.ecf-494be95292e0f722d14ce7c987f2a88ffeb732f9.zip
Sllight change to SimpleLinkTextViewer to conform w/ SWT/JFace constructors.
-rw-r--r--examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ChatComposite.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ChatComposite.java b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ChatComposite.java
index 6e15339f0..e9af738ce 100644
--- a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ChatComposite.java
+++ b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/example/collab/ui/ChatComposite.java
@@ -165,7 +165,8 @@ public class ChatComposite extends Composite {
cl = new ChatLayout(DEFAULT_INPUT_HEIGHT, DEFAULT_INPUT_SEPARATOR);
setLayout(cl);
treeView = tree;
- textoutput = new SimpleLinkTextViewer(this);
+ textoutput = new SimpleLinkTextViewer(this, SWT.V_SCROLL | SWT.H_SCROLL
+ | SWT.WRAP | SWT.BORDER | SWT.READ_ONLY);
String fontName = ClientPlugin.getDefault().getPluginPreferences().getString(ClientPlugin.PREF_CHAT_FONT);
if (!(fontName == null) && !(fontName.equals(""))) {
FontRegistry fr = ClientPlugin.getDefault().getFontRegistry();
@@ -262,6 +263,7 @@ public class ChatComposite extends Composite {
// }
// st.append(sb.toString());
// st.setStyleRange(sr);
+
textoutput.append(sb.toString());
}

Back to the top