diff options
author | Oleg Besedin | 2012-03-23 13:51:19 +0000 |
---|---|---|
committer | Oleg Besedin | 2012-03-23 14:01:03 +0000 |
commit | fb23b52ff8983843dcf49cbd720eec28a448d0e9 (patch) | |
tree | 054db4595f327e70b02a4cca914102dd9f3175d8 | |
parent | 69970000768198043f2ea55eb2dad66f7f92b41f (diff) | |
download | eclipse.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.java | 6 |
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); + } } } } |