From 9fd3416bf66bffb743214c16dcba460349d5418d Mon Sep 17 00:00:00 2001 From: raghucssit Date: Wed, 4 Dec 2024 14:56:58 +0100 Subject: [PATCH] Configure initial maximum viewer limit for Type Hierarchy view. see https://github.com/eclipse-jdt/eclipse.jdt.ui/issues/1830 --- .../jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java index 734f7aa1618..285e509ea7a 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java @@ -101,6 +101,7 @@ import org.eclipse.ui.part.ResourceTransfer; import org.eclipse.ui.part.ShowInContext; import org.eclipse.ui.part.ViewPart; +import org.eclipse.ui.views.WorkbenchViewerSetup; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.jdt.core.IMember; @@ -757,6 +758,7 @@ private Control createTypeViewerControl(Composite parent) { fEmptyTypesViewer= new Label(fViewerbook, SWT.TOP | SWT.LEFT | SWT.WRAP); for (TypeHierarchyViewer viewer : fAllViewers) { + WorkbenchViewerSetup.setupViewer(viewer); viewer.setInput(viewer); }