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

[252107] - Coverted a DataRequestMonitor to ViewerDataRequestMonitor.

This commit is contained in:
Pawel Piech 2008-10-27 18:03:22 +00:00
parent 72c5c09e17
commit 1e56cfcda1

View file

@ -503,20 +503,20 @@ public class RegisterVMNode extends AbstractExpressionVMNode
* complete the request for a Formatted DMC we tell the Counting Request Monitor * complete the request for a Formatted DMC we tell the Counting Request Monitor
* we have completed one in the list. * we have completed one in the list.
*/ */
DataRequestMonitor<FormattedValueDMContext> rm = new DataRequestMonitor<FormattedValueDMContext>(dsfExecutor, null) { getFormattedDmcForReqister(
@Override update, dmc,
public void handleCompleted() { new ViewerDataRequestMonitor<FormattedValueDMContext>(dsfExecutor, update) {
if ( getStatus().isOK() ) { @Override
valueUpdate.setValueDmc(getData()); public void handleCompleted() {
} if ( getStatus().isOK() ) {
else { valueUpdate.setValueDmc(getData());
valueUpdate.setValueDmc(null); }
} else {
crm.done(); valueUpdate.setValueDmc(null);
} }
}; crm.done();
}
getFormattedDmcForReqister(update, dmc, rm); });
} else if (IDebugVMConstants.COLUMN_ID__TYPE.equals(localColumns[idx])) { } else if (IDebugVMConstants.COLUMN_ID__TYPE.equals(localColumns[idx])) {
IRegisterDMData data = getData(); IRegisterDMData data = getData();
String typeStr = "Unsigned"; //$NON-NLS-1$ String typeStr = "Unsigned"; //$NON-NLS-1$