Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2016-03-30 22:15:38 +0000
committerEugene Tarassov2016-03-30 22:15:38 +0000
commit07bfe246b3c83dfe415c750390caf0a7fb0def37 (patch)
tree98b2248e57115e4ab6da9322e047c6b79e6fa622 /plugins
parentd681442db7aca29479d8dc7f62086723a1b336be (diff)
downloadorg.eclipse.tcf-07bfe246b3c83dfe415c750390caf0a7fb0def37.tar.gz
org.eclipse.tcf-07bfe246b3c83dfe415c750390caf0a7fb0def37.tar.xz
org.eclipse.tcf-07bfe246b3c83dfe415c750390caf0a7fb0def37.zip
TCF Debugger: fixed build error: Type mismatch: cannot convert from Object to TCFNode
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/hover/TCFDebugTextHover.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/hover/TCFDebugTextHover.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/hover/TCFDebugTextHover.java
index 207f20b7e..93c1bfde7 100644
--- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/hover/TCFDebugTextHover.java
+++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/hover/TCFDebugTextHover.java
@@ -109,7 +109,7 @@ public class TCFDebugTextHover extends AbstractDebugTextHover implements ITextHo
protected boolean canEvaluate() {
IAdaptable context = getSelectionAdaptable();
if (context == null) return false;
- final TCFNode selection = context.getAdapter(TCFNode.class);
+ final TCFNode selection = (TCFNode)context.getAdapter(TCFNode.class);
if (selection == null) return false;
try {
return new TCFTask<Boolean>(selection.getChannel()) {
@@ -132,7 +132,7 @@ public class TCFDebugTextHover extends AbstractDebugTextHover implements ITextHo
if (!useExpressionExplorer()) return getHoverInfo(viewer, region);
IAdaptable context = getSelectionAdaptable();
if (context == null) return null;
- final TCFNode selection = context.getAdapter(TCFNode.class);
+ final TCFNode selection = (TCFNode)context.getAdapter(TCFNode.class);
if (selection == null) return null;
final String text = getExpressionText(viewer, region);
if (text == null || text.length() == 0) return null;
@@ -176,7 +176,7 @@ public class TCFDebugTextHover extends AbstractDebugTextHover implements ITextHo
protected String evaluateExpression(final String expression) {
IAdaptable context = getSelectionAdaptable();
if (context == null) return null;
- final TCFNode selection = context.getAdapter(TCFNode.class);
+ final TCFNode selection = (TCFNode)context.getAdapter(TCFNode.class);
if (selection == null) return null;
final IChannel channel = selection.getChannel();
return new TCFTask<String>(channel) {

Back to the top