From 1605abc3d3807ee20d4ddafb9dbabc3e1d1e0929 Mon Sep 17 00:00:00 2001 From: John Cortell Date: Wed, 13 May 2009 22:31:57 +0000 Subject: [PATCH] Fixed 276205. Changing the format of an array expression element has no effect --- .../internal/ui/actions/VariableFormatActionDelegate.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java index ab7f7b0bd6d..0dd1072b30f 100644 --- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java +++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/VariableFormatActionDelegate.java @@ -16,7 +16,7 @@ import java.util.List; import org.eclipse.cdt.debug.core.model.CVariableFormat; import org.eclipse.cdt.debug.core.model.ICVariable; -import org.eclipse.cdt.debug.internal.core.model.CValue; +import org.eclipse.cdt.debug.internal.core.model.AbstractCValue; import org.eclipse.cdt.debug.ui.CDebugUIPlugin; import org.eclipse.core.runtime.MultiStatus; import org.eclipse.debug.core.DebugException; @@ -98,8 +98,8 @@ public class VariableFormatActionDelegate implements IObjectActionDelegate { } else if (o instanceof IWatchExpression) { IWatchExpression expr = (IWatchExpression) o; IValue value = expr.getValue(); - if (value instanceof CValue) { - ICVariable parent = ((CValue) value).getParentVariable(); + if (value instanceof AbstractCValue) { + ICVariable parent = ((AbstractCValue) value).getParentVariable(); if (parent != null) { list.add(parent); }