Issue #1708 Clean up error handling for scripts with errors. Remove some verbose logging.

Change-Id: Ic05b985cf6cb79299fb55dc9eee4b3205ed3fb27

Former-commit-id: 36be1c5850 [formerly 36be1c5850 [formerly cb612d51394a261d12826d6d3ea9553f399ed2a9]]
Former-commit-id: c35e06d82c
Former-commit-id: 5bd0dbcfca
This commit is contained in:
Ron Anderson 2013-02-27 12:34:40 -06:00
parent 36f44524d0
commit d75331a5c9
3 changed files with 14 additions and 10 deletions

View file

@ -688,8 +688,8 @@ public class ReferenceSetManager implements IReferenceSetManager,
public void setActiveRefSet(final ReferenceData refData) {
refData.getGrid(); // force it to a grid
statusHandler.handle(Priority.VERBOSE, "PrevActiveSet = "
+ activeRefSet.getId());
// statusHandler.handle(Priority.VERBOSE, "PrevActiveSet = "
// + activeRefSet.getId());
// turn on wait cursor
setCursor(0);
@ -714,8 +714,8 @@ public class ReferenceSetManager implements IReferenceSetManager,
// turn off wait cursor
setCursor(1);
statusHandler.handle(Priority.VERBOSE,
"NewActiveSet = " + activeRefSet.getId());
// statusHandler.handle(Priority.VERBOSE,
// "NewActiveSet = " + activeRefSet.getId());
}
/*

View file

@ -869,12 +869,15 @@ public class DefineRefSetDialog extends CaveJFACEDialog implements
@Override
public void jobFinished(final ReferenceData result) {
VizApp.runAsync(new Runnable() {
@Override
public void run() {
activeDisplay.setText(s);
refSetMgr
.incomingRefSet(result, RefSetMode.USE_CURRENT);
addToHistory(s);
queryField.setText("");
if (result != null) {
activeDisplay.setText(s);
refSetMgr.incomingRefSet(result,
RefSetMode.USE_CURRENT);
addToHistory(s);
queryField.setText("");
}
};
});
}

View file

@ -77,7 +77,8 @@ public class QueryScriptExecutor implements
try {
retVal = (ReferenceData) script.execute(methodName, args);
} catch (JepException e) {
statusHandler.handle(Priority.ERROR, "Unable to execute script", e);
statusHandler.handle(Priority.ERROR,
"Error evaluating edit area query: " + e.getMessage(), e);
}
return retVal;
}