diff options
author | slewis | 2008-05-23 19:18:32 +0000 |
---|---|---|
committer | slewis | 2008-05-23 19:18:32 +0000 |
commit | 8859ccdee53b1f18b2c5dbb22f903076bdbd661f (patch) | |
tree | 181efec210f734f9bb61e71da12f5485f3b9de06 /framework/bundles/org.eclipse.ecf.presence.ui | |
parent | decd8ee05a57558e95d65e775fd33598276bd083 (diff) | |
download | org.eclipse.ecf-8859ccdee53b1f18b2c5dbb22f903076bdbd661f.tar.gz org.eclipse.ecf-8859ccdee53b1f18b2c5dbb22f903076bdbd661f.tar.xz org.eclipse.ecf-8859ccdee53b1f18b2c5dbb22f903076bdbd661f.zip |
Fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=223560 applied
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.presence.ui')
-rw-r--r-- | framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/chatroom/ChatRoomManagerView.java | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/chatroom/ChatRoomManagerView.java b/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/chatroom/ChatRoomManagerView.java index 0b46d81ad..6b6bf02ea 100644 --- a/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/chatroom/ChatRoomManagerView.java +++ b/framework/bundles/org.eclipse.ecf.presence.ui/src/org/eclipse/ecf/presence/ui/chatroom/ChatRoomManagerView.java @@ -176,6 +176,9 @@ public class ChatRoomManagerView extends ViewPart implements IChatRoomInvitation subjectText = createStyledTextWidget(rightComp, SWT.SINGLE | SWT.BORDER); subjectText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); + /* + * The sendSubjectChange method in Smack 2.2.1 does not seem to be working correctly, so this whole block + * can be temporily removed. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=223560 subjectText.addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent evt) { if (evt.character == SWT.CR || evt.character == SWT.KEYPAD_CR) { @@ -187,12 +190,15 @@ public class ChatRoomManagerView extends ViewPart implements IChatRoomInvitation chatRoomAdminSender.sendSubjectChange(subjectText.getText()); } } catch (ECFException e) { - disconnected(); + Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, "sendSubjectChange", e));disconnected(); //$NON-NLS-1$ } } } } }); + */ + subjectText.setEditable(false); + subjectText.setEnabled(false); rightSash = new SashForm(rightComp, SWT.VERTICAL); rightSash.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); @@ -752,11 +758,13 @@ public class ChatRoomManagerView extends ViewPart implements IChatRoomInvitation chatRoomContainer.addChatRoomAdminListener(new IChatRoomAdminListener() { public void handleSubjectChange(ID from, final String newSubject) { - chatRoomTab.getInputText().getDisplay().asyncExec(new Runnable() { - public void run() { - chatRoomTab.setSubject(newSubject); - } - }); + if (!chatRoomTab.getInputText().isDisposed()) { + chatRoomTab.getInputText().getDisplay().asyncExec(new Runnable() { + public void run() { + chatRoomTab.setSubject(newSubject); + } + }); + } } }); |