Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/IPageModel.java')
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/IPageModel.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/IPageModel.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/IPageModel.java
new file mode 100644
index 00000000000..98739beaf17
--- /dev/null
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor/src/org/eclipse/papyrus/infra/core/sasheditor/contentprovider/IPageModel.java
@@ -0,0 +1,41 @@
+/**
+ *
+ */
+package org.eclipse.papyrus.infra.core.sasheditor.contentprovider;
+
+import org.eclipse.swt.graphics.Image;
+
+/**
+ * This interface is the root of the hierarchy of models representing Pages.
+ * This represent the final element shown in the sashes window. It can be an
+ * Editor or a simple control. This interface is used by the sashes window to
+ * interact with the model describing the element to be shown in the TabItem.
+ *
+ * @author dumoulin
+ *
+ */
+public abstract interface IPageModel {
+
+ /**
+ * Get the title to be shown in the tab
+ *
+ * @return
+ */
+ public String getTabTitle();
+
+ /**
+ * Get the icon to be shown in the tab
+ *
+ * @return
+ */
+ public Image getTabIcon();
+
+ /**
+ * Get the raw model corresponding to this node. This is the object provided
+ * to {@link ITabFolderModel.getChildren()}
+ *
+ * @return
+ */
+ public Object getRawModel();
+
+}

Back to the top