[550293] Save as dialog does not open any more
Somehow the line where the saveasDialog is opened got missing
Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=570293
Change-Id: I1358609ff6c271fc570e1c2070d1c4cfb7e554cc
Signed-off-by: mjger<michael.oberlehner@jku.at>
diff --git a/plugins/org.eclipse.fordiac.ide.systemmanagement.ui/src/org/eclipse/fordiac/ide/systemmanagement/ui/editors/AutomationSystemEditor.java b/plugins/org.eclipse.fordiac.ide.systemmanagement.ui/src/org/eclipse/fordiac/ide/systemmanagement/ui/editors/AutomationSystemEditor.java
index d11dc9c..88ce8e6 100644
--- a/plugins/org.eclipse.fordiac.ide.systemmanagement.ui/src/org/eclipse/fordiac/ide/systemmanagement/ui/editors/AutomationSystemEditor.java
+++ b/plugins/org.eclipse.fordiac.ide.systemmanagement.ui/src/org/eclipse/fordiac/ide/systemmanagement/ui/editors/AutomationSystemEditor.java
@@ -22,6 +22,7 @@
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.edit.ui.provider.AdapterFactoryContentProvider;
import org.eclipse.emf.edit.ui.provider.AdapterFactoryLabelProvider;
@@ -263,7 +264,7 @@
}
final SaveAsDialog saveAsDialog = new SaveAsDialog(getSite().getShell());
saveAsDialog.setOriginalName(system.getSystemFile().getName());
-
+ saveAsDialog.open();
final IPath path = saveAsDialog.getResult();
if (path == null) {
return;
@@ -391,7 +392,7 @@
private void handleReturnCode(final int returnCode, final IFile file) {
switch (returnCode) {
case OVERWRITE_CHANGES:
- // do nothing
+ doSave(new NullProgressMonitor());
break;
case SAVE_CHANGES:
doSaveAs();