public void loadAEDescriptor(File descriptorFile) {
setWaitCursor();
if (descriptorFile.exists() && descriptorFile.isFile()) {
this.annotOpenDir = descriptorFile.getParentFile();
}
Timer time = new Timer();
time.start();
boolean success = false;
try {
success = setupAE(descriptorFile);
} catch (Exception e) {
handleException(e);
} catch (NoClassDefFoundError e) {
// We don't want to catch all errors, but some are ok.
handleException(e);
}
time.stop();
addRecentDescFile(descriptorFile);
if (!success) {
setStatusbarMessage("Failed to load AE specifier: " + descriptorFile.getName());
this.reRunMenu.setText("Run AE");
setAEStatusMessage();
resetCursor();
return;
}
if (this.ae != null) {
this.aeDescriptorFile = descriptorFile;
String annotName = this.ae.getAnalysisEngineMetaData().getName();
this.reRunMenu.setText("Run " + annotName);
this.reRunMenu.setEnabled(true);
this.runOnCasMenuItem.setText("Run " + annotName + " on CAS");
setAEStatusMessage();
setStatusbarMessage("Done loading AE " + annotName + " in " + time.getTimeSpan() + ".");
}
// Check for CAS multiplier
// TODO: properly handle CAS multiplication
if (this.ae != null) {
if (this.ae.getAnalysisEngineMetaData().getOperationalProperties().getOutputsNewCASes()) {