Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2016-01-16 08:08:10 +0000
committerEike Stepper2016-01-16 08:08:10 +0000
commitb074eb1dbfbb425aa0f28589a22d323e94d60ddc (patch)
treea5d3cee16919cb6cdf6f1566b777b266e14f9b6d /plugins/org.eclipse.emf.cdo.explorer.ui
parentbe45bd8af72711993c5c1777bf755a9506c5a90c (diff)
downloadcdo-b074eb1dbfbb425aa0f28589a22d323e94d60ddc.tar.gz
cdo-b074eb1dbfbb425aa0f28589a22d323e94d60ddc.tar.xz
cdo-b074eb1dbfbb425aa0f28589a22d323e94d60ddc.zip
[Releng] Fix new deprecation warnings with Neon Platform
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.explorer.ui')
-rw-r--r--plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/CDOCheckoutViewerSorter.java4
-rw-r--r--plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/wizards/CheckoutRootObjectPage.java2
-rw-r--r--plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/repositories/CDORepositoriesView.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/CDOCheckoutViewerSorter.java b/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/CDOCheckoutViewerSorter.java
index 2d62cbffdb..001d432cab 100644
--- a/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/CDOCheckoutViewerSorter.java
+++ b/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/CDOCheckoutViewerSorter.java
@@ -18,12 +18,12 @@ import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerSorter;
/**
* @author Eike Stepper
*/
-public class CDOCheckoutViewerSorter extends ViewerSorter
+@SuppressWarnings("deprecation")
+public class CDOCheckoutViewerSorter extends org.eclipse.jface.viewers.ViewerSorter
{
@Override
public int category(Object element)
diff --git a/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/wizards/CheckoutRootObjectPage.java b/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/wizards/CheckoutRootObjectPage.java
index b93e604319..b730a7065a 100644
--- a/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/wizards/CheckoutRootObjectPage.java
+++ b/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/wizards/CheckoutRootObjectPage.java
@@ -244,7 +244,7 @@ public class CheckoutRootObjectPage extends CheckoutWizardPage
treeViewer.getTree().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
treeViewer.setContentProvider(itemProvider);
treeViewer.setLabelProvider(itemProvider);
- treeViewer.setSorter(new CDOCheckoutViewerSorter());
+ treeViewer.setComparator(new CDOCheckoutViewerSorter());
treeViewer.addSelectionChangedListener(new ISelectionChangedListener()
{
public void selectionChanged(SelectionChangedEvent event)
diff --git a/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/repositories/CDORepositoriesView.java b/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/repositories/CDORepositoriesView.java
index ab89036631..652973403c 100644
--- a/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/repositories/CDORepositoriesView.java
+++ b/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/repositories/CDORepositoriesView.java
@@ -115,7 +115,7 @@ public class CDORepositoriesView extends ContainerView
TreeViewer viewer = getViewer();
viewer.addTreeListener(activityDetector);
- viewer.setSorter(null);
+ viewer.setComparator(null);
UIUtil.addDragSupport(viewer);
Tree tree = viewer.getTree();

Back to the top