1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

Viewer limit setup for "Executables" view. (#1216)

"Executables" view makes eclipse unresponsive if it has thousands of
entries. We can limit the number of items shown by applying viewer
limit.

see https://github.com/eclipse-cdt/cdt/issues/1215
This commit is contained in:
Raghunandana 2025-06-24 16:34:53 +02:00 committed by GitHub
parent 7c1fdec49a
commit 74fb09c6e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,6 +62,7 @@ import org.eclipse.ui.actions.ActionFactory;
import org.eclipse.ui.dialogs.ListSelectionDialog;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.ui.progress.WorkbenchJob;
import org.eclipse.ui.views.WorkbenchViewerSetup;
/**
* ExecutablesView displays a list of executable files either in the workspace
@ -260,8 +261,10 @@ public class ExecutablesView extends ViewPart {
// Create the two sub viewers.
executablesViewer = new ExecutablesViewer(this, sashForm, SWT.FULL_SELECTION | SWT.BORDER | SWT.MULTI);
WorkbenchViewerSetup.setupViewer(executablesViewer);
focusedViewer = executablesViewer;
sourceFilesViewer = new SourceFilesViewer(this, sashForm, SWT.BORDER | SWT.MULTI);
WorkbenchViewerSetup.setupViewer(sourceFilesViewer);
executablesViewer.getTree().addFocusListener(new FocusListener() {