mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-10 03:53:21 +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:
parent
7c1fdec49a
commit
74fb09c6e1
1 changed files with 3 additions and 0 deletions
|
@ -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() {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue