Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
index 96940166815..dd8b03163a6 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java
@@ -449,6 +449,8 @@ public class WorkbenchWindow implements IWorkbenchWindow {
if (object instanceof CompatibilityPart) {
IWorkbenchPart part = ((CompatibilityPart) object).getPart();
if (part instanceof ISaveablePart) {
+ if (!((ISaveablePart) part).isSaveOnCloseNeeded())
+ return Save.NO;
return SaveableHelper.savePart((ISaveablePart) part, part,
WorkbenchWindow.this, true) ? Save.NO : Save.CANCEL;
}

Back to the top