Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/custom-src/org/eclipse/papyrus/infra/core/sasheditor/di/contentprovider/internal/PageManagerImpl.java')
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/custom-src/org/eclipse/papyrus/infra/core/sasheditor/di/contentprovider/internal/PageManagerImpl.java23
1 files changed, 19 insertions, 4 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/custom-src/org/eclipse/papyrus/infra/core/sasheditor/di/contentprovider/internal/PageManagerImpl.java b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/custom-src/org/eclipse/papyrus/infra/core/sasheditor/di/contentprovider/internal/PageManagerImpl.java
index 552c2574bf3..bb3b6a56c1f 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/custom-src/org/eclipse/papyrus/infra/core/sasheditor/di/contentprovider/internal/PageManagerImpl.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core.sasheditor.di/custom-src/org/eclipse/papyrus/infra/core/sasheditor/di/contentprovider/internal/PageManagerImpl.java
@@ -106,9 +106,9 @@ public class PageManagerImpl extends PageMngrImpl implements IPageManager {
/**
* Reload the Diagram
* This used when a resource is reloaded, the related diagrams are reloaded as well
- *
+ *
* @see org.eclipse.papyrus.infra.services.controlmode.listener.LoadResourceSnippet
- *
+ *
* @param diagramProxy
* Identifier of the page to reload
*/
@@ -192,12 +192,13 @@ public class PageManagerImpl extends PageMngrImpl implements IPageManager {
/**
- *
+ *
* @see org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageManager#getAssociatedPages(org.eclipse.emf.common.util.URI)
*
* @param uriTrim
* @return
*/
+ @Override
public List<Object> getAssociatedPages(Object uriTrim) {
List<Object> list = new ArrayList<Object>();
@@ -223,7 +224,7 @@ public class PageManagerImpl extends PageMngrImpl implements IPageManager {
uriContainer = pageID.eResource().getURI().trimFileExtension();
}
if (uriTrim instanceof URI) {
- if (uriContainer.equals((URI) uriTrim)) {
+ if (uriContainer.equals(uriTrim)) {
list.add(pageID);
}
}
@@ -286,6 +287,20 @@ public class PageManagerImpl extends PageMngrImpl implements IPageManager {
}
/**
+ * @see org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageManager#openPage(java.lang.Object, java.lang.String)
+ *
+ * @param pageIdentifier
+ * @param editorID
+ */
+ @Override
+ public void openPage(Object pageIdentifier, String editorID) {
+ PageRef newPage = DiFactory.eINSTANCE.createPageRef();
+ newPage.setFavoriteEditor(editorID);
+ newPage.setPageIdentifier(pageIdentifier);
+ diSashModel.getSashModel().addPage(getCurrentFolder(), newPage);
+ }
+
+ /**
* @see org.eclipse.papyrus.infra.core.sasheditor.contentprovider.IPageManager#selectPage(java.lang.Object)
*
* @param pageIdentifier

Back to the top