Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/edit/parts/update/canonical/EditPartRegistryBasedViewService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/edit/parts/update/canonical/EditPartRegistryBasedViewService.java b/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/edit/parts/update/canonical/EditPartRegistryBasedViewService.java
index 88d7b0c80..eac1bae6d 100644
--- a/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/edit/parts/update/canonical/EditPartRegistryBasedViewService.java
+++ b/plugins/org.eclipse.gmf.runtime.lite/src/org/eclipse/gmf/runtime/lite/edit/parts/update/canonical/EditPartRegistryBasedViewService.java
@@ -36,7 +36,7 @@ public class EditPartRegistryBasedViewService extends DelegatingViewService {
public View findView(EObject modelElement) {
EditPart editPart = (EditPart) myViewer.getEditPartRegistry().get(modelElement);
- if (editPart != null && editPart.getModel() instanceof View) {
+ if (editPart != null && editPart.isActive() && editPart.getModel() instanceof View) {
return (View) editPart.getModel();
}
return null;

Back to the top