aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hochstein2013-07-15 14:09:35 (EDT)
committerGerrit Code Review @ Eclipse.org2013-07-23 09:19:24 (EDT)
commit7bb898866f6f90ba29528d372f38aa7250d183fc (patch)
tree18f3b78f129ac2d537a07d21fcc89deb2d50b355
parent074d91ff7c0a5ab4dbf3ac99256ae149615c2645 (diff)
downloadeclipse.platform.ui-7bb898866f6f90ba29528d372f38aa7250d183fc.zip
eclipse.platform.ui-7bb898866f6f90ba29528d372f38aa7250d183fc.tar.gz
eclipse.platform.ui-7bb898866f6f90ba29528d372f38aa7250d183fc.tar.bz2
Bug 407522 - Perspective reset not working correctlyrefs/changes/70/14570/2
Change-Id: Ie142aa48969e45008e0d05eae6f37185385fbf94 Signed-off-by: Tom Hochstein <tom.hochstein@freescale.com>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java
index ad0f5b1..c82b4c7 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Tom Hochstein (Freescale) - Bug 407522 - Perspective reset not working correctly
*******************************************************************************/
package org.eclipse.ui.internal.dialogs;
@@ -3182,7 +3183,7 @@ public class CustomizePerspectiveDialog extends TrayDialog {
toolbarEntry.setActionSet((ActionSet) idToActionSet
.get(getActionSetID(contributionItem)));
if (toolbarEntry.getChildren().isEmpty()) {
- toolbarEntry.setCheckState(contributionItem.isVisible());
+ toolbarEntry.setCheckState(getToolbarItemIsVisible(toolbarEntry));
}
parent.addChild(toolbarEntry);
}