Skip to content

Commit 3793cfb

Browse files
committed
Viewer limit setup for "Executables" view.
"Executables" view makes eclipse unresponsive if it has thousands of entries. We can limit the number of items shown by applying viewer limit. see #1215
1 parent 79c123c commit 3793cfb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables

debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/views/executables/ExecutablesView.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
import org.eclipse.ui.dialogs.ListSelectionDialog;
6363
import org.eclipse.ui.part.ViewPart;
6464
import org.eclipse.ui.progress.WorkbenchJob;
65+
import org.eclipse.ui.views.WorkbenchViewerSetup;
6566

6667
/**
6768
* ExecutablesView displays a list of executable files either in the workspace
@@ -260,8 +261,10 @@ public void createPartControl(Composite parent) {
260261

261262
// Create the two sub viewers.
262263
executablesViewer = new ExecutablesViewer(this, sashForm, SWT.FULL_SELECTION | SWT.BORDER | SWT.MULTI);
264+
WorkbenchViewerSetup.setupViewer(executablesViewer);
263265
focusedViewer = executablesViewer;
264266
sourceFilesViewer = new SourceFilesViewer(this, sashForm, SWT.BORDER | SWT.MULTI);
267+
WorkbenchViewerSetup.setupViewer(sourceFilesViewer);
265268

266269
executablesViewer.getTree().addFocusListener(new FocusListener() {
267270

0 commit comments

Comments
 (0)