Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsuen2008-12-14 06:08:32 -0500
committerrsuen2008-12-14 06:08:32 -0500
commitfe88ff65c9687300d4d7fd300c4789ac8ad53bf4 (patch)
treeb721531c84a5c53ba15b6f38d720a4c271c82d67 /examples/bundles/org.eclipse.ecf.example.collab
parentf2161b9cc18d6d443f23ae70ba284d88e3aecc8f (diff)
downloadorg.eclipse.ecf-fe88ff65c9687300d4d7fd300c4789ac8ad53bf4.tar.gz
org.eclipse.ecf-fe88ff65c9687300d4d7fd300c4789ac8ad53bf4.tar.xz
org.eclipse.ecf-fe88ff65c9687300d4d7fd300c4789ac8ad53bf4.zip
Clear the map of views when we're disposing them so that they don't leak over to the next session.
Diffstat (limited to 'examples/bundles/org.eclipse.ecf.example.collab')
-rw-r--r--examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/LineChatView.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/LineChatView.java b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/LineChatView.java
index d68a75103..183709fa0 100644
--- a/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/LineChatView.java
+++ b/examples/bundles/org.eclipse.ecf.example.collab/src/org/eclipse/ecf/internal/example/collab/ui/LineChatView.java
@@ -13,21 +13,13 @@ package org.eclipse.ecf.internal.example.collab.ui;
import java.util.Enumeration;
import java.util.Hashtable;
-
import org.eclipse.ecf.example.collab.share.EclipseCollabSharedObject;
import org.eclipse.ecf.internal.example.collab.Messages;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.TabFolder;
-import org.eclipse.swt.widgets.TabItem;
-import org.eclipse.ui.IActionBars;
-import org.eclipse.ui.IMemento;
-import org.eclipse.ui.IViewSite;
-import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.swt.widgets.*;
+import org.eclipse.ui.*;
import org.eclipse.ui.part.ViewPart;
public class LineChatView extends ViewPart {
@@ -191,6 +183,7 @@ public class LineChatView extends ViewPart {
final LineChatClientView vc = (LineChatClientView) e.nextElement();
vc.closeClient();
}
+ clientViews.clear();
}
protected void setActiveTab(String name) {

Back to the top