aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2012-04-23 14:05:41 (EDT)
committerOleg Besedin2012-04-23 14:05:41 (EDT)
commit8ab339d1d4c6bc5ba32c44bdf870b29bbe1903fa (patch)
tree498b81f7217ee6100b5a31ed39883799c44c5de3
parentf6ec8dcc7c6e2e7c0517862f2413496387459f0b (diff)
downloadeclipse.platform.ui-8ab339d1d4c6bc5ba32c44bdf870b29bbe1903fa.zip
eclipse.platform.ui-8ab339d1d4c6bc5ba32c44bdf870b29bbe1903fa.tar.gz
eclipse.platform.ui-8ab339d1d4c6bc5ba32c44bdf870b29bbe1903fa.tar.bz2
Bug 372992 - EditorPart#isSaveOnCloseNeeded() not called when closingv20120423-1805
Editor Part
-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 9694016..dd8b031 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;
}