Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Wouters2014-03-27 09:00:07 +0000
committerLaurent Wouters2014-03-27 13:18:33 +0000
commit6594cae513986631c6c4744678d8c90ac6b19c70 (patch)
treecb8cb0fdd8cd8c18970a44b196a88198bdc229a8 /plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.properties
parentc8c5d8479159acb4a467694ec847840fb2fe64b7 (diff)
downloadorg.eclipse.papyrus-6594cae513986631c6c4744678d8c90ac6b19c70.tar.gz
org.eclipse.papyrus-6594cae513986631c6c4744678d8c90ac6b19c70.tar.xz
org.eclipse.papyrus-6594cae513986631c6c4744678d8c90ac6b19c70.zip
#431139: [Diagram Creation] Issues with the Viewpoint-based Diagram Creation commands
Changed the auto-creation of diagram root element to use the edit service https://bugs.eclipse.org/bugs/show_bug.cgi?id=431139 Signed-off-by: Laurent Wouters <laurent.wouters@cea.fr>
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.properties')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.properties/src/org/eclipse/papyrus/infra/gmfdiag/properties/modelelement/GMFModelElement.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.properties/src/org/eclipse/papyrus/infra/gmfdiag/properties/modelelement/GMFModelElement.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.properties/src/org/eclipse/papyrus/infra/gmfdiag/properties/modelelement/GMFModelElement.java
index a85ef90af4c..b5f765896f2 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.properties/src/org/eclipse/papyrus/infra/gmfdiag/properties/modelelement/GMFModelElement.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.properties/src/org/eclipse/papyrus/infra/gmfdiag/properties/modelelement/GMFModelElement.java
@@ -163,7 +163,7 @@ public class GMFModelElement extends EMFModelElement {
return new ModelContentProvider(diagram, getRoot(diagram.getElement())) {
@Override
protected boolean isValid(EObject selection, Diagram diagram, ViewPrototype prototype) {
- return PolicyChecker.getCurrent().canHaveNewView(diagram.getElement(), selection, prototype);
+ return (PolicyChecker.getCurrent().getOwningRuleFor(prototype, selection) != null);
}
};
}

Back to the top