for (TextRulerLearnerController controller : TextRulerController.getAvailableControllers())
controller.setEnabled(false);
// enable the checked ones...
for (Object i : algs) {
TextRulerLearnerController c = ((TextRulerLearnerController) i);
c.setEnabled(true);
IViewPart resultView;
if ((resultView = getView(TextRulerResultsView.ID, c.getID())) == null) {
try {
IViewPart view = PlatformUI
.getWorkbench()
.getActiveWorkbenchWindow()
.getActivePage()
.showView(TextRulerResultsView.ID, ((TextRulerLearnerController) i).getID(),
IWorkbenchPage.VIEW_CREATE);
((TextRulerResultsView) view).setViewTitle(c.getName() + " - Results");
} catch (PartInitException e) {
TextRulerPlugin.error(e);
}
} else {
((TextRulerResultsView) resultView).setViewTitle(c.getName() + " - Results");
}
}
if (TextRulerController.enabledAlgorithmsCount() > 0) {
TextRulerController.start(inputDir, additionalDir, preProcTMFile, slotNames, filters, this,