Examples of resolveImports()


Examples of org.apache.uima.resource.metadata.TypeSystemDescription.resolveImports()

      cas = CasCreationUtils.createCas((AnalysisEngineDescription) descriptor);
      styleMapFile = getStyleMapFile((AnalysisEngineDescription) descriptor, descriptorFile
              .getPath());
    } else if (descriptor instanceof TypeSystemDescription) {
      TypeSystemDescription tsDesc = (TypeSystemDescription) descriptor;
      tsDesc.resolveImports();
      cas = CasCreationUtils.createCas(tsDesc, null, new FsIndexDescription[0]);
      styleMapFile = getStyleMapFile((TypeSystemDescription) descriptor, descriptorFile.getPath());
    } else {
      displayError("Invalid Descriptor File \"" + descriptorFile.getPath() + "\""
              + "Must be either an AnalysisEngine or TypeSystem descriptor.");
View Full Code Here

Examples of org.eclipse.wb.internal.core.utils.ast.AstEditor.resolveImports()

        // regular class
        String methodHeader = "public " + methodSignature;
        final List<String> lines = Lists.newArrayList("return null; // FIXME");
        methodDeclaration = editor.addMethodDeclaration(methodHeader, lines, bodyDeclarationTarget);
      }
      editor.resolveImports(methodDeclaration);
      editor.saveChanges(true);
      // create file from templates
      IFile file =
          createFileFromTemplate(
              packageFragment,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.