/** * Determines if the declared value is the same as the concrete value * @param var the variable to inspect * @return true if the types are the same, false otherwise */ protected boolean isDeclaredSameAsConcrete(IJavaVariable var) { try { IValue value = var.getValue(); if (value instanceof JDINullValue) { return false; } return !var.getReferenceTypeName().equals(value.getReferenceTypeName()); } catch(DebugException e) {JDIDebugUIPlugin.log(e);} return false; }
String typeName= DebugUIMessages.JDIModelPresentation_unknown_type__2; try { typeName= var.getReferenceTypeName(); if (showTypes) { typeName= getQualifiedName(typeName);
/** * Determines if the passed object is a primitive type or not * @param obj the obj to test * @return true if the object is primitive, false otherwise */ protected boolean isPrimitiveType(Object obj) { if(obj instanceof IJavaVariable) { try { return !fgPrimitiveTypes.contains(removeArray(((IJavaVariable) obj).getReferenceTypeName())); } catch (DebugException e) { if(!(e.getStatus().getException() instanceof ClassNotLoadedException)) { JDIDebugUIPlugin.log(e); } return false; } } else if(obj instanceof JavaInspectExpression) { try { JavaInspectExpression exp = (JavaInspectExpression)obj; IValue value = exp.getValue(); if (value != null) { return fgPrimitiveTypes.contains(removeArray(value.getReferenceTypeName())); } } catch (DebugException e) {JDIDebugUIPlugin.log(e);} } return false; }