Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/sync/visitor/DiagramElementsHierarchyVisitor.java')
-rw-r--r--plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/sync/visitor/DiagramElementsHierarchyVisitor.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/sync/visitor/DiagramElementsHierarchyVisitor.java b/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/sync/visitor/DiagramElementsHierarchyVisitor.java
new file mode 100644
index 0000000000..2d1f035e85
--- /dev/null
+++ b/plugins/org.eclipse.sirius/src/org/eclipse/sirius/business/internal/sync/visitor/DiagramElementsHierarchyVisitor.java
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2010 THALES GLOBAL SERVICES.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.sirius.business.internal.sync.visitor;
+
+import org.eclipse.sirius.DDiagramElement;
+import org.eclipse.sirius.DragAndDropTarget;
+
+/**
+ * A visitor to retrieve diagram element children.
+ *
+ * @author mchauvin
+ */
+public interface DiagramElementsHierarchyVisitor {
+
+ /**
+ * The shared instance.
+ */
+ DiagramElementsHierarchyVisitor INSTANCE = DefaultDiagramElementsHierarchyVisitor.init();
+
+ /**
+ * Get the children.
+ *
+ * @param element
+ * the diagram element
+ * @return the diagram element children
+ */
+ Iterable<? extends DDiagramElement> getChildren(final DragAndDropTarget element);
+
+}

Back to the top