[510762][Activity Explorer] Open action doesn't open the Activity
Explorer Editor when a diagram editor is opened

Bug:510762
Change-Id: I137d60960b411d9f50e15ab8559e9ce4c87aa55e
Signed-off-by: Faycal Abka <faycal.abka@gmail.com>
diff --git a/plugins/org.eclipse.amalgam.explorer.activity.ui/src/org/eclipse/amalgam/explorer/activity/ui/api/actions/OpenSessionAction.java b/plugins/org.eclipse.amalgam.explorer.activity.ui/src/org/eclipse/amalgam/explorer/activity/ui/api/actions/OpenSessionAction.java
index 6f60d17..3488c1a 100644
--- a/plugins/org.eclipse.amalgam.explorer.activity.ui/src/org/eclipse/amalgam/explorer/activity/ui/api/actions/OpenSessionAction.java
+++ b/plugins/org.eclipse.amalgam.explorer.activity.ui/src/org/eclipse/amalgam/explorer/activity/ui/api/actions/OpenSessionAction.java
@@ -1,5 +1,5 @@
 /*******************************************************************************

- * Copyright (c)  2006, 2015 THALES GLOBAL SERVICES.

+ * Copyright (c)  2006, 2017 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

@@ -201,8 +201,7 @@
 								SessionHelper.getFirstAnalysisFile((DAnalysisSession)session);

 						ActivityExplorerEditorInput input = new ActivityExplorerEditorInput(file);

 

-						

-						activePage.openEditor(input, ActivityExplorerEditor.ID);

+						activePage.openEditor(input, ActivityExplorerEditor.ID, true, IWorkbenchPage.MATCH_ID | IWorkbenchPage.MATCH_INPUT);

 						welcomeOpen[0] = true;

 					}

 				} catch (PartInitException exception) {