diff --git a/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/internal/ui/viewmodel/numberformat/detail/NumberFormatDetailPane.java b/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/internal/ui/viewmodel/numberformat/detail/NumberFormatDetailPane.java
index 4ef667d3b88..7008f75ebeb 100644
--- a/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/internal/ui/viewmodel/numberformat/detail/NumberFormatDetailPane.java
+++ b/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/internal/ui/viewmodel/numberformat/detail/NumberFormatDetailPane.java
@@ -386,7 +386,7 @@ public class NumberFormatDetailPane implements IDetailPane, IAdaptable, IPropert
final DataRequestMonitor getAvailableFormatsDone =
new DataRequestMonitor(finalService.getSession().getExecutor(), null) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
/*
* Now we have a set of formats for each one fire up an independent
* asynchronous request to get the data in that format. We do not
diff --git a/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/sourcelookup/MISourceDisplayAdapter.java b/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/sourcelookup/MISourceDisplayAdapter.java
index ce9154d8885..1f0ce0e2762 100644
--- a/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/sourcelookup/MISourceDisplayAdapter.java
+++ b/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/sourcelookup/MISourceDisplayAdapter.java
@@ -285,7 +285,7 @@ public class MISourceDisplayAdapter implements ISourceDisplay
frameDmc,
new DataRequestMonitor(fExecutor, rm) {
@Override
- public void handleOK() {
+ public void handleSuccess() {
FramePositioningData clientData = new FramePositioningData();
clientData.fLevel = frameDmc.getLevel();
// Document line numbers are 0-based. While debugger line numbers are 1-based.
diff --git a/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/expression/AbstractExpressionVMNode.java b/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/expression/AbstractExpressionVMNode.java
index 9ead9f614a3..4e198a6d113 100644
--- a/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/expression/AbstractExpressionVMNode.java
+++ b/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/expression/AbstractExpressionVMNode.java
@@ -51,7 +51,7 @@ public abstract class AbstractExpressionVMNode extends AbstractDMVMNode
update, -1, -1,
new ViewerDataRequestMonitor>(getExecutor(), update) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
if (getData().size() == 0) {
update.setStatus(new Status(IStatus.ERROR, DsfDebugUIPlugin.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR, "No contexts", null)); //$NON-NLS-1$
update.done();
@@ -97,7 +97,7 @@ public abstract class AbstractExpressionVMNode extends AbstractDMVMNode
}
@Override
- protected void handleNotOK() {
+ protected void handleFailure() {
update.setStatus(getStatus());
update.done();
}
diff --git a/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/expression/ExpressionManagerVMNode.java b/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/expression/ExpressionManagerVMNode.java
index a25f962abdb..f9e67bd53f9 100644
--- a/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/expression/ExpressionManagerVMNode.java
+++ b/plugins/org.eclipse.dd.dsf.debug.ui/src/org/eclipse/dd/dsf/debug/ui/viewmodel/expression/ExpressionManagerVMNode.java
@@ -195,7 +195,7 @@ public class ExpressionManagerVMNode extends AbstractVMNode
update, expression,
new DataRequestMonitor
*
- * This class handles an optional "parent" request monitor. If a parent monitor is
- * specified, it will automatically be invoked by this monitor when the request is
- * completed. The parent option is useful when implementing a method which is
- * asynchronous (and accepts a request monitor as an argument) and which itself calls
- * another asynchronous method to complete its operation. For example, in the request
- * monitor implementation below, the implementation only needs to override
+ * The severity of the {@link IStatus> returned by #getStatus() can be used to
+ * determine the success or failure of the asynchronous operation. By convention
+ * the error codes returned by asynchronous method should be interpreted as follows:
+ *
+ *
OK and INFO - Result is a success. In DataRequestMonitor, getData() should
+ * return a value.
+ *
WARNING - Acceptable error condition (getData() may return null). Where for
+ * example user tried to retrieve variable data, but the program resumed in the
+ * mean time and an event will be generated shortly which will clear the variables
+ * view.
+ *
ERROR - An error condition that should probably be reported to the user.
+ *
CANCEL - The request was canceled, and the asynchronous method was not
+ * completed.
+ *
+ *
+ *
+ * The RequestMonitor constructor accepts an optional "parent" request monitor. If a
+ * parent monitor is specified, it will automatically be invoked by this monitor when
+ * the request is completed. The parent option is useful when implementing a method
+ * which is asynchronous (and accepts a request monitor as an argument) and which itself
+ * calls another asynchronous method to complete its operation. For example, in the
+ * request monitor implementation below, the implementation only needs to override
* handleOK(), because the base implementation will handle notifying the
* parent rm in case the getIngredients() call fails.
*
*
*/
-@ConfinedToDsfExecutor("")
+@ThreadSafe
public class RequestMonitor {
/**
@@ -132,9 +148,17 @@ public class RequestMonitor {
/**
* Sets this request monitor as canceled and calls the cancel listeners if any.
- * The operation may still be carried out as it is up to the implementation of
- * the asynchronous operation to cancel the operation. Even after the request
- * monitor is canceled, the done() method still has to be called.
+ *
+ * Note: Calling cancel() does not automatically complete the RequestMonitor.
+ * The asynchronous call still has to call done().
+ *
+ *
+ * Note: logically a request should only be canceled by the client that issued
+ * the request in the first place. After a request is canceled, the method
+ * that is fulfilling the request may call {@link #setStatus(IStatus)} with
+ * severity of IStatus.CANCEL to indicate that it recognized that
+ * the given request was canceled and it did not perform the given operation.
+ *
*/
public void cancel() {
Object[] listeners = null;
@@ -180,10 +204,9 @@ public class RequestMonitor {
* when this request monitor is canceled.
*/
public synchronized void removeCancelListener(ICanceledListener listener) {
- if (fCancelListeners == null) {
- fCancelListeners = new ListenerList();
+ if (fCancelListeners != null) {
+ fCancelListeners.remove(listener);
}
- fCancelListeners.remove(listener);
}
/**
@@ -219,19 +242,29 @@ public class RequestMonitor {
public String toString() {
return "RequestMonitor (" + super.toString() + "): " + getStatus().toString(); //$NON-NLS-1$ //$NON-NLS-2$
}
+
+ /**
+ * Checks whether the given request monitor completed with success or
+ * failure result. If the request monitor was canceled it is considered
+ * that it failed, regardless of the status.
+ */
+ public boolean isSuccess() {
+ return !isCanceled() && getStatus().getSeverity() <= IStatus.INFO;
+ }
/**
* Default handler for the completion of a request. The implementation
- * calls {@link #handleOK()} if the request succeeded, and calls
- * {@link #handleNotOK()} or cancel otherwise.
+ * calls {@link #handleSuccess()} if the request succeeded, and calls
+ * {@link #handleFailure()} or cancel otherwise.
*
* Note: Sub-classes may override this method.
*/
+ @ConfinedToDsfExecutor("fExecutor")
protected void handleCompleted() {
- if (getStatus().getSeverity() <= IStatus.INFO) {
- handleOK();
+ if (isSuccess()) {
+ handleSuccess();
} else {
- handleNotOK();
+ handleFailure();
}
}
@@ -239,11 +272,12 @@ public class RequestMonitor {
* Default handler for a successful the completion of a request. If this
* monitor has a parent monitor that was configured by the constructor, that
* parent monitor is notified. Otherwise this method does nothing.
- * {@link #handleNotOK()} or cancel otherwise.
+ * {@link #handleFailure()} or cancel otherwise.
*
* Note: Sub-classes may override this method.
*/
- protected void handleOK() {
+ @ConfinedToDsfExecutor("fExecutor")
+ protected void handleSuccess() {
if (fParentRequestMonitor != null) {
fParentRequestMonitor.done();
}
@@ -256,7 +290,8 @@ public class RequestMonitor {
*
* Note: Sub-classes may override this method.
*/
- protected void handleNotOK() {
+ @ConfinedToDsfExecutor("fExecutor")
+ protected void handleFailure() {
assert !getStatus().isOK();
if (isCanceled()) {
handleCancel();
@@ -278,6 +313,7 @@ public class RequestMonitor {
*
* Note: Sub-classes may override this method.
*/
+ @ConfinedToDsfExecutor("fExecutor")
protected void handleErrorOrWarning() {
if (getStatus().getSeverity() == IStatus.ERROR) {
handleError();
@@ -294,6 +330,7 @@ public class RequestMonitor {
*
* Note: Sub-classes may override this method.
*/
+ @ConfinedToDsfExecutor("fExecutor")
protected void handleError() {
if (fParentRequestMonitor != null) {
fParentRequestMonitor.setStatus(getStatus());
@@ -313,14 +350,11 @@ public class RequestMonitor {
*
* Note: Sub-classes may override this method.
*/
+ @ConfinedToDsfExecutor("fExecutor")
protected void handleWarning() {
if (fParentRequestMonitor != null) {
fParentRequestMonitor.setStatus(getStatus());
fParentRequestMonitor.done();
- } else {
- MultiStatus logStatus = new MultiStatus(DsfPlugin.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR, "Request for monitor: '" + toString() + "' resulted in a warning.", null); //$NON-NLS-1$ //$NON-NLS-2$
- logStatus.merge(getStatus());
- DsfPlugin.getDefault().getLog().log(logStatus);
}
}
@@ -331,9 +365,15 @@ public class RequestMonitor {
*
* Note: Sub-classes may override this method.
*/
+ @ConfinedToDsfExecutor("fExecutor")
protected void handleCancel() {
if (fParentRequestMonitor != null) {
- fParentRequestMonitor.setStatus(getStatus());
+ if (getStatus().getSeverity() == IStatus.CANCEL && !fParentRequestMonitor.isCanceled()) {
+ fParentRequestMonitor.setStatus(new Status(
+ IStatus.ERROR, DsfPlugin.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR, "Sub-request " + toString() + " was canceled and not handled.'", null)); //$NON-NLS-1$ //$NON-NLS-2$
+ } else {
+ fParentRequestMonitor.setStatus(getStatus());
+ }
fParentRequestMonitor.done();
}
}
@@ -343,6 +383,7 @@ public class RequestMonitor {
* rejects the runnable that is submitted invoke this request monitor.
* This usually happens only when the executor is shutting down.
*/
+ @ThreadSafe
protected void handleRejectedExecutionException() {
MultiStatus logStatus = new MultiStatus(DsfPlugin.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR, "Request for monitor: '" + toString() + "' resulted in a rejected execution exception.", null); //$NON-NLS-1$ //$NON-NLS-2$
logStatus.merge(getStatus());
diff --git a/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/Sequence.java b/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/Sequence.java
index 73e88c5a90f..3bca2cd6e60 100644
--- a/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/Sequence.java
+++ b/plugins/org.eclipse.dd.dsf/src/org/eclipse/dd/dsf/concurrent/Sequence.java
@@ -275,7 +275,7 @@ abstract public class Sequence extends DsfRunnable implements Future {
assert fStepIdx == fCurrentStepIdx;
// Proceed to the next step.
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fProgressMonitor.worked(getSteps()[fStepIdx].getTicks());
executeStep(fStepIdx + 1);
} else {
@@ -329,7 +329,7 @@ abstract public class Sequence extends DsfRunnable implements Future {
assert fStepIdx == fCurrentStepIdx;
// Proceed to the next step.
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fProgressMonitor.worked(getSteps()[fStepIdx].getTicks());
rollBackStep(fStepIdx - 1);
} else {
diff --git a/plugins/org.eclipse.dd.examples.dsf/src_preprocess/org/eclipse/dd/examples/dsf/dataviewer/AsyncDataViewer.java b/plugins/org.eclipse.dd.examples.dsf/src_preprocess/org/eclipse/dd/examples/dsf/dataviewer/AsyncDataViewer.java
index da828939503..d03fa2b6db6 100644
--- a/plugins/org.eclipse.dd.examples.dsf/src_preprocess/org/eclipse/dd/examples/dsf/dataviewer/AsyncDataViewer.java
+++ b/plugins/org.eclipse.dd.examples.dsf/src_preprocess/org/eclipse/dd/examples/dsf/dataviewer/AsyncDataViewer.java
@@ -171,7 +171,7 @@ public class AsyncDataViewer
fItemDataRequestMonitors.remove(this);
// Check if the request completed successfully, otherwise ignore it.
- if (getStatus().isOK()) {
+ if (isSuccess()) {
if (!fViewer.getTable().isDisposed()) {
fViewer.replace(getData(), fIndex);
}
diff --git a/plugins/org.eclipse.dd.examples.pda.ui/src/org/eclipse/dd/examples/pda/ui/viewmodel/launch/PDAProgramVMNode.java b/plugins/org.eclipse.dd.examples.pda.ui/src/org/eclipse/dd/examples/pda/ui/viewmodel/launch/PDAProgramVMNode.java
index b5ebe9f9544..33fc71780bd 100644
--- a/plugins/org.eclipse.dd.examples.pda.ui/src/org/eclipse/dd/examples/pda/ui/viewmodel/launch/PDAProgramVMNode.java
+++ b/plugins/org.eclipse.dd.examples.pda.ui/src/org/eclipse/dd/examples/pda/ui/viewmodel/launch/PDAProgramVMNode.java
@@ -204,7 +204,7 @@ public class PDAProgramVMNode extends AbstractDMVMNode
@Override
public void handleCompleted(){
// If the request failed, fail the udpate.
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
handleFailedUpdate(update);
return;
}
diff --git a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDALaunch.java b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDALaunch.java
index 99d726d6d2d..5db49e184bc 100644
--- a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDALaunch.java
+++ b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDALaunch.java
@@ -230,7 +230,7 @@ implements ITerminate
@Override
public void handleCompleted() {
fSession.removeServiceEventListener(PDALaunch.this);
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
PDAPlugin.getDefault().getLog().log(new MultiStatus(
PDAPlugin.PLUGIN_ID, -1, new IStatus[]{getStatus()}, "Session shutdown failed", null)); //$NON-NLS-1$
}
diff --git a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDAServicesInitSequence.java b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDAServicesInitSequence.java
index 781e8c505e3..c13ff5b33be 100644
--- a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDAServicesInitSequence.java
+++ b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDAServicesInitSequence.java
@@ -76,7 +76,7 @@ public class PDAServicesInitSequence extends Sequence {
fSession, new PDABreakpointAttributeTranslator());
bpmService.initialize(new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
bpmService.startTrackingBreakpoints(fCommandControl.getProgramDMContext(), requestMonitor);
}
});
diff --git a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDAServicesShutdownSequence.java b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDAServicesShutdownSequence.java
index f0056268c7e..4ca6df9cfe9 100644
--- a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDAServicesShutdownSequence.java
+++ b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/launch/PDAServicesShutdownSequence.java
@@ -127,7 +127,7 @@ public class PDAServicesShutdownSequence extends Sequence {
service.shutdown(new RequestMonitor(getExecutor(), requestMonitor) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
PDAPlugin.getDefault().getLog().log(getStatus());
}
requestMonitor.done();
diff --git a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDABreakpoints.java b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDABreakpoints.java
index 6d56ff522fc..01f3259de65 100644
--- a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDABreakpoints.java
+++ b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDABreakpoints.java
@@ -134,7 +134,7 @@ public class PDABreakpoints extends AbstractDsfService implements IBreakpoints
public void initialize(final RequestMonitor rm) {
super.initialize(new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(rm);
}
});
@@ -247,17 +247,17 @@ public class PDABreakpoints extends AbstractDsfService implements IBreakpoints
new PDASetBreakpointCommand(fCommandControl.getProgramDMContext(), line),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(breakpointCtx);
rm.done();
}
@Override
- protected void handleNotOK() {
+ protected void handleFailure() {
// If inserting of the breakpoint failed, remove it from
// the set of installed breakpoints.
fBreakpoints.remove(breakpointCtx);
- super.handleNotOK();
+ super.handleFailure();
}
});
}
@@ -313,17 +313,17 @@ public class PDABreakpoints extends AbstractDsfService implements IBreakpoints
new PDAWatchCommand(fCommandControl.getProgramDMContext(), function, variable, watchOperation),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(watchpointCtx);
rm.done();
}
@Override
- protected void handleNotOK() {
+ protected void handleFailure() {
// Since the command failed, we need to remove the breakpoint from
// the existing breakpoint set.
fBreakpoints.remove(watchpointCtx);
- super.handleNotOK();
+ super.handleFailure();
}
});
}
@@ -389,7 +389,7 @@ public class PDABreakpoints extends AbstractDsfService implements IBreakpoints
attributes,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// The inserted watchpoint context will equal the
// current context.
assert bpCtx.equals(getData());
diff --git a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDACommandControl.java b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDACommandControl.java
index 60d37deb922..8530ca85543 100644
--- a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDACommandControl.java
+++ b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDACommandControl.java
@@ -116,7 +116,7 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
// Call the super-class to perform initialization first.
super.initialize( new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(rm);
}
});
@@ -141,7 +141,7 @@ public class PDACommandControl extends AbstractDsfService implements ICommandCon
// completed.
final RequestMonitor socketsInitializeRm = new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Register the service with OSGi as the last step in initialization of
// the service.
register(
diff --git a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDAExpressions.java b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDAExpressions.java
index 2995b3388d0..7e0e4236b32 100644
--- a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDAExpressions.java
+++ b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDAExpressions.java
@@ -181,7 +181,7 @@ public class PDAExpressions extends AbstractDsfService implements IExpressions {
super.initialize(
new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(rm);
}});
}
@@ -284,7 +284,7 @@ public class PDAExpressions extends AbstractDsfService implements IExpressions {
frameCtx, 0,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Calculate the frame index.
int frameId = getData() - frameCtx.getLevel() - 1;
@@ -293,7 +293,7 @@ public class PDAExpressions extends AbstractDsfService implements IExpressions {
new PDAVarCommand(fCommandControl.getProgramDMContext(), frameId, exprCtx.getExpression()),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(new FormattedValueDMData(getData().fResponseText));
rm.done();
}
@@ -318,7 +318,7 @@ public class PDAExpressions extends AbstractDsfService implements IExpressions {
frameCtx, 0,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Calculate the frame index.
int frameId = getData() - frameCtx.getLevel() - 1;
@@ -327,7 +327,7 @@ public class PDAExpressions extends AbstractDsfService implements IExpressions {
new PDASetVarCommand(fCommandControl.getProgramDMContext(), frameId, exprCtx.getExpression(), exprValue),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
getSession().dispatchEvent(new ExpressionChangedDMEvent(exprCtx), getProperties());
rm.done();
}
diff --git a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDARunControl.java b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDARunControl.java
index 5457e57efb6..6a0c0c59ed9 100644
--- a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDARunControl.java
+++ b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDARunControl.java
@@ -136,7 +136,7 @@ public class PDARunControl extends AbstractDsfService
super.initialize(
new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(rm);
}});
}
@@ -244,11 +244,11 @@ public class PDARunControl extends AbstractDsfService
new PDAResumeCommand(fCommandControl.getProgramDMContext()),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleNotOK() {
+ protected void handleFailure() {
// If the resume command failed, we no longer
// expect to receive a resumed event.
fResumePending = false;
- super.handleNotOK();
+ super.handleFailure();
}
}
);
@@ -285,7 +285,7 @@ public class PDARunControl extends AbstractDsfService
new PDAStepCommand(fCommandControl.getProgramDMContext()),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleNotOK() {
+ protected void handleFailure() {
// If the step command failed, we no longer
// expect to receive a resumed event.
fResumePending = false;
diff --git a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDAStack.java b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDAStack.java
index a54126b9c8d..5f4648414dc 100644
--- a/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDAStack.java
+++ b/plugins/org.eclipse.dd.examples.pda/src/org/eclipse/dd/examples/pda/service/PDAStack.java
@@ -184,7 +184,7 @@ public class PDAStack extends AbstractDsfService implements IStack {
super.initialize(
new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(rm);
}});
}
@@ -224,7 +224,7 @@ public class PDAStack extends AbstractDsfService implements IStack {
new PDAStackCommand(fCommandControl.getProgramDMContext()),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// PDAFrame array is ordered highest to lowest. We need to
// calculate the index based on frame level.
int frameId = getData().fFrames.length - frameCtx.getLevel() - 1;
@@ -257,7 +257,7 @@ public class PDAStack extends AbstractDsfService implements IStack {
new PDAStackCommand(fCommandControl.getProgramDMContext()),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
IFrameDMContext[] frameCtxs = new IFrameDMContext[getData().fFrames.length];
for (int i = 0; i < getData().fFrames.length; i++) {
frameCtxs[i] = new FrameDMContext(getSession().getId(), execCtx, i);
@@ -274,7 +274,7 @@ public class PDAStack extends AbstractDsfService implements IStack {
new PDAStackCommand(fCommandControl.getProgramDMContext()),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Find the correct PDAFrame
int frameId = getData().fFrames.length - frameCtx.getLevel() - 1;
if (frameId < 0) {
@@ -301,7 +301,7 @@ public class PDAStack extends AbstractDsfService implements IStack {
new PDAStackCommand(fCommandControl.getProgramDMContext()),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(getData().fFrames.length);
rm.done();
}
diff --git a/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/FinalLaunchSequence.java b/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/FinalLaunchSequence.java
index 321305a15a2..1533ada87bc 100644
--- a/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/FinalLaunchSequence.java
+++ b/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/FinalLaunchSequence.java
@@ -216,7 +216,7 @@ public class FinalLaunchSequence extends Sequence {
true, false, null, 0, fStopSymbol, 0),
new DataRequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// After the break-insert is done, execute the -exec-run or -exec-continue command.
fCommandControl.queueCommand(execCommand, new DataRequestMonitor(getExecutor(), requestMonitor));
diff --git a/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/GdbLaunch.java b/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/GdbLaunch.java
index 3127d6c650e..f9a6f5f97e7 100644
--- a/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/GdbLaunch.java
+++ b/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/GdbLaunch.java
@@ -144,7 +144,7 @@ public class GdbLaunch extends Launch
@Override
public void handleCompleted() {
fSession.removeServiceEventListener(GdbLaunch.this);
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
GdbLaunchPlugin.getDefault().getLog().log(new MultiStatus(
GdbLaunchPlugin.PLUGIN_ID, -1, new IStatus[]{getStatus()}, "Session shutdown failed", null)); //$NON-NLS-1$
}
diff --git a/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/ShutdownSequence.java b/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/ShutdownSequence.java
index f241dc1021e..53bbc04897c 100644
--- a/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/ShutdownSequence.java
+++ b/plugins/org.eclipse.dd.gdb.launch/src/org/eclipse/dd/gdb/launch/launching/ShutdownSequence.java
@@ -165,7 +165,7 @@ public class ShutdownSequence extends Sequence {
service.shutdown(new RequestMonitor(getExecutor(), requestMonitor) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
GdbLaunchPlugin.getDefault().getLog().log(getStatus());
}
requestMonitor.done();
diff --git a/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/breakpoints/GdbThreadFilterEditor.java b/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/breakpoints/GdbThreadFilterEditor.java
index 23d5cc67026..6b963f92b91 100644
--- a/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/breakpoints/GdbThreadFilterEditor.java
+++ b/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/breakpoints/GdbThreadFilterEditor.java
@@ -501,7 +501,7 @@ public class GdbThreadFilterEditor {
runControl.getThreadData((IMIExecutionDMContext) thread, new DataRequestMonitor(
ImmediateExecutor.getInstance(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
final StringBuilder builder = new StringBuilder("Thread["); //$NON-NLS-1$
builder.append(((IMIExecutionDMContext)thread).getThreadId());
builder.append("] "); //$NON-NLS-1$
diff --git a/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/viewmodel/launch/ContainerVMNode.java b/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/viewmodel/launch/ContainerVMNode.java
index 3cecaccba41..f0f3542e170 100644
--- a/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/viewmodel/launch/ContainerVMNode.java
+++ b/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/viewmodel/launch/ContainerVMNode.java
@@ -93,7 +93,7 @@ public class ContainerVMNode extends AbstractDMVMNode
new DataRequestMonitor(getExecutor(), null) {
@Override
public void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
update.done();
return;
}
diff --git a/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/viewmodel/launch/ThreadVMNode.java b/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/viewmodel/launch/ThreadVMNode.java
index 2f2c15e0ae4..681bf305211 100644
--- a/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/viewmodel/launch/ThreadVMNode.java
+++ b/plugins/org.eclipse.dd.gdb.ui/src/org/eclipse/dd/gdb/internal/ui/viewmodel/launch/ThreadVMNode.java
@@ -74,7 +74,7 @@ public class ThreadVMNode extends AbstractDMVMNode
new DataRequestMonitor(getSession().getExecutor(), null){
@Override
public void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
handleFailedUpdate(update);
return;
}
@@ -120,7 +120,7 @@ public class ThreadVMNode extends AbstractDMVMNode
new DataRequestMonitor(getExecutor(), rm) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
rm.setData(new IVMContext[] { getData().fVMContext });
} else {
rm.setData(new IVMContext[0]);
@@ -149,7 +149,7 @@ public class ThreadVMNode extends AbstractDMVMNode
parentDelta, getVMProvider().getPresentationContext(), -1, -1,
new DataRequestMonitor>(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
try {
getSession().getExecutor().execute(new DsfRunnable() {
public void run() {
@@ -231,7 +231,7 @@ public class ThreadVMNode extends AbstractDMVMNode
new DataRequestMonitor(getSession().getExecutor(), null) {
@Override
public void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
update.done();
return;
}
@@ -294,7 +294,7 @@ public class ThreadVMNode extends AbstractDMVMNode
new DataRequestMonitor(getExecutor(), rm) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
parentDelta.addNode(
getData().fVMContext, nodeOffset + getData().fIndex,
IModelDelta.EXPAND | (getData().fIsSuspended ? 0 : IModelDelta.SELECT));
diff --git a/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/service/GDBRunControl.java b/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/service/GDBRunControl.java
index b6b3aabdd57..36ad19ce117 100644
--- a/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/service/GDBRunControl.java
+++ b/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/service/GDBRunControl.java
@@ -90,7 +90,7 @@ public class GDBRunControl extends MIRunControl {
super.initialize(
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- public void handleOK() {
+ public void handleSuccess() {
doInitialize(requestMonitor);
}});
}
@@ -132,7 +132,7 @@ public class GDBRunControl extends MIRunControl {
DataRequestMonitor rm1 = new DataRequestMonitor(
getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
raiseExitEvents(getData());
fOldExecutionCtxts = getData();
rm.setData(fOldExecutionCtxts);
@@ -153,7 +153,7 @@ public class GDBRunControl extends MIRunControl {
getCache().execute(new CLIInfoThreads(containerDmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData( createThreadInfo(execDmc, getData()) );
rm.done();
}
diff --git a/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/service/command/GDBControl.java b/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/service/command/GDBControl.java
index c4e450184ef..c9656dfdd63 100644
--- a/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/service/command/GDBControl.java
+++ b/plugins/org.eclipse.dd.gdb/src/org/eclipse/dd/gdb/service/command/GDBControl.java
@@ -120,7 +120,7 @@ public class GDBControl extends AbstractMIControl {
public void initialize(final RequestMonitor requestMonitor) {
super.initialize( new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(requestMonitor);
}
});
@@ -220,7 +220,7 @@ public class GDBControl extends AbstractMIControl {
public void handleCompleted() {
// Cancel the time out runnable (if it hasn't run yet).
quitTimeoutFuture.cancel(false);
- if (!getStatus().isOK() && !isGDBExited()) {
+ if (!isSuccess() && !isGDBExited()) {
destroy();
}
rm.done();
@@ -361,7 +361,7 @@ public class GDBControl extends AbstractMIControl {
protected void handleCompleted() {
if (!fGDBLaunchMonitor.fTimedOut) {
fGDBLaunchMonitor.fLaunched = true;
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
requestMonitor.setStatus(getStatus());
}
requestMonitor.done();
@@ -517,7 +517,7 @@ public class GDBControl extends AbstractMIControl {
new DataRequestMonitor(getExecutor(), null) {
@Override
protected void handleCompleted() {
- fUseInterpreterConsole = getStatus().isOK();
+ fUseInterpreterConsole = isSuccess();
requestMonitor.done();
}
}
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/CSourceLookup.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/CSourceLookup.java
index 333389f510b..02122aba680 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/CSourceLookup.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/CSourceLookup.java
@@ -113,7 +113,7 @@ public class CSourceLookup extends AbstractDsfService implements ISourceLookup {
super.initialize(
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(requestMonitor);
}});
}
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/ExpressionService.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/ExpressionService.java
index d7e751cebef..5a085191629 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/ExpressionService.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/ExpressionService.java
@@ -418,7 +418,7 @@ public class ExpressionService extends AbstractDsfService implements IExpression
public void initialize(final RequestMonitor requestMonitor) {
super.initialize(new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(requestMonitor);
}
});
@@ -588,7 +588,7 @@ public class ExpressionService extends AbstractDsfService implements IExpression
new ExprMetaGetVar(dmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(new ExpressionDMData(getData().getExpr(),
getData().getType(), getData().getNumChildren(), getData().getEditable()));
rm.done();
@@ -630,7 +630,7 @@ public class ExpressionService extends AbstractDsfService implements IExpression
new MIDataEvaluateExpression(addressDmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
String tmpAddrStr = getData().getValue();
// Deal with adresses of contents of a char* which is in
@@ -643,7 +643,7 @@ public class ExpressionService extends AbstractDsfService implements IExpression
new MIDataEvaluateExpression(sizeDmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
try {
int size = Integer.parseInt(getData().getValue());
rm.setData(new ExpressionDMAddress(addrStr, size));
@@ -686,7 +686,7 @@ public class ExpressionService extends AbstractDsfService implements IExpression
new ExprMetaGetValue(dmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(new FormattedValueDMData(getData().getValue()));
rm.done();
}
@@ -723,7 +723,7 @@ public class ExpressionService extends AbstractDsfService implements IExpression
new ExprMetaGetChildren(dmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
ExpressionInfo[] childrenExpr = getData().getChildrenExpressions();
IExpressionDMContext[] childArray = new IExpressionDMContext[childrenExpr.length];
for (int i=0; i(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData((IExpressionDMContext[])Arrays.asList(getData()).subList(startIndex, startIndex + length).toArray());
rm.done();
}
@@ -790,7 +790,7 @@ public class ExpressionService extends AbstractDsfService implements IExpression
new ExprMetaGetChildCount(dmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(getData().getChildNum());
rm.done();
}
@@ -818,7 +818,7 @@ public class ExpressionService extends AbstractDsfService implements IExpression
new ExprMetaGetAttributes(dmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(getData().getEditable());
rm.done();
}
@@ -858,7 +858,7 @@ public class ExpressionService extends AbstractDsfService implements IExpression
formatId,
new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// A value has changed, we should remove any references to that
// value in our cache. Since we don't have such granularity,
// we must clear the entire cache.
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIBreakpoints.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIBreakpoints.java
index 5f6dfe7b801..5b456c20950 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIBreakpoints.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIBreakpoints.java
@@ -207,7 +207,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
public void initialize(final RequestMonitor rm) {
super.initialize(new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(rm);
}
});
@@ -309,7 +309,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
fConnection.queueCommand(new MIBreakList(context),
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Refresh the breakpoints map and format the result
breakpointContext.clear();
MIBreakpoint[] breakpoints = getData().getMIBreakpoints();
@@ -484,7 +484,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
DataRequestMonitor addBreakpointDRM =
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// With MI, an invalid location won't generate an error
if (getData().getMIBreakpoints().length == 0) {
@@ -555,7 +555,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
DataRequestMonitor addWatchpointDRM =
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// With MI, an invalid location won't generate an error
if (getData().getMIBreakpoints().length == 0) {
@@ -659,7 +659,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
new DataRequestMonitor(getExecutor(), rm) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
getSession().dispatchEvent(new BreakpointRemovedEvent(dmc), getProperties());
contextBreakpoints.remove(reference);
}
@@ -746,7 +746,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
int numberOfChanges = 0;
final CountingRequestMonitor countingRm = new CountingRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
if (generateUpdateEvent)
getSession().dispatchEvent(new BreakpointUpdatedEvent(dmc), getProperties());
rm.done();
@@ -830,7 +830,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
rm.done();
return;
}
- if (getStatus().isOK()) {
+ if (isSuccess()) {
breakpoint.setCondition(condition);
}
else {
@@ -867,7 +867,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
new MIBreakAfter(context, reference, ignoreCount),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
MIBreakpointDMData breakpoint = contextBreakpoints.get(reference);
if (breakpoint == null) {
rm.setStatus(new Status(IStatus.ERROR, MIPlugin.PLUGIN_ID, REQUEST_FAILED, UNKNOWN_BREAKPOINT, null));
@@ -903,7 +903,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
new MIBreakEnable(context, new int[] { reference }),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
MIBreakpointDMData breakpoint = contextBreakpoints.get(reference);
if (breakpoint == null) {
rm.setStatus(new Status(IStatus.ERROR, MIPlugin.PLUGIN_ID, REQUEST_FAILED, UNKNOWN_BREAKPOINT, null));
@@ -939,7 +939,7 @@ public class MIBreakpoints extends AbstractDsfService implements IBreakpoints
new MIBreakDisable(context, new int[] { reference }),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
MIBreakpointDMData breakpoint = contextBreakpoints.get(reference);
if (breakpoint == null) {
rm.setStatus(new Status(IStatus.ERROR, MIPlugin.PLUGIN_ID, REQUEST_FAILED, UNKNOWN_BREAKPOINT, null));
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIBreakpointsManager.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIBreakpointsManager.java
index 044e384a6e9..a13de5f8fce 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIBreakpointsManager.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIBreakpointsManager.java
@@ -219,7 +219,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
super.initialize(
new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(rm);
}});
}
@@ -412,7 +412,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
// Upon determining the debuggerPath, the breakpoint is installed
determineDebuggerPath(dmc, attributes, new RequestMonitor(getExecutor(), countingRm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
installBreakpoint(dmc, breakpoint, attributes, new RequestMonitor(getExecutor(), countingRm));
}
});
@@ -549,7 +549,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
DataRequestMonitor drm =
new DataRequestMonitor(getExecutor(), installRM) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Add the new back-end breakpoint to the map
Vector list = breakpointIDs.get(breakpoint);
if (list == null)
@@ -684,7 +684,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
// Upon completion, update the mappings
CountingRequestMonitor removeRM = new CountingRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Update the mappings
platformBPs.remove(breakpoint);
threadsIDs.remove(breakpoint);
@@ -804,7 +804,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
// Update completion monitor
final CountingRequestMonitor updateRM = new CountingRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Success: simply store the new attributes
platformBPs.put(breakpoint, attributes);
rm.done();
@@ -828,7 +828,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
final Vector newTargetBPs = new Vector();
final CountingRequestMonitor removeRM = new CountingRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// All right! Save the new list and perform the final update
Map> breakpointIDs = fBreakpointIDs.get(dmc);
if (breakpointIDs == null) {
@@ -852,7 +852,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
// In theory, we could have had a partial success and the original threads
// list would be invalid. We think it is highly unlikely so we assume that
// either everything went fine or else everything failed.
- protected void handleOK() {
+ protected void handleSuccess() {
// Get the list of new back-end breakpoints contexts
newTargetBPs.addAll(getData());
threadsIDs.put(breakpoint, newThreads);
@@ -908,7 +908,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
// Once we're done, return the new list of back-end breakpoints contexts
final CountingRequestMonitor installRM = new CountingRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Report whatever we have managed to install
// It is very likely installation either succeeded or failed for all
drm.setData(breakpointList);
@@ -932,7 +932,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
fBreakpoints.insertBreakpoint(context, attrs,
new DataRequestMonitor(getExecutor(), installRM) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Add the new back-end breakpoint context to the list
breakpointList.add(getData());
try {
@@ -1011,7 +1011,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
determineDebuggerPath(dmc, attrs,
new RequestMonitor(getExecutor(), countingRm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
installBreakpoint(dmc, (ICBreakpoint) breakpoint,
attrs, new RequestMonitor(getExecutor(), countingRm));
}
@@ -1064,7 +1064,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
if (getStatus().getSeverity() == IStatus.ERROR) {
MIPlugin.getDefault().getLog().log(getStatus());
}
@@ -1090,7 +1090,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
determineDebuggerPath(dmc, attrs,
new RequestMonitor(getExecutor(), countingRm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
modifyBreakpoint(dmc, (ICBreakpoint) breakpoint, attrs, delta, new RequestMonitor(getExecutor(), countingRm));
}
});
@@ -1334,7 +1334,7 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
fSourceLookup.getDebuggerPath(srcDmc, hostPath,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
attributes.put(ATTR_DEBUGGER_PATH, getData());
rm.done();
}
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIDisassembly.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIDisassembly.java
index b8cad253a70..c809a873daf 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIDisassembly.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIDisassembly.java
@@ -54,7 +54,7 @@ public class MIDisassembly extends AbstractDsfService implements IDisassembly {
public void initialize(final RequestMonitor rm) {
super.initialize(new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(rm);
}
});
@@ -110,7 +110,7 @@ public class MIDisassembly extends AbstractDsfService implements IDisassembly {
fConnection.queueCommand(new MIDataDisassemble(context, start, end, false),
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
IInstruction[] result = getData().getMIAssemblyCode();
drm.setData(result);
drm.done();
@@ -135,7 +135,7 @@ public class MIDisassembly extends AbstractDsfService implements IDisassembly {
fConnection.queueCommand(new MIDataDisassemble(context, filename, linenum, lines, false),
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
IInstruction[] result = getData().getMIAssemblyCode();
drm.setData(result);
drm.done();
@@ -163,7 +163,7 @@ public class MIDisassembly extends AbstractDsfService implements IDisassembly {
fConnection.queueCommand(new MIDataDisassemble(context, start, end, true),
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
IMixedInstruction[] result = getData().getMIMixedCode();
drm.setData(result);
drm.done();
@@ -189,7 +189,7 @@ public class MIDisassembly extends AbstractDsfService implements IDisassembly {
fConnection.queueCommand(new MIDataDisassemble(context, filename, linenum, lines, true),
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
IMixedInstruction[] result = getData().getMIMixedCode();
drm.setData(result);
drm.done();
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIMemory.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIMemory.java
index b958bcdec73..0870b86f01a 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIMemory.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIMemory.java
@@ -94,7 +94,7 @@ public class MIMemory extends AbstractDsfService implements IMemory {
public void initialize(final RequestMonitor requestMonitor) {
super.initialize(new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(requestMonitor);
}
});
@@ -304,7 +304,7 @@ public class MIMemory extends AbstractDsfService implements IMemory {
expressionService.getExpressionAddressData(context,
new DataRequestMonitor(getExecutor(), null) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Figure out which memory area was modified
IExpressionDMAddress expression = getData();
final int count = expression.getSize();
@@ -694,7 +694,7 @@ public class MIMemory extends AbstractDsfService implements IMemory {
final CountingRequestMonitor countingRM =
new CountingRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// We received everything so read the result from the memory cache
drm.setData(getMemoryBlockFromCache(address, count));
drm.done();
@@ -710,7 +710,7 @@ public class MIMemory extends AbstractDsfService implements IMemory {
readMemoryBlock(memoryDMC, startAddress, 0, word_size, length,
new DataRequestMonitor(getSession().getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
MemoryByte[] block = new MemoryByte[count];
block = getData();
MemoryBlock memoryBlock = new MemoryBlock(startAddress, length, block);
@@ -738,7 +738,7 @@ public class MIMemory extends AbstractDsfService implements IMemory {
memoryDMC, address, offset, word_size, count, buffer,
new RequestMonitor(getSession().getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Clear the command cache (otherwise we can't guarantee
// that the subsequent memory read will be correct)
fCommandCache.reset();
@@ -747,7 +747,7 @@ public class MIMemory extends AbstractDsfService implements IMemory {
final DataRequestMonitor drm =
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
updateMemoryCache(address.add(offset), count, getData());
// Send the MemoryChangedEvent
IAddress[] addresses = new IAddress[count];
@@ -764,7 +764,7 @@ public class MIMemory extends AbstractDsfService implements IMemory {
readMemoryBlock(memoryDMC, address, offset, word_size, count,
new DataRequestMonitor(getExecutor(), drm) {
@Override
- public void handleOK() {
+ protected void handleSuccess() {
drm.setData(getData());
drm.done();
}
@@ -809,7 +809,7 @@ public class MIMemory extends AbstractDsfService implements IMemory {
fMemoryCache.readMemoryBlock(memoryDMC, address, 0, 1, count,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- public void handleOK() {
+ protected void handleSuccess() {
MemoryByte[] oldBlock = fMemoryCache.getMemoryBlockFromCache(address, count);
MemoryByte[] newBlock = getData();
boolean blocksDiffer = false;
@@ -855,7 +855,7 @@ public class MIMemory extends AbstractDsfService implements IMemory {
new MIDataReadMemory(memoryDMC, offset, address.toString(), mode, word_size, nb_rows, nb_cols, asChar),
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Retrieve the memory block
drm.setData(getData().getMIMemoryBlock());
drm.done();
@@ -881,7 +881,7 @@ public class MIMemory extends AbstractDsfService implements IMemory {
final CountingRequestMonitor countingRM =
new CountingRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.done();
}
};
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIModules.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIModules.java
index 64a8a86b291..d013393fceb 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIModules.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIModules.java
@@ -53,7 +53,7 @@ public class MIModules extends AbstractDsfService implements IModules {
super.initialize(
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(requestMonitor);
}});
}
@@ -155,7 +155,7 @@ public class MIModules extends AbstractDsfService implements IModules {
fModulesCache.execute(new CLIInfoSharedLibrary(symCtx),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(makeModuleContexts(symCtx, getData()));
rm.done();
}
@@ -184,7 +184,7 @@ public class MIModules extends AbstractDsfService implements IModules {
fModulesCache.execute(new CLIInfoSharedLibrary(dmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData( createSharedLibInfo((ModuleDMContext)dmc, getData()) );
rm.done();
}
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRegisters.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRegisters.java
index 596a4b70ab2..a7c658569ad 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRegisters.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRegisters.java
@@ -162,7 +162,7 @@ public class MIRegisters extends AbstractDsfService implements IRegisters {
super.initialize(
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(requestMonitor);
}});
}
@@ -269,7 +269,7 @@ public class MIRegisters extends AbstractDsfService implements IRegisters {
new MIDataListRegisterValues(execDmc, MIFormat.HEXADECIMAL, regnos),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Retrieve the register value.
MIRegisterValue[] regValue = getData().getMIRegisterValues();
@@ -324,7 +324,7 @@ public class MIRegisters extends AbstractDsfService implements IRegisters {
new MIDataListRegisterValues(miExecDmc, NumberFormat, regnos),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Retrieve the register value.
MIRegisterValue[] regValue = getData().getMIRegisterValues();
@@ -463,7 +463,7 @@ public class MIRegisters extends AbstractDsfService implements IRegisters {
new MIDataListRegisterNames(containerDmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Retrieve the register names.
String[] regNames = getData().getRegisterNames() ;
@@ -515,18 +515,18 @@ public class MIRegisters extends AbstractDsfService implements IRegisters {
final IExpressionDMContext exprCtxt = exprService.createExpression(regCtx, "$" + regName); //$NON-NLS-1$
exprService.getModelData(exprCtxt, new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Evaluate the expression - request HEX since it works in every case
final FormattedValueDMContext valueDmc = exprService.getFormattedValueContext(exprCtxt, formatId);
exprService.getModelData(
valueDmc,
new DataRequestMonitor(getExecutor(), null) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
if(! regValue.equals(getData().getFormattedValue()) || ! valueDmc.getFormatID().equals(formatId)){
exprService.writeExpression(exprCtxt, regValue, formatId, new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
generateRegisterChangedEvent(regDmc);
}
});
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControl.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControl.java
index 1e7fb7ea3ab..a70af84f3be 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControl.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIRunControl.java
@@ -291,7 +291,7 @@ public class MIRunControl extends AbstractDsfService implements IRunControl
super.initialize(
new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(rm);
}});
}
@@ -484,7 +484,7 @@ public class MIRunControl extends AbstractDsfService implements IRunControl
cmd,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.done();
}
}
@@ -516,7 +516,7 @@ public class MIRunControl extends AbstractDsfService implements IRunControl
cmd,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.done();
}
}
@@ -598,7 +598,7 @@ public class MIRunControl extends AbstractDsfService implements IRunControl
new DataRequestMonitor(
getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(makeExecutionDMCs(containerDmc, getData()));
rm.done();
}
@@ -654,7 +654,7 @@ public class MIRunControl extends AbstractDsfService implements IRunControl
new DataRequestMonitor(
getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.done();
}
});
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIStack.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIStack.java
index 7baa34260f8..c268e272d8d 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIStack.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIStack.java
@@ -135,7 +135,7 @@ public class MIStack extends AbstractDsfService
super.initialize(
new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
doInitialize(rm);
}
});
@@ -205,7 +205,7 @@ public class MIStack extends AbstractDsfService
new MIStackListFrames(execDmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(getFrames(execDmc, getData()));
rm.done();
}
@@ -236,7 +236,7 @@ public class MIStack extends AbstractDsfService
ctx,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(getData()[0]);
rm.done();
}
@@ -340,7 +340,7 @@ public class MIStack extends AbstractDsfService
new MIStackListFrames(execDmc),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Find the index to the correct MI frame object.
int idx = findFrameIndex(getData().getMIFrames(), miFrameDmc.fLevel);
if (idx == -1) {
@@ -384,7 +384,7 @@ public class MIStack extends AbstractDsfService
new MIStackListArguments(execDmc, true),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Find the index to the correct MI frame object.
// Note: this is a short-cut, but it won't work once we implement retrieving
// partial lists of stack frames.
@@ -464,7 +464,7 @@ public class MIStack extends AbstractDsfService
new MIStackListArguments(execDmc, true),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Find the correct frame and argument
if ( frameDmc.fLevel >= getData().getMIFrames().length ||
miVariableDmc.fIndex >= getData().getMIFrames()[frameDmc.fLevel].getArgs().length )
@@ -484,7 +484,7 @@ public class MIStack extends AbstractDsfService
new MIStackListLocals(frameDmc, true),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Create the data object.
rm.setData(new VariableData(getData().getLocals()[miVariableDmc.fIndex]));
@@ -520,7 +520,7 @@ public class MIStack extends AbstractDsfService
final CountingRequestMonitor countingRm = new CountingRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData( localsList.toArray(new IVariableDMContext[localsList.size()]) );
rm.done();
}
@@ -531,7 +531,7 @@ public class MIStack extends AbstractDsfService
frameDmc,
new DataRequestMonitor(getExecutor(), countingRm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
localsList.addAll( Arrays.asList(getData()) );
countingRm.done();
}
@@ -541,7 +541,7 @@ public class MIStack extends AbstractDsfService
new MIStackListLocals(frameDmc, true),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
localsList.addAll( Arrays.asList(
makeVariableDMCs(frameDmc, MIVariableDMC.Type.LOCAL, getData().getLocals().length)) );
countingRm.done();
@@ -560,7 +560,7 @@ public class MIStack extends AbstractDsfService
depthCommand,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(getData().getDepth());
rm.done();
}
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIVariableManager.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIVariableManager.java
index 82390639728..dc3708d93dd 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIVariableManager.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/MIVariableManager.java
@@ -358,7 +358,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
protected void handleCompleted() {
currentState = STATE_READY;
- if (getStatus().isOK()) {
+ if (isSuccess()) {
outOfScope = getRootToUpdate().isOutOfScope();
// This request monitor is the one that should re-create
// the variable object if the old one was out-of-scope
@@ -414,7 +414,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
new MIVarShowAttributes(fControlDmc, getGdbName()),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
editable = getData().isEditable();
rm.setData(editable);
@@ -466,7 +466,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
addrCxt,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
getData().getValue(formatCxt, rm);
}
@@ -485,7 +485,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
if (locked) {
operationsPending.add(new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
getValue(dmc, rm);
}
});
@@ -503,7 +503,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
new DataRequestMonitor(getExecutor(), rm) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
setCurrentFormat(dmc.getFormatID());
// If set-format returned the value, no need to evaluate
@@ -539,7 +539,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
new DataRequestMonitor(getExecutor(), rm) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
setValue(getCurrentFormat(), getData().getValue());
rm.setData(new FormattedValueDMData(getData().getValue()));
rm.done();
@@ -576,7 +576,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
new DataRequestMonitor(getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
setCurrentFormat(IFormattedValues.NATURAL_FORMAT);
}
unlock();
@@ -641,13 +641,13 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
new MIVarListChildren(fControlDmc, getGdbName()),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
MIVar[] children = getData().getMIVars();
final List realChildren = new ArrayList();
final CountingRequestMonitor countingRm = new CountingRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Store the children in our variable object cache
setChildren(realChildren.toArray(new ExpressionInfo[realChildren.size()]));
rm.setData(getChildren());
@@ -678,7 +678,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
final DataRequestMonitor childPathRm =
new DataRequestMonitor(getExecutor(), countingRm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
String childFullExpression = getData();
// For children that do not map to a real expression (such as f.public)
@@ -729,7 +729,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
exprDmc,
new DataRequestMonitor(getExecutor(), countingRm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
ExpressionInfo[] vars = getData();
for (ExpressionInfo realChild : vars) {
realChildren.add(realChild);
@@ -759,7 +759,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
new DataRequestMonitor(getExecutor(), childPathRm) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
childPathRm.setData(getData().getFullExpression());
} else {
// If we don't have var-info-path-expression
@@ -874,7 +874,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
// Return a status info so that handleOK is not called and we don't send
// an ExpressionChanged event
if (value.equals(getValue(formatId))) {
- rm.setStatus(new Status(IStatus.INFO, MIPlugin.PLUGIN_ID, IDsfStatusConstants.NOT_SUPPORTED,
+ rm.setStatus(new Status(IStatus.WARNING, MIPlugin.PLUGIN_ID, IDsfStatusConstants.NOT_SUPPORTED,
"Setting to the same value of: " + value, null)); //$NON-NLS-1$
rm.done();
return;
@@ -885,7 +885,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
new MIVarAssign(fControlDmc, getGdbName(), value),
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// We must also mark all variable objects
// as out-of-date. This is because some variable objects may be affected
// by this one having changed.
@@ -963,7 +963,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
new DataRequestMonitor(getExecutor(), rm) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
setGdbName(getData().getName());
setExpressionData(
exprCtx.getExpression(),
@@ -1062,7 +1062,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
protected void handleCompleted() {
currentState = STATE_READY;
- if (getStatus().isOK()) {
+ if (isSuccess()) {
outOfDate = false;
MIVarChange[] changes = getData().getMIVarChanges();
@@ -1201,7 +1201,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
execCtx, 0,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- public void handleOK() {
+ protected void handleSuccess() {
fFrameId = new Integer(getData() - frameCtx.getLevel());
rm.done();
}
@@ -1362,7 +1362,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
exprCtx,
new RequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
getVariable(id, exprCtx, rm);
}
});
@@ -1383,7 +1383,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
// and if we should re-create it.
varObj.update(new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
boolean shouldCreateNew = getData().booleanValue();
@@ -1444,7 +1444,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
newVarObj.create(exprCtx, new RequestMonitor(getExecutor(), rm) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
// Also store the object as a varObj that is up-to-date
updatedRootList.add(newVarObj);
@@ -1481,7 +1481,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
ctx,
new DataRequestMonitor(getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
getData().writeValue(expressionValue, formatId, rm);
}
});
@@ -1504,7 +1504,7 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
exprCtx,
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
drm.setData(
new ExprMetaGetVarInfo(
exprCtx.getRelativeExpression(),
@@ -1523,11 +1523,11 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
exprCtx,
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
getData().getAttributes(
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
drm.setData(new ExprMetaGetAttributesInfo(getData()));
drm.done();
}
@@ -1546,12 +1546,12 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
exprCtx,
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
getData().getValue(
valueCtx,
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
drm.setData(
new ExprMetaGetValueInfo(getData().getFormattedValue()));
drm.done();
@@ -1569,12 +1569,12 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
exprCtx,
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
getData().getChildren(
exprCtx,
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
drm.setData(new ExprMetaGetChildrenInfo(getData()));
drm.done();
}
@@ -1591,11 +1591,11 @@ public class MIVariableManager extends AbstractDsfService implements ICommandCon
exprCtx,
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
getData().getChildrenCount(
new DataRequestMonitor(getExecutor(), drm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
drm.setData(new ExprMetaGetChildCountInfo(getData()));
drm.done();
}
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/breakpoint/actions/MILogActionEnabler.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/breakpoint/actions/MILogActionEnabler.java
index 8b9c509bedb..fc96c6a26c1 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/breakpoint/actions/MILogActionEnabler.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/breakpoint/actions/MILogActionEnabler.java
@@ -56,7 +56,7 @@ public class MILogActionEnabler implements ILogActionEnabler {
@Override
protected void handleCompleted() {
String result = expression + ": evaluation failed."; //$NON-NLS-1$
- if (getStatus().isOK()) {
+ if (isSuccess()) {
result = getData().getFormattedValue();
}
drm.setData(result);
diff --git a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/command/MIInferiorProcess.java b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/command/MIInferiorProcess.java
index fbc80308ab4..b8ef43d869c 100644
--- a/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/command/MIInferiorProcess.java
+++ b/plugins/org.eclipse.dd.mi/src/org/eclipse/dd/mi/service/command/MIInferiorProcess.java
@@ -238,7 +238,7 @@ public class MIInferiorProcess extends Process
new MIGDBShowExitCode(getCommandControl().getControlDMContext()),
new DataRequestMonitor(fSession.getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
rm.setData(getData().getCode());
rm.done();
}
diff --git a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/AbstractService.java b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/AbstractService.java
index 94a5fdc9de2..7831252c5d3 100644
--- a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/AbstractService.java
+++ b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/AbstractService.java
@@ -37,7 +37,7 @@ abstract public class AbstractService extends AbstractDsfService
super.initialize(
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- public void handleOK() {
+ public void handleSuccess() {
doInitialize(requestMonitor);
}
});
diff --git a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service1.java b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service1.java
index 34e3cd72bb2..01e132acc81 100644
--- a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service1.java
+++ b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service1.java
@@ -24,7 +24,7 @@ public class Service1 extends AbstractService {
super.initialize(
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- public void handleOK() {
+ public void handleSuccess() {
doInitialize(requestMonitor);
}
});
diff --git a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service2.java b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service2.java
index a466c03e295..076cfb9fd8d 100644
--- a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service2.java
+++ b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service2.java
@@ -24,7 +24,7 @@ public class Service2 extends AbstractService {
super.initialize(
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- public void handleOK() {
+ public void handleSuccess() {
doInitialize(requestMonitor);
}
});
diff --git a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service3.java b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service3.java
index 5069157e8d0..51064766187 100644
--- a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service3.java
+++ b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/events/Service3.java
@@ -30,7 +30,7 @@ public class Service3 extends AbstractService {
super.initialize(
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- public void handleOK() {
+ public void handleSuccess() {
doInitialize(requestMonitor);
}
});
diff --git a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/service/MultiInstanceTestService.java b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/service/MultiInstanceTestService.java
index 2addfb41af7..3e831ec29cb 100644
--- a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/service/MultiInstanceTestService.java
+++ b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/service/MultiInstanceTestService.java
@@ -38,7 +38,7 @@ public class MultiInstanceTestService extends AbstractDsfService {
super.initialize(
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- public void handleOK() {
+ public void handleSuccess() {
doInitialize(requestMonitor);
}
});
diff --git a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/service/SimpleTestService.java b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/service/SimpleTestService.java
index f0e29b2f309..6389c0dc059 100644
--- a/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/service/SimpleTestService.java
+++ b/plugins/org.eclipse.dd.tests.dsf/src/org/eclipse/dd/tests/dsf/service/SimpleTestService.java
@@ -34,7 +34,7 @@ public class SimpleTestService extends AbstractDsfService {
super.initialize(
new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- public void handleOK() {
+ public void handleSuccess() {
doInitialize(requestMonitor);
}
});
diff --git a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/ExpressionServiceTest.java b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/ExpressionServiceTest.java
index 33ccdf3ae6b..7ea0742a50a 100644
--- a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/ExpressionServiceTest.java
+++ b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/ExpressionServiceTest.java
@@ -354,7 +354,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
wait.setReturnInfo(getData());
}
@@ -455,7 +455,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("28")) {
@@ -474,7 +474,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equalsIgnoreCase("0x1c")) {
@@ -523,7 +523,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
wait.setReturnInfo(getData());
}
@@ -551,7 +551,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals(actualAddrStr)) {
@@ -569,7 +569,7 @@ public class ExpressionServiceTest extends BaseTestCase {
fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
IExpressionDMContext[] children = getData();
@@ -597,7 +597,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals(actualAddrStr)) {
@@ -645,7 +645,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
wait.setReturnInfo(getData());
}
@@ -672,7 +672,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals(actualAddrStr)) {
@@ -690,7 +690,7 @@ public class ExpressionServiceTest extends BaseTestCase {
null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
int count = getData();
@@ -711,7 +711,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals(actualAddrStr)) {
@@ -761,7 +761,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("32")) {
@@ -780,7 +780,7 @@ public class ExpressionServiceTest extends BaseTestCase {
fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
wait.waitFinished();
@@ -795,7 +795,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("0x38")) {
@@ -850,7 +850,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("32")) {
@@ -870,7 +870,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("0x20")) {
@@ -889,7 +889,7 @@ public class ExpressionServiceTest extends BaseTestCase {
null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData() != 0) {
@@ -907,7 +907,7 @@ public class ExpressionServiceTest extends BaseTestCase {
fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().length != 0) {
@@ -927,7 +927,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("040")) {
@@ -986,7 +986,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("32")) {
@@ -1005,7 +1005,7 @@ public class ExpressionServiceTest extends BaseTestCase {
fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
wait.waitFinished();
@@ -1022,7 +1022,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("070")) {
@@ -1048,7 +1048,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("32")) {
@@ -1080,7 +1080,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("56")) {
@@ -1131,7 +1131,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
wait.setReturnInfo(getData());
}
@@ -1282,7 +1282,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 2) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -1296,7 +1296,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -1334,7 +1334,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 2) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -1348,7 +1348,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -1386,7 +1386,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 2) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -1400,7 +1400,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -1466,7 +1466,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 1) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -1480,7 +1480,7 @@ public class ExpressionServiceTest extends BaseTestCase {
protected void handleCompleted() {
final IExpressionDMContext[] childDmcs = getData();
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (childDmcs.length != 2) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -1497,7 +1497,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -1542,7 +1542,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 1) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -1556,7 +1556,7 @@ public class ExpressionServiceTest extends BaseTestCase {
protected void handleCompleted() {
final IExpressionDMContext[] childDmcs = getData();
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (childDmcs.length != 2) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -1573,7 +1573,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -1627,7 +1627,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().length != 5) {
@@ -1645,7 +1645,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().length != 2) {
@@ -1692,7 +1692,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
wait.waitFinished();
@@ -1717,7 +1717,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
wait.waitFinished();
@@ -1765,7 +1765,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("1011")) {
@@ -1801,7 +1801,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("11")) {
@@ -1864,7 +1864,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("1.99")) {
@@ -1885,7 +1885,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("0x1")) {
@@ -1922,7 +1922,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("1.22")) {
@@ -1981,7 +1981,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 1) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -1998,7 +1998,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -2017,7 +2017,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals(valueStr)) {
@@ -2055,7 +2055,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
if (getData().getFormattedValue().equals("1.22")) {
@@ -2101,7 +2101,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 1) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -2115,7 +2115,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -2148,7 +2148,7 @@ public class ExpressionServiceTest extends BaseTestCase {
@Override
protected void handleCompleted() {
final String valueStr = "1";
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -2167,7 +2167,7 @@ public class ExpressionServiceTest extends BaseTestCase {
@Override
protected void handleCompleted() {
final String valueStr = "0x1";
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -2216,7 +2216,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 1) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -2230,7 +2230,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -2265,7 +2265,7 @@ public class ExpressionServiceTest extends BaseTestCase {
@Override
protected void handleCompleted() {
final String valueStr = "2";
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -2292,7 +2292,7 @@ public class ExpressionServiceTest extends BaseTestCase {
@Override
protected void handleCompleted() {
final String valueStr = "{...}";
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -2312,7 +2312,7 @@ public class ExpressionServiceTest extends BaseTestCase {
@Override
protected void handleCompleted() {
final String valueStr = "{...}";
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(valueStr)) {
wait.waitFinished();
@@ -2361,7 +2361,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 2) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -2378,7 +2378,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(firstValue)) {
wait.waitFinished();
@@ -2397,7 +2397,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
wait.setReturnInfo(getData().getFormattedValue());
@@ -2425,7 +2425,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 1) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -2438,7 +2438,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(firstValue)) {
wait.waitFinished();
@@ -2473,7 +2473,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 2) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -2490,7 +2490,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(secondValue)) {
wait.waitFinished();
@@ -2509,7 +2509,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (!getData().getFormattedValue().equals(pointerValue)) {
// The value should have changed
@@ -2540,7 +2540,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().length != 1) {
wait.waitFinished(new Status(IStatus.ERROR, TestsPlugin.PLUGIN_ID,
@@ -2553,7 +2553,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData().getFormattedValue().equals(thirdValue)) {
wait.waitFinished();
@@ -2617,7 +2617,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData() == expectedValues[finalIndex]) {
wait.waitFinished();
@@ -2674,7 +2674,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else if (getData() == expectedValues[finalIndex]) {
wait.waitFinished();
@@ -2729,7 +2729,7 @@ public class ExpressionServiceTest extends BaseTestCase {
fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
final String[] formatIds = getData();
@@ -2756,7 +2756,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (!getStatus().isOK()) {
+ if (!isSuccess()) {
wait.waitFinished(getStatus());
} else {
@@ -2831,7 +2831,7 @@ public class ExpressionServiceTest extends BaseTestCase {
.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
wait.setReturnInfo(getData());
}
@@ -2923,7 +2923,7 @@ public class ExpressionServiceTest extends BaseTestCase {
new DataRequestMonitor(fExpService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
wait.setReturnInfo(getData());
}
wait.waitFinished(getStatus());
diff --git a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/GDBProcessesTest.java b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/GDBProcessesTest.java
index 1f8fe3aba88..5f7c84c17f0 100644
--- a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/GDBProcessesTest.java
+++ b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/GDBProcessesTest.java
@@ -95,7 +95,7 @@ public class GDBProcessesTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -144,7 +144,7 @@ public class GDBProcessesTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
diff --git a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIBreakpointsTest.java b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIBreakpointsTest.java
index 86c819b56a4..a3aace6b4f3 100644
--- a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIBreakpointsTest.java
+++ b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIBreakpointsTest.java
@@ -346,7 +346,7 @@ public class MIBreakpointsTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
diff --git a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIDisassemblyTest.java b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIDisassemblyTest.java
index f9ecaccff59..ffd1a3b05f0 100644
--- a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIDisassemblyTest.java
+++ b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIDisassemblyTest.java
@@ -145,7 +145,7 @@ public class MIDisassemblyTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -196,7 +196,7 @@ public class MIDisassemblyTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -237,7 +237,7 @@ public class MIDisassemblyTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -277,7 +277,7 @@ public class MIDisassemblyTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -318,7 +318,7 @@ public class MIDisassemblyTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
diff --git a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIMemoryTest.java b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIMemoryTest.java
index 31632a7e2c2..159abb73c8f 100644
--- a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIMemoryTest.java
+++ b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIMemoryTest.java
@@ -213,7 +213,7 @@ public class MIMemoryTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -265,7 +265,7 @@ public class MIMemoryTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -307,7 +307,7 @@ public class MIMemoryTest extends BaseTestCase {
new DataRequestMonitor(fSession.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
result[(int) offset] = getData()[0];
}
fWait.waitFinished(getStatus());
diff --git a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIRegistersTest.java b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIRegistersTest.java
index d2006049a4a..1c579cecea2 100644
--- a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIRegistersTest.java
+++ b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIRegistersTest.java
@@ -111,7 +111,7 @@ public class MIRegistersTest extends BaseTestCase {
new DataRequestMonitor(fRegService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
@@ -148,7 +148,7 @@ public class MIRegistersTest extends BaseTestCase {
new DataRequestMonitor(fRegService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
@@ -228,7 +228,7 @@ public class MIRegistersTest extends BaseTestCase {
new DataRequestMonitor(fRegService.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
diff --git a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIRunControlTest.java b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIRunControlTest.java
index 46405971cd8..92df99a53bd 100644
--- a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIRunControlTest.java
+++ b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/MIRunControlTest.java
@@ -125,7 +125,7 @@ public class MIRunControlTest extends BaseTestCase {
new DataRequestMonitor(fRunCtrl.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -177,7 +177,7 @@ public class MIRunControlTest extends BaseTestCase {
new DataRequestMonitor(fRunCtrl.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -249,7 +249,7 @@ public class MIRunControlTest extends BaseTestCase {
new DataRequestMonitor(fRunCtrl.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -290,7 +290,7 @@ public class MIRunControlTest extends BaseTestCase {
new DataRequestMonitor(fRunCtrl.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -339,7 +339,7 @@ public class MIRunControlTest extends BaseTestCase {
new DataRequestMonitor(fRunCtrl.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -375,7 +375,7 @@ public class MIRunControlTest extends BaseTestCase {
new DataRequestMonitor(fRunCtrl.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -412,7 +412,7 @@ public class MIRunControlTest extends BaseTestCase {
new DataRequestMonitor(fRunCtrl.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
fWait.setReturnInfo(getData());
}
fWait.waitFinished(getStatus());
@@ -593,7 +593,7 @@ public class MIRunControlTest extends BaseTestCase {
// new DataRequestMonitor(fRunCtrl.getExecutor(), null) {
// @Override
// protected void handleCompleted() {
-// if (getStatus().isOK()) {
+// if (isSuccess()) {
// assert true;
// fWait.setReturnInfo(getData());
// }
@@ -618,7 +618,7 @@ public class MIRunControlTest extends BaseTestCase {
// new DataRequestMonitor(fRunCtrl.getExecutor(), null) {
// @Override
// protected void handleCompleted() {
-// if (getStatus().isOK()) {
+// if (isSuccess()) {
// assert true;
// fWait.setReturnInfo(getData());
// }
diff --git a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/framework/SyncUtil.java b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/framework/SyncUtil.java
index 006d6e9df81..147b3983769 100644
--- a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/framework/SyncUtil.java
+++ b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/framework/SyncUtil.java
@@ -160,7 +160,7 @@ public class SyncUtil {
new DataRequestMonitor(fRunControl.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
wait.setReturnInfo(getData());
}
@@ -187,7 +187,7 @@ public class SyncUtil {
new DataRequestMonitor(fRunControl.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
wait.setReturnInfo(getData());
}
wait.waitFinished(getStatus());
@@ -219,7 +219,7 @@ public class SyncUtil {
new DataRequestMonitor(fRunControl.getExecutor(), null) {
@Override
protected void handleCompleted() {
- if (getStatus().isOK()) {
+ if (isSuccess()) {
wait.setReturnInfo(getData());
}
@@ -274,7 +274,7 @@ public class SyncUtil {
protected void execute(final DataRequestMonitor rm) {
fStack.getFrames(execCtx, new DataRequestMonitor(fSession.getExecutor(), rm) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
if (getData().length > level) {
rm.setData(getData()[level]);
} else {
diff --git a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/launching/LaunchSequence.java b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/launching/LaunchSequence.java
index 378d6e913fe..f8e52ac6fc2 100644
--- a/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/launching/LaunchSequence.java
+++ b/plugins/org.eclipse.dd.tests.gdb/src/org/eclipse/dd/tests/gdb/launching/LaunchSequence.java
@@ -150,14 +150,14 @@ public class LaunchSequence extends Sequence {
new MIBreakInsert(fCommandControl.getGDBDMContext(), true, false, null, 0, fStopSymbol, 0),
new DataRequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// After the break-insert is done, execute the -exec-run command.
fCommandControl.queueCommand(
new MIExecRun(fCommandControl.getGDBDMContext(), new String[0]),
new DataRequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
// Note : Do we not need to do something with the original requestMonitor?
// Do nothing. Execution was resumed and the EntryPointHitEventListener
// will resume execution
@@ -206,7 +206,7 @@ public class LaunchSequence extends Sequence {
final MIBreakpoints bpService = new MIBreakpoints(fSession);
bpService.initialize(new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
requestMonitor.done();
}
});
@@ -218,7 +218,7 @@ public class LaunchSequence extends Sequence {
final MIBreakpointsManager bpmService = new MIBreakpointsManager(fSession, CDebugCorePlugin.PLUGIN_ID);
bpmService.initialize(new RequestMonitor(getExecutor(), requestMonitor) {
@Override
- protected void handleOK() {
+ protected void handleSuccess() {
bpmService.startTrackingBreakpoints(fCommandControl.getGDBDMContext(), requestMonitor);
}
});