/** * Returns text for a specific columns for the variable/value. * * @param variable variable to retrieve text for * @param value the value associated with the variable * @param context presentation context specifying how to display the text * @param columnId the column to get the text for * @return the label text * @throws CoreException Error while retrieving data from model. */ protected String getColumnText(IVariable variable, IValue value, IPresentationContext context, String columnId) throws CoreException { if (IDebugUIConstants.COLUMN_ID_VARIABLE_NAME.equals(columnId)) { return getVariableName(variable, context); } else if (IDebugUIConstants.COLUMN_ID_VARIABLE_TYPE.equals(columnId)) { return getVariableTypeName(variable, context); } else if (IDebugUIConstants.COLUMN_ID_VARIABLE_VALUE.equals(columnId)) { return getValueText(variable, value, context); } else if (IDebugUIConstants.COLUMN_ID_VARIABLE_VALUE_TYPE.equals(columnId)) { return getValueTypeName(variable, value, context); } return null; }