Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorMarc Dumais2016-04-14 13:47:54 -0400
committerGerrit Code Review @ Eclipse.org2016-05-10 09:10:12 -0400
commit49e921843f89b9b2ce4ba38004d197428d4dc8cc (patch)
tree9268083f9c23d16036f3f52e4cbb1bed451dba3c /dsf
parentcb16dfda33d116ed284fad19f6c26017202f141e (diff)
downloadorg.eclipse.cdt-49e921843f89b9b2ce4ba38004d197428d4dc8cc.tar.gz
org.eclipse.cdt-49e921843f89b9b2ce4ba38004d197428d4dc8cc.tar.xz
org.eclipse.cdt-49e921843f89b9b2ce4ba38004d197428d4dc8cc.zip
Bug 491724 - AbstractCachingVMProvider: Replace deprecated
ITreeModelViewer Change-Id: Id21609c92b176109e2667dc1bb8f1bc244e965d1
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/AbstractCachingVMProvider.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/AbstractCachingVMProvider.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/AbstractCachingVMProvider.java
index 2894d83b32..9b1107887b 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/AbstractCachingVMProvider.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/ui/viewmodel/update/AbstractCachingVMProvider.java
@@ -51,6 +51,7 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelChangedList
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelDelta;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IModelProxy;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IPresentationContext;
+import org.eclipse.debug.internal.ui.viewers.model.provisional.ITreeModelViewer;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdateListener;
import org.eclipse.debug.internal.ui.viewers.model.provisional.ModelDelta;
@@ -815,13 +816,12 @@ public class AbstractCachingVMProvider extends AbstractVMProvider
// interface in platform, but it is more generic than the public TreeModelViewer.
// Using ITreeModelViewer will allow us to write unit tests using the
// VirtualTreeModelViewer.
- @SuppressWarnings("restriction")
private class ViewUpdateFinishedListener implements IViewerUpdateListener, IModelChangedListener {
- private final org.eclipse.debug.internal.ui.viewers.model.ITreeModelViewer fViewer;
+ private final ITreeModelViewer fViewer;
private boolean fViewerChangeStarted = false;
private RequestMonitor fRm;
- ViewUpdateFinishedListener(org.eclipse.debug.internal.ui.viewers.model.ITreeModelViewer viewer) {
+ ViewUpdateFinishedListener(ITreeModelViewer viewer) {
fViewer = viewer;
}
@@ -891,9 +891,7 @@ public class AbstractCachingVMProvider extends AbstractVMProvider
// If we need to wait for the view to finish updating, then before posting the delta to the
// viewer install a listener, which will in turn call rm.done().
if (fDelayEventHandleForViewUpdate) {
- @SuppressWarnings("restriction")
- org.eclipse.debug.internal.ui.viewers.model.ITreeModelViewer viewer =
- (org.eclipse.debug.internal.ui.viewers.model.ITreeModelViewer) proxyStrategy.getViewer();
+ ITreeModelViewer viewer = (ITreeModelViewer) proxyStrategy.getViewer();
new ViewUpdateFinishedListener(viewer).start(rm);
}

Back to the top