1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[236843] - [variables] Hanging variables view (2)

This commit is contained in:
Pawel Piech 2008-06-13 15:31:30 +00:00
parent 17b9861f5a
commit e775c4839a
3 changed files with 9 additions and 3 deletions

View file

@ -491,7 +491,8 @@ abstract public class AbstractVMProvider implements IVMProvider
}
})
);
} else {
super.handleErrorOrWarning();
}
}

View file

@ -194,7 +194,7 @@ public class DefaultVMContentProviderStrategy implements IElementContentProvider
}
});
}
} else if (update.isCanceled()) {
} else {
update.done();
}

View file

@ -481,7 +481,12 @@ public class MIStack extends AbstractDsfService
protected void handleSuccess() {
// Create the data object.
rm.setData(new VariableData(getData().getLocals()[miVariableDmc.fIndex]));
MIArg[] locals = getData().getLocals();
if (locals.length > miVariableDmc.fIndex) {
rm.setData(new VariableData(locals[miVariableDmc.fIndex]));
} else {
rm.setStatus(new Status(IStatus.ERROR, MIPlugin.PLUGIN_ID, INVALID_HANDLE, "Invalid variable " + miVariableDmc, null)); //$NON-NLS-1$
}
rm.done();
}
});