diff --git a/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/dialogs/WizardContentProvider.java b/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/dialogs/WizardContentProvider.java index 7912af85a58..47b1330b21e 100644 --- a/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/dialogs/WizardContentProvider.java +++ b/bundles/org.eclipse.ui.workbench/eclipseui/org/eclipse/ui/internal/dialogs/WizardContentProvider.java @@ -46,11 +46,6 @@ public Object[] getChildren(Object parentElement) { handleChild(childWizard, list); } - // flatten lists with only one category - if (list.size() == 1 && list.get(0) instanceof WizardCollectionElement) { - return getChildren(list.get(0)); - } - return list.toArray(); } else if (parentElement instanceof AdaptableList) { AdaptableList aList = (AdaptableList) parentElement; @@ -59,10 +54,6 @@ public Object[] getChildren(Object parentElement) { for (Object element : children) { handleChild(element, list); } - // if there is only one category, return it's children directly (flatten list) - if (list.size() == 1 && list.get(0) instanceof WizardCollectionElement) { - return getChildren(list.get(0)); - } return list.toArray(); } else {