1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[227643] Switched to use ILabelUpdate.getColumnIds() instead of IPresentationContext.getColumns().

This commit is contained in:
Pawel Piech 2008-04-18 18:41:48 +00:00
parent a6a82b3a2c
commit 8d74f0dc4b
7 changed files with 8 additions and 8 deletions

View file

@ -200,7 +200,7 @@ public class StackFramesVMNode extends AbstractDMVMNode
* If columns are configured, call the protected methods to * If columns are configured, call the protected methods to
* fill in column values. * fill in column values.
*/ */
String[] localColumns = update.getPresentationContext().getColumns(); String[] localColumns = update.getColumnIds();
if (localColumns == null) localColumns = new String[] { null }; if (localColumns == null) localColumns = new String[] { null };
for (int i = 0; i < localColumns.length; i++) { for (int i = 0; i < localColumns.length; i++) {

View file

@ -109,7 +109,7 @@ public class ModulesVMNode extends AbstractDMVMNode
* If columns are configured, call the protected methods to * If columns are configured, call the protected methods to
* fill in column values. * fill in column values.
*/ */
String[] localColumns = update.getPresentationContext().getColumns(); String[] localColumns = update.getColumnIds();
if (localColumns == null) localColumns = new String[] { null }; if (localColumns == null) localColumns = new String[] { null };
for (int i = 0; i < localColumns.length; i++) { for (int i = 0; i < localColumns.length; i++) {

View file

@ -299,7 +299,7 @@ public class RegisterBitFieldVMNode extends AbstractExpressionVMNode
* which need data extraction they need to be added in both "for" * which need data extraction they need to be added in both "for"
* loops. * loops.
*/ */
String[] localColumns = update.getPresentationContext().getColumns(); String[] localColumns = update.getColumnIds();
if (localColumns == null) localColumns = new String[] { IDebugVMConstants.COLUMN_ID__NAME }; if (localColumns == null) localColumns = new String[] { IDebugVMConstants.COLUMN_ID__NAME };
boolean weAreExtractingFormattedData = false; boolean weAreExtractingFormattedData = false;

View file

@ -196,7 +196,7 @@ public class RegisterGroupVMNode extends AbstractExpressionVMNode
* If columns are configured, call the protected methods to * If columns are configured, call the protected methods to
* fill in column values. * fill in column values.
*/ */
String[] localColumns = update.getPresentationContext().getColumns(); String[] localColumns = update.getColumnIds();
if (localColumns == null) localColumns = new String[] { null }; if (localColumns == null) localColumns = new String[] { null };
for (int i = 0; i < localColumns.length; i++) { for (int i = 0; i < localColumns.length; i++) {

View file

@ -301,7 +301,7 @@ public class RegisterVMNode extends AbstractExpressionVMNode
* which need data extraction they need to be added in both "for" * which need data extraction they need to be added in both "for"
* loops. * loops.
*/ */
String[] localColumns = update.getPresentationContext().getColumns(); String[] localColumns = update.getColumnIds();
if (localColumns == null) localColumns = new String[] { IDebugVMConstants.COLUMN_ID__NAME }; if (localColumns == null) localColumns = new String[] { IDebugVMConstants.COLUMN_ID__NAME };
boolean weAreExtractingFormattedData = false; boolean weAreExtractingFormattedData = false;

View file

@ -238,7 +238,7 @@ public class VariableVMNode extends AbstractExpressionVMNode
* one or more variables at that given instance in time are not evaluatable. They * one or more variables at that given instance in time are not evaluatable. They
* may be out of scope and will come back into scope later. * may be out of scope and will come back into scope later.
*/ */
String[] localColumns = update.getPresentationContext().getColumns(); String[] localColumns = update.getColumnIds();
if (localColumns == null) if (localColumns == null)
localColumns = new String[] { IDebugVMConstants.COLUMN_ID__NAME }; localColumns = new String[] { IDebugVMConstants.COLUMN_ID__NAME };
@ -266,7 +266,7 @@ public class VariableVMNode extends AbstractExpressionVMNode
// processing flag so we know we have further work to do. If there are more columns // processing flag so we know we have further work to do. If there are more columns
// which need data extraction they need to be added in both "for" loops. // which need data extraction they need to be added in both "for" loops.
String[] localColumns = update.getPresentationContext().getColumns(); String[] localColumns = update.getColumnIds();
if (localColumns == null) if (localColumns == null)
localColumns = new String[] { IDebugVMConstants.COLUMN_ID__NAME }; localColumns = new String[] { IDebugVMConstants.COLUMN_ID__NAME };

View file

@ -89,7 +89,7 @@ abstract public class AbstractVMNode implements IVMNode {
((IChildrenCountUpdate)update).setChildCount(0); ((IChildrenCountUpdate)update).setChildCount(0);
} else if (update instanceof ILabelUpdate) { } else if (update instanceof ILabelUpdate) {
ILabelUpdate labelUpdate = (ILabelUpdate)update; ILabelUpdate labelUpdate = (ILabelUpdate)update;
String[] columns = labelUpdate.getPresentationContext().getColumns(); String[] columns = labelUpdate.getColumnIds();
for (int i = 0; i < (columns != null ? columns.length : 1); i++) { for (int i = 0; i < (columns != null ? columns.length : 1); i++) {
labelUpdate.setLabel("...", i); //$NON-NLS-1$ labelUpdate.setLabel("...", i); //$NON-NLS-1$
} }