Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/org.eclipse.papyrus.properties.generation/src/org/eclipse/papyrus/properties/generation/layout/ILayoutGenerator.java')
-rw-r--r--sandbox/org.eclipse.papyrus.properties.generation/src/org/eclipse/papyrus/properties/generation/layout/ILayoutGenerator.java46
1 files changed, 46 insertions, 0 deletions
diff --git a/sandbox/org.eclipse.papyrus.properties.generation/src/org/eclipse/papyrus/properties/generation/layout/ILayoutGenerator.java b/sandbox/org.eclipse.papyrus.properties.generation/src/org/eclipse/papyrus/properties/generation/layout/ILayoutGenerator.java
new file mode 100644
index 00000000000..4ab67cb1c78
--- /dev/null
+++ b/sandbox/org.eclipse.papyrus.properties.generation/src/org/eclipse/papyrus/properties/generation/layout/ILayoutGenerator.java
@@ -0,0 +1,46 @@
+/*****************************************************************************
+ * Copyright (c) 2010 CEA LIST.
+ *
+ * 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:
+ * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
+ *****************************************************************************/
+package org.eclipse.papyrus.properties.generation.layout;
+
+import java.util.List;
+
+import org.eclipse.papyrus.properties.contexts.Section;
+import org.eclipse.papyrus.properties.contexts.View;
+import org.eclipse.papyrus.properties.ui.PropertyEditor;
+
+/**
+ * An interface for defining Layout generators.
+ * Layout generators are responsible for building a List of sections from a list
+ * of Property editors.
+ *
+ * @author Camille Letavernier
+ */
+public interface ILayoutGenerator {
+
+ /**
+ * Return a list of Sections from a list of property editors.
+ * Each section should be placed in the parent's resourceSet
+ *
+ * @param editors
+ * The list of editors to layout
+ * @param parent
+ * The view owning the resulting list of sections
+ * @return
+ * The list of sections owning the input editors
+ */
+ public List<Section> layoutElements(List<PropertyEditor> editors, View parent);
+
+ /**
+ * @return the name of the Layout generator
+ */
+ public String getName();
+}

Back to the top