diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessContents.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessContents.java index f9f72e807b7..65e63113a8b 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessContents.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/quickaccess/QuickAccessContents.java @@ -530,6 +530,14 @@ public IStatus runInUIThread(IProgressMonitor monitor) { QuickAccessEntry.MATCH_PERFECT))); } res.addAll(entriesPerProvider.values()); + + // if one category provides the same single entry like "previous", we can avoid + // showing the duplicate second list + if (res.size() >= 2 && res.get(0).size() == 1 && res.get(1).size() == 1 + && (res.get(0).get(0).element.equals(res.get(1).get(0).element))) { + res.remove(1); + } + return (List[]) res.toArray(new List[res.size()]); }