Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbblajer2007-08-15 09:27:09 +0000
committerbblajer2007-08-15 09:27:09 +0000
commit84fce67dd585acc322b5d1f33b0fdca56c36e4ba (patch)
tree8adb3e15d474f8bfc35f39706319515e94dfaa09
parent70d18b226e7e8ce44db8145322c30b38d4ddb11c (diff)
downloadorg.eclipse.gmf-tooling-84fce67dd585acc322b5d1f33b0fdca56c36e4ba.tar.gz
org.eclipse.gmf-tooling-84fce67dd585acc322b5d1f33b0fdca56c36e4ba.tar.xz
org.eclipse.gmf-tooling-84fce67dd585acc322b5d1f33b0fdca56c36e4ba.zip
Do not return edit parts that are inactive (prevents links pointing nowhere)
-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