summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorJens ├╝bler2013-09-25 09:56:51 (EDT)
committer Paul Webster2013-09-25 09:56:51 (EDT)
commit404de0c46b615941549236a471355104b80ce150 (patch)
tree9f202deae081460f40f83a67d10df6cf041da563
parente5a2dd2e408aa29c7193e2a2df0f8444ce905379 (diff)
downloadeclipse.platform.ui-404de0c46b615941549236a471355104b80ce150.zip
eclipse.platform.ui-404de0c46b615941549236a471355104b80ce150.tar.gz
eclipse.platform.ui-404de0c46b615941549236a471355104b80ce150.tar.bz2
Bug 411577 - [Contributions] Customize Perspective has hiding conflicts
for toolbars and menus Add the prefix to the contains check. Signed-off-by: Jens ├╝bler <kuebler@aquintos.com>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java4
1 files changed, 2 insertions, 2 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 c82b4c7..4361aa5 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
@@ -3351,7 +3351,7 @@ public class CustomizePerspectiveDialog extends TrayDialog {
// Remove explicitly 'visible' elements from the current list
for (Iterator<String> iterator = changedAndVisible.iterator(); iterator.hasNext();) {
String id = iterator.next();
- if (id != null && currentHidden.contains(id)) {
+ if (id != null && currentHidden.contains(prefix + id)) {
hasChanges = true;
((WorkbenchPage) window.getActivePage()).removeHiddenItems(prefix + id);
}
@@ -3360,7 +3360,7 @@ public class CustomizePerspectiveDialog extends TrayDialog {
// Add explicitly 'hidden' elements to the current list
for (Iterator<String> iterator = changedAndInvisible.iterator(); iterator.hasNext();) {
String id = iterator.next();
- if (id != null && !currentHidden.contains(id)) {
+ if (id != null && !currentHidden.contains(prefix + id)) {
hasChanges = true;
((WorkbenchPage) window.getActivePage()).addHiddenItems(prefix + id);
}