diff options
Diffstat (limited to 'plugins/core/org.eclipse.papyrus.sasheditor/src/org/eclipse/papyrus/sasheditor/editor/IMultiPageEditorPart.java')
-rw-r--r-- | plugins/core/org.eclipse.papyrus.sasheditor/src/org/eclipse/papyrus/sasheditor/editor/IMultiPageEditorPart.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/plugins/core/org.eclipse.papyrus.sasheditor/src/org/eclipse/papyrus/sasheditor/editor/IMultiPageEditorPart.java b/plugins/core/org.eclipse.papyrus.sasheditor/src/org/eclipse/papyrus/sasheditor/editor/IMultiPageEditorPart.java new file mode 100644 index 00000000000..467f0735d49 --- /dev/null +++ b/plugins/core/org.eclipse.papyrus.sasheditor/src/org/eclipse/papyrus/sasheditor/editor/IMultiPageEditorPart.java @@ -0,0 +1,48 @@ +/*****************************************************************************
+ * Copyright (c) 2008 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:
+ * Cedric Dumoulin Cedric.dumoulin@lifl.fr - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.sasheditor.editor;
+
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IEditorSite;
+import org.eclipse.ui.IWorkbenchPartSite;
+
+/**
+ * Marker to mark a EditorPart as a MultiPartEditor. Provides methods needed by classes
+ * like MultiPageActionBarContributor and MultiPageSelectionProvider.
+ */
+public interface IMultiPageEditorPart {
+
+ /**
+ * Get the currently active editor of the MultiPageEditorPart.
+ *
+ * @return
+ */
+ public IEditorPart getActiveEditor();
+
+ /**
+ * Get the main site of the MultiPageEditorPart.
+ *
+ * @return
+ */
+ public IWorkbenchPartSite getSite();
+
+ /**
+ * Get the IEditorSite associated to this MultiPageEditorPart.
+ * This return the same object as getSite().
+ *
+ * @return
+ */
+ public IEditorSite getEditorSite();
+
+}
|