/** * Main for cde. * * @param aMerger the a merger * @param aProgressMonitor the a progress monitor * @param aError the a error * @param inputFile the input file * @param outputDirectory the output directory * @param tds the tds * @param aCas the a cas * @throws IOException Signals that an I/O exception has occurred. */ public void mainForCde(IMerge aMerger, IProgressMonitor aProgressMonitor, IError aError, String inputFile, String outputDirectory, TypeDescription[] tds, CASImpl aCas) throws IOException { mainForCde(aMerger, aProgressMonitor, aError, inputFile, outputDirectory, tds, aCas, "", false, null); }
@Override public void run(IProgressMonitor progressMonitor) { try { jg.mainForCde(new MergerImpl(), new JCasGenProgressMonitor(progressMonitor), jCasGenThrower, inputFile, outputDirectory, types, (CASImpl) getCurrentView(), getProject().getLocation().toString(), // https://issues.apache.org/jira/browse/UIMA-5715 // getLocationURI().getPath(), // on linux/mars, was returning /default/project.name etc limitJCasGenToProjectScope, mergedTypesAddingFeatures); } catch (IOException e) { Utility.popMessage(Messages.getString("MultiPageEditor.25"), //$NON-NLS-1$ Messages.getString("MultiPageEditor.26") //$NON-NLS-1$ + getMessagesToRootCause(e), MessageDialog.ERROR); } } };