mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Restructure oddly and inefficiently constructed if/else section
This commit is contained in:
parent
e61498f16f
commit
1bfac4dbe8
1 changed files with 11 additions and 14 deletions
|
@ -371,20 +371,17 @@ public class DefaultVMModelProxyStrategy implements IVMModelProxy {
|
||||||
new DataRequestMonitor<IVMContext[]>(getVMProvider().getExecutor(), rm) {
|
new DataRequestMonitor<IVMContext[]>(getVMProvider().getExecutor(), rm) {
|
||||||
@Override
|
@Override
|
||||||
protected void handleCompleted() {
|
protected void handleCompleted() {
|
||||||
if (isSuccess() || getStatus().getCode() == IDsfStatusConstants.NOT_SUPPORTED) {
|
|
||||||
|
|
||||||
if (isSuccess()) {
|
if (isSuccess()) {
|
||||||
assert getData() != null;
|
assert getData() != null;
|
||||||
buildChildDeltasForEventContext(
|
buildChildDeltasForEventContext(getData(), node, event, parentDelta, nodeOffset, rm);
|
||||||
getData(), node, event, parentDelta, nodeOffset, rm);
|
}
|
||||||
} else {
|
else if (getStatus().getCode() == IDsfStatusConstants.NOT_SUPPORTED) {
|
||||||
// The DMC for this node was not found in the event. Call the
|
// The DMC for this node was not found in the event. Call the
|
||||||
// super-class to resort to the default behavior which will add a
|
// super-class to resort to the default behavior which will add a
|
||||||
// delta for every element in this node.
|
// delta for every element in this node.
|
||||||
buildChildDeltasForAllContexts(
|
buildChildDeltasForAllContexts(node, event, parentDelta, nodeOffset, rm);
|
||||||
node, event, parentDelta, nodeOffset, rm);
|
|
||||||
}
|
}
|
||||||
} else {
|
else {
|
||||||
super.handleCompleted();
|
super.handleCompleted();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue