/** * Creates the resource manager. * * @return the resource manager */ public ResourceManager createResourceManager() { ResourceManager resourceManager = UIMAFramework.newDefaultResourceManager(); if (classPath != null && classPath.trim().length() > 0) { try { resourceManager.setExtensionClassPath(this.getClass().getClassLoader(), classPath, true); } catch (MalformedURLException e1) { error.newError(IError.ERROR, getString("Internal Error", null), e1); } } else { resourceManager.setExtensionClassLoader(this.getClass().getClassLoader(), true); } return resourceManager; }
.createCompilationUnitForContents(sourceContents); if (targetFile.exists()) { progressMonitor.subTask(jg.getString("updatingTarget", new Object[] { targetClassName })); jMerger.setTargetCompilationUnit(jMerger.createCompilationUnitForURI(targetPath)); } catch (NullPointerException e) { jg.error.newError(IError.ERROR, jg.getString("nullPtr", new Object[] { targetClassName }), e); progressMonitor.subTask(jg.getString("creatingTarget", new Object[] { targetClassName })); (new File(targetContainer)).mkdirs(); FileWriter fw = new FileWriter(targetPath);
jg.getString("pkgMissing", new Object[] {td.getName()}), null); stringBuilder.append("\nimport java.lang.invoke.CallSite;\nimport java.lang.invoke.MethodHandle;\n\nimport org.apache.uima.cas.impl.CASImpl;\nimport org.apache.uima.cas.impl.TypeImpl;\nimport org.apache.uima.cas.impl.TypeSystemImpl;\nimport org.apache.uima.jcas.JCas; \nimport org.apache.uima.jcas.JCasRegistry;\n\n\n"); for(Iterator i=jg.collectImports(td, false).iterator(); i.hasNext();) { jg.getString("reservedNameUsed", new Object[] { featName, td.getName() }), null); jg.getString("reservedNameUsed", new Object[] { featName, td.getName() }), null);
error.newError(IError.ERROR, getString("sourceArgNeedsDirectory", new Object[] { inputFile }), null); error.newError(IError.ERROR, getString("fileNotFound", new Object[] { inputFile }), null); File file = new File(inputFile); if (!file.exists()) { error.newError(IError.ERROR, getString("fileNotFound", new Object[] { inputFile }), null); error.newError(IError.ERROR, getString("sourceArgNeedsDirectory", new Object[] { inputFile }), null); progressMonitor.subTask(getString("ReadingDescriptorAndCreatingTypes", new Object[] { inputFile })); typeSystemDescription = mergeTypeSystemImports(((TypeSystemDescription) specifier)); else { error.newError(IError.ERROR, getString("fileDoesntParse", new Object[] { inputFile }), null); error.newError(IError.WARN, getString("typesHaveFeaturesAdded", new Object[] { makeMergeMessage(mergedTypesAddingFeatures) }), null); fsIndexDescription); } catch (ResourceInitializationException e) { error.newError(IError.WARN, getString("resourceInitializationException", new Object[] { e.getLocalizedMessage() }), e); e.printStackTrace(); } catch (InvalidXMLException e) {
sb.append(" ").append(p).append('\n'); error.newError(IError.ERROR, getString("limitingButTypeWasExtended", new Object[] { td.getName(), sb.toString()}), null); continue;