diff options
| author | slewis | 2005-04-12 05:29:39 +0000 |
|---|---|---|
| committer | slewis | 2005-04-12 05:29:39 +0000 |
| commit | 7e5855b8935015a180ec2de00d2e7f38a7be338d (patch) | |
| tree | 4f12ed04141495efb5521954c15bfde7cb91720a | |
| parent | 820d024091652c6e8be77c54b2413b50fd353aee (diff) | |
| download | org.eclipse.ecf-7e5855b8935015a180ec2de00d2e7f38a7be338d.tar.gz org.eclipse.ecf-7e5855b8935015a180ec2de00d2e7f38a7be338d.tar.xz org.eclipse.ecf-7e5855b8935015a180ec2de00d2e7f38a7be338d.zip | |
Added behavior to RosterView such that when view is closed (dispose()) the disconnect() call is made to disconnect the client
| -rw-r--r-- | framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/RosterView.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/RosterView.java b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/RosterView.java index c9e9eb33c..fd56ce8ee 100644 --- a/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/RosterView.java +++ b/framework/bundles/org.eclipse.ecf.ui/src/org/eclipse/ecf/ui/views/RosterView.java @@ -66,7 +66,7 @@ public class RosterView extends ViewPart implements IPresenceListener, IMessageL public static final String DISCONNECT_ICON_DISABLED = "icons/disabled/terminate_co.gif"; public static final String DISCONNECT_ICON_ENABLED = "icons/enabled/terminate_co.gif"; - protected static final int TREE_EXPANSION_LEVELS = 1; + protected static final int TREE_EXPANSION_LEVELS = 2; private TreeViewer viewer; private Action chatAction; private Action selectedChatAction; @@ -80,7 +80,13 @@ public class RosterView extends ViewPart implements IPresenceListener, IMessageL protected IUser getLocalUser() { return localUser; } - + public void dispose() { + if (textInputHandler != null) { + textInputHandler.disconnect(); + textInputHandler = null; + } + super.dispose(); + } class TreeObject implements IAdaptable { private String name; private TreeParent parent; |
