diff options
author | Walter Harley | 2006-10-06 21:30:45 +0000 |
---|---|---|
committer | Walter Harley | 2006-10-06 21:30:45 +0000 |
commit | 22d2b3ab7be6911d91ce91c7b1626852dd4f034d (patch) | |
tree | 9ae77b6b2f8aaf5f94e4bb49bfd8c68560a4c5fa /org.eclipse.jdt.apt.ui | |
parent | ade65879bcc318ee2ef3fe6276d005079a502d04 (diff) | |
download | eclipse.jdt.core-22d2b3ab7be6911d91ce91c7b1626852dd4f034d.tar.gz eclipse.jdt.core-22d2b3ab7be6911d91ce91c7b1626852dd4f034d.tar.xz eclipse.jdt.core-22d2b3ab7be6911d91ce91c7b1626852dd4f034d.zip |
Follow-on to bug 158274. Replace ViewerSorter with ViewerComparator to get rid of reference to deprecated field "collator".
Diffstat (limited to 'org.eclipse.jdt.apt.ui')
-rw-r--r-- | org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/AptConfigurationBlock.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/AptConfigurationBlock.java b/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/AptConfigurationBlock.java index c8486e1877..f68b7b2766 100644 --- a/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/AptConfigurationBlock.java +++ b/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/AptConfigurationBlock.java @@ -41,7 +41,7 @@ import org.eclipse.jface.dialogs.Dialog; import org.eclipse.jface.viewers.ITableLabelProvider; import org.eclipse.jface.viewers.LabelProvider; import org.eclipse.jface.viewers.Viewer; -import org.eclipse.jface.viewers.ViewerSorter; +import org.eclipse.jface.viewers.ViewerComparator; import org.eclipse.jface.window.Window; import org.eclipse.swt.SWT; import org.eclipse.swt.graphics.Image; @@ -144,9 +144,10 @@ public class AptConfigurationBlock extends BaseConfigurationBlock { /** * Sorts items in the Processor Options list control. */ - private static class ProcessorOptionSorter extends ViewerSorter { + private static class ProcessorOptionSorter extends ViewerComparator { + @SuppressWarnings("unchecked") // getComparator() returns a raw Comparator rather than a Comparator<T> public int compare(Viewer viewer, Object e1, Object e2) { - return collator.compare(((ProcessorOption) e1).key, ((ProcessorOption) e2).key); + return getComparator().compare(((ProcessorOption) e1).key, ((ProcessorOption) e2).key); } } |