Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2012-03-23 13:51:19 +0000
committerOleg Besedin2012-03-23 14:01:03 +0000
commitfb23b52ff8983843dcf49cbd720eec28a448d0e9 (patch)
tree054db4595f327e70b02a4cca914102dd9f3175d8
parent69970000768198043f2ea55eb2dad66f7f92b41f (diff)
downloadeclipse.platform.ui-fb23b52ff8983843dcf49cbd720eec28a448d0e9.tar.gz
eclipse.platform.ui-fb23b52ff8983843dcf49cbd720eec28a448d0e9.tar.xz
eclipse.platform.ui-fb23b52ff8983843dcf49cbd720eec28a448d0e9.zip
Bug 375066 - [Compatibility] Show Views dialog is always empty
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ViewRegistry.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ViewRegistry.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ViewRegistry.java
index 206ef4b2b2c..ac7a9f164bd 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ViewRegistry.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ViewRegistry.java
@@ -92,7 +92,6 @@ public class ViewRegistry implements IViewRegistry {
break;
}
}
- ViewCategory category = null;
if (descriptor == null) { // create a new descriptor
descriptor = BasicFactoryImpl.eINSTANCE.createPartDescriptor();
descriptor.setElementId(id);
@@ -138,7 +137,7 @@ public class ViewRegistry implements IViewRegistry {
String categoryId = element
.getAttribute(IWorkbenchRegistryConstants.ATT_CATEGORY);
- category = findCategory(categoryId);
+ ViewCategory category = findCategory(categoryId);
if (category == null) {
tags.add("categoryTag:" + WorkbenchMessages.ICategory_other); //$NON-NLS-1$
} else {
@@ -149,6 +148,9 @@ public class ViewRegistry implements IViewRegistry {
ViewDescriptor viewDescriptor = new ViewDescriptor(application, descriptor,
element);
descriptors.put(descriptor.getElementId(), viewDescriptor);
+ if (category != null) {
+ category.addDescriptor(viewDescriptor);
+ }
}
}
}

Back to the top