Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-08-08 14:15:09 +0000
committerAlexander Kurtakov2019-08-09 05:50:29 +0000
commitc252113586de70ffabba2f2d710ad03566d831d1 (patch)
tree2a7c516243cb53c4d84409c29a18cd2116506409 /debug
parent2deb21119463725d57a370af780fb8092ae1d8ba (diff)
downloadorg.eclipse.cdt-c252113586de70ffabba2f2d710ad03566d831d1.tar.gz
org.eclipse.cdt-c252113586de70ffabba2f2d710ad03566d831d1.tar.xz
org.eclipse.cdt-c252113586de70ffabba2f2d710ad03566d831d1.zip
Replace ViewerSorter with ViewerComparator.
Change-Id: I3013723be25fef063f382456166f6e5a622316d3 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java
index dc97bb758ec..c61cb4aa0ac 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/AddSourceContainerDialog.java
@@ -31,7 +31,7 @@ import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.ViewerSorter;
+import org.eclipse.jface.viewers.ViewerComparator;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
@@ -100,7 +100,7 @@ public class AddSourceContainerDialog extends TitleAreaDialog {
fViewer.setLabelProvider(new SourceContainerLabelProvider());
fViewer.setContentProvider(ArrayContentProvider.getInstance());
- fViewer.setSorter(new ViewerSorter());
+ fViewer.setComparator(new ViewerComparator());
fViewer.addSelectionChangedListener(new ISelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {

Back to the top