Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpnehrer2005-10-11 04:40:34 +0000
committerpnehrer2005-10-11 04:40:34 +0000
commit324ead4bd52f669e8975bfe380d4c9a3b9644013 (patch)
treed08cebbabea219abf5eaff1b3fda5cb571769641 /framework/bundles/org.eclipse.ecf.ui/src
parent293e9d5239927a7c4d154a80a787d754a4ef4dae (diff)
downloadorg.eclipse.ecf-324ead4bd52f669e8975bfe380d4c9a3b9644013.tar.gz
org.eclipse.ecf-324ead4bd52f669e8975bfe380d4c9a3b9644013.tar.xz
org.eclipse.ecf-324ead4bd52f669e8975bfe380d4c9a3b9644013.zip
Made text entry field multi-line, wrapped (bug# 110894).
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.java7
1 files changed, 4 insertions, 3 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 6ef7ed306..99ca827d3 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
@@ -47,8 +47,8 @@ import org.eclipse.ui.part.ViewPart;
import org.eclipse.ui.progress.IWorkbenchSiteProgressService;
public class ChatRoomView extends ViewPart implements IMessageListener, IParticipantListener, IInvitationListener {
- private static final int RATIO_WRITE_PANE = 12;
- private static final int RATIO_READ_PANE = 88;
+ private static final int RATIO_WRITE_PANE = 2;
+ private static final int RATIO_READ_PANE = 7;
private static final int RATIO_READ_WRITE_PANE = 85;
private static final int RATIO_PRESENCE_PANE = 15;
protected static final String DEFAULT_ME_COLOR = "0,255,0";
@@ -137,7 +137,7 @@ public class ChatRoomView extends ViewPart implements IMessageListener, IPartici
Composite writeComp = new Composite(rightSash, SWT.NONE);
writeComp.setLayout(new FillLayout());
- writeText = new Text(writeComp, SWT.BORDER | SWT.SINGLE);
+ writeText = new Text(writeComp, SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);
writeText.addKeyListener(new KeyListener() {
public void keyPressed(KeyEvent evt) {
handleKeyPressed(evt);
@@ -184,6 +184,7 @@ public class ChatRoomView extends ViewPart implements IMessageListener, IPartici
protected void handleKeyPressed(KeyEvent evt) {
if (evt.character == SWT.CR) {
handleEnter();
+ evt.doit = false;
}
}

Back to the top