Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Goubet2013-04-23 09:51:38 +0000
committerLaurent Goubet2013-04-23 11:41:15 +0000
commita32530f3c1748a637b9efad988ebd2c354760924 (patch)
tree5b3f73d7235baab60ebc88fa16f58efb7e9c4360
parent5296b27a8bcb3bf94d0a9dc4c434d56b83d3ead7 (diff)
downloadorg.eclipse.emf.compare-a32530f3c1748a637b9efad988ebd2c354760924.tar.gz
org.eclipse.emf.compare-a32530f3c1748a637b9efad988ebd2c354760924.tar.xz
org.eclipse.emf.compare-a32530f3c1748a637b9efad988ebd2c354760924.zip
Compatibility with Galileo
-rw-r--r--plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/handler/SaveComparisonModel.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/handler/SaveComparisonModel.java b/plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/handler/SaveComparisonModel.java
index f05571a1e..bc09fdc1f 100644
--- a/plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/handler/SaveComparisonModel.java
+++ b/plugins/org.eclipse.emf.compare.rcp.ui/src/org/eclipse/emf/compare/rcp/ui/internal/structuremergeviewer/handler/SaveComparisonModel.java
@@ -34,7 +34,7 @@ import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.FileDialog;
import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.ISources;
import org.eclipse.ui.handlers.HandlerUtil;
/**
@@ -57,7 +57,7 @@ public class SaveComparisonModel extends AbstractHandler {
* @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
public Object execute(ExecutionEvent event) throws ExecutionException {
- IEditorInput editorInput = HandlerUtil.getActiveEditorInput(event);
+ Object editorInput = HandlerUtil.getVariable(event, ISources.ACTIVE_EDITOR_INPUT_NAME);
if (editorInput instanceof CompareEditorInput) {
configuration = ((CompareEditorInput)editorInput).getCompareConfiguration();
Shell parent = configuration.getContainer().getWorkbenchPart().getSite().getShell();

Back to the top