putValue(Action.SMALL_ICON, UISupport.createImageIcon("/run.gif"));
putValue(Action.SHORT_DESCRIPTION, "Runs Queries on last request");
}
public void actionPerformed(ActionEvent e) {
MockResult result = getMockOperation().getLastMockResult();
if (result != null) {
try {
UISupport.showInfoMessage("Selected ["
+ selectMockResponse(result.getMockRequest(), result).getName() + "]");
} catch (DispatchException e1) {
UISupport.showErrorMessage(e1);
}
} else {
UISupport.showErrorMessage("Missing request to query");