commit | c9ae8d92d772262bbbb983cb1ae74c810fc101ce | [log] [tgz] |
---|---|---|
author | mparker <mparker> | Wed Mar 17 04:13:27 2010 +0000 |
committer | mparker <mparker> | Wed Mar 17 04:13:27 2010 +0000 |
tree | 6b0e65398fe789e7e39a8af56e1848fbf9cf3328 | |
parent | 15cc6a3d162402f2e42f24040a77b739d5af7b43 [diff] |
Fixed a minor glitch in tree view.
diff --git a/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.core/src/org/eclipse/amp/agf/tree/TreeViewPart.java b/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.core/src/org/eclipse/amp/agf/tree/TreeViewPart.java index 4eec6c8..2e41bc4 100644 --- a/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.core/src/org/eclipse/amp/agf/tree/TreeViewPart.java +++ b/org.eclipse.amp.agf/plugins/org.eclipse.amp.agf.core/src/org/eclipse/amp/agf/tree/TreeViewPart.java
@@ -104,7 +104,7 @@ */ protected void modelChanged(final IModel activeModel) { setModel(activeModel); - if (getViewer().getControl() != null) { + if (getViewer().getControl() != null && !getViewer().getControl().isDisposed()) { if (activeModel != null) { ModelFactoryProvider provider = getModelFactoryProvider(activeModel); EditPartFactory editPartTreeFactory = provider.getEditPartTreeFactory();