aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-Andre Laperle2013-08-01 15:07:35 (EDT)
committerGerrit Code Review @ Eclipse.org2013-09-24 14:42:30 (EDT)
commitc1156eb060b87e108c78c67984d3b101f5bb14e6 (patch)
treed5222902d5e08df22c798afd0728ea07398985ea
parent612a50f73640e54157cd7213f1e867c65713e638 (diff)
downloadeclipse.platform.ui-c1156eb060b87e108c78c67984d3b101f5bb14e6.zip
eclipse.platform.ui-c1156eb060b87e108c78c67984d3b101f5bb14e6.tar.gz
eclipse.platform.ui-c1156eb060b87e108c78c67984d3b101f5bb14e6.tar.bz2
Bug 413590 - Close All doesn't work when a second editor is opened inrefs/changes/79/15079/3
another area in another perspective Hide all editor parts including the non-local ones. Change-Id: I2a16bb6bdcf4586c9a4b17b30b68cec4b92d8123 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
index 03b8eed..8f006aa 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
@@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* Christian Janz - <christian.janz@gmail.com> Fix for Bug 385592
+ * Marc-Andre Laperle (Ericsson) - Fix for Bug 413590
*******************************************************************************/
package org.eclipse.ui.internal;
@@ -1377,7 +1378,7 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
IEditorReference ref = it.next();
// hide editors that haven't been instantiated first
if (ref.getPart(false) == null) {
- if (!(hidePart(((EditorReference) ref).getModel(), false, confirm, false))) {
+ if (!(hidePart(((EditorReference) ref).getModel(), false, confirm, false, false))) {
return false;
}
// hidden successfully, remove it from the list
@@ -1392,7 +1393,7 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
MPart model = ((EditorReference) editorRef).getModel();
if (activePart == model) {
closeActivePart = true;
- } else if (!(hidePart(model, false, confirm, false))) {
+ } else if (!(hidePart(model, false, confirm, false, false))) {
// saving should've been handled earlier above
return false;
}