1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

I removed the no longer supported nore required getModelData() routine. This is just cleanup in the example. I have not taken the time to create a bugzilla for this.

Randy
This commit is contained in:
Randy Rohrbach 2009-08-04 14:20:22 +00:00
parent a94dbe7bf6
commit 1c3c25d982

View file

@ -452,28 +452,6 @@ public class PDARegisters extends AbstractDsfService
PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Finding context not supported"); //$NON-NLS-1$ PDAPlugin.failRequest(rm, NOT_SUPPORTED, "Finding context not supported"); //$NON-NLS-1$
} }
@SuppressWarnings("unchecked")
public void getModelData(IDMContext dmc, DataRequestMonitor<?> rm) {
/*
* This is the method which is called when actual results need to be returned. We
* can be called either with a service DMC for which we return ourselves or we can
* be called with the DMC's we have handed out. If the latter is the case then we
* data mine by talking to the Debug Engine.
*/
if (dmc instanceof RegisterGroupDMContext) {
getRegisterGroupData((RegisterGroupDMContext)dmc, (DataRequestMonitor<IRegisterGroupDMData>)rm);
} else if (dmc instanceof RegisterDMContext) {
getRegisterData((RegisterDMContext)dmc, (DataRequestMonitor<IRegisterDMData>)rm);
} else if (dmc instanceof BitFieldDMContext) {
getBitFieldData((BitFieldDMContext) dmc, (DataRequestMonitor<IBitFieldDMData>)rm);
} else if (dmc instanceof FormattedValueDMContext) {
getFormattedExpressionValue((FormattedValueDMContext)dmc, (DataRequestMonitor<FormattedValueDMData>)rm);
} else {
PDAPlugin.failRequest(rm, INVALID_HANDLE, "Unknown DMC type"); //$NON-NLS-1$
}
}
public void getFormattedExpressionValue(FormattedValueDMContext dmc, DataRequestMonitor<FormattedValueDMData> rm) { public void getFormattedExpressionValue(FormattedValueDMContext dmc, DataRequestMonitor<FormattedValueDMData> rm) {
fExpressions.getFormattedExpressionValue(dmc, rm); fExpressions.getFormattedExpressionValue(dmc, rm);
} }