Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/DawnACoreRootCanonicalEditPolicy.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/DawnACoreRootCanonicalEditPolicy.java61
1 files changed, 61 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/DawnACoreRootCanonicalEditPolicy.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/DawnACoreRootCanonicalEditPolicy.java
new file mode 100644
index 0000000000..f1011b2eb6
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore.diagram.dawn/src/org/eclipse/emf/cdo/dawn/examples/acore/diagram/edit/policies/DawnACoreRootCanonicalEditPolicy.java
@@ -0,0 +1,61 @@
+/*******************************************************************************
+ * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Martin Fluegge - initial API and implementation
+ ******************************************************************************/
+package org.eclipse.emf.cdo.dawn.examples.acore.diagram.edit.policies;
+
+import org.eclipse.emf.cdo.dawn.examples.acore.diagram.part.AcoreDiagramEditorPlugin;
+
+/**
+ * @author Martin Fluegge
+ */
+public class DawnACoreRootCanonicalEditPolicy extends ACoreRootCanonicalEditPolicy
+{
+
+ public DawnACoreRootCanonicalEditPolicy()
+ {
+ super();
+ AcoreDiagramEditorPlugin.getInstance().logInfo("Running DawnAcoreCanonicalEditPolicy instead of original one");
+ }
+
+ // @Override
+ // protected List getSemanticChildrenList()
+ // {
+ // List semanticChildren = super.getSemanticChildrenList();
+ // List<View> viewChildren = getViewChildren();
+ //
+ // //remove all semantic children that do not have a view because the have one in another resource,
+ // //or the child should not have one
+ // semanticChildren.removeAll(cleanCanonicalSemanticChildren(viewChildren, semanticChildren));
+ // return semanticChildren;
+ // }
+
+ // /**
+ // * @generated
+ // */
+ // @Override
+ // public void refreshSemantic()
+ // {
+ // List createdViews = new LinkedList();
+ // // createdViews.addAll(refreshSemanticChildren());
+ // List createdConnectionViews = new LinkedList();
+ // createdConnectionViews.addAll(refreshSemanticConnections());
+ // createdConnectionViews.addAll(refreshConnections());
+ //
+ // if (createdViews.size() > 1)
+ // {
+ // // perform a layout of the container
+ // DeferredLayoutCommand layoutCmd = new DeferredLayoutCommand(host().getEditingDomain(), createdViews, host());
+ // executeCommand(new ICommandProxy(layoutCmd));
+ // }
+ //
+ // createdViews.addAll(createdConnectionViews);
+ // makeViewsImmutable(createdViews);
+ // }
+}

Back to the top