Examples of reconcile()


Examples of com.google.refine.org.deri.reconcile.model.ReconciliationService.reconcile()

    verifyCorrectService(service2, service);
    //verify service is not initialized
    ReconciliationRequest request = new ReconciliationRequest("query", 10);
    String msg = "";
    try{
      service2.reconcile(request);
    }catch(RuntimeException e){
      msg = e.getMessage();
    }
    assertTrue(msg.equals("Model is not loaded"));
   
View Full Code Here

Examples of com.google.refine.org.deri.reconcile.model.ReconciliationService.reconcile()

    }
    assertTrue(msg.equals("Model is not loaded"));
   
    FileInputStream modelIn = new FileInputStream(new File(dir,id + ".ttl"));
    ReconciliationService service3 = registry.getService(id, modelIn);
    assertTrue(service3.reconcile(request).getResults().isEmpty());
  }

  private void verifyCorrectService(ReconciliationService service,ReconciliationService expected) throws JSONException {
    StringWriter w1 = new StringWriter();
    JSONWriter j1 = new JSONWriter(w1);
View Full Code Here

Examples of com.google.refine.org.deri.reconcile.sindice.SindiceService.reconcile()

    /*
     * testing
     */
    SindiceService service = new SindiceService(name, name, null, jsonUtil, new RdfUtilitiesImpl(), mockBroker, mockQueryEndpointFactory);
    request.setTypes(new String[] {"httphttp://xmlns.com/foaf/0.1/Person"});
    service.reconcile(request);
   
    /*
     * Verification
     */
    verify(mockBroker).getUrlsForSimpleTermSearch(query,null,null,DEFAULT_SEARCH_LIMIT,jsonUtil);
 
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.compiler.CompilationParticipant.reconcile()

            Util.log(exception, "Reconcile participant attempted to modify the buffer of the working copy being reconciled"); //$NON-NLS-1$
          } else
            Util.log(exception, "Exception occurred in reconcile participant"); //$NON-NLS-1$
        }
        public void run() throws Exception {
          participant.reconcile(context);
        }
      });
    }
  }
View Full Code Here

Examples of org.eclipse.ant.internal.ui.model.IAntModel.reconcile()

    List<Error> errors = super.validate(project, file, false, null);

    ProblemRequestor requestor = new ProblemRequestor();
    IAntModel model = AntUtils.getAntModel(project, file, requestor);
    model.reconcile();

    String filepath = ProjectUtils.getFilePath(project, file);

    List<IProblem> problems = requestor.getProblems();
    FileOffsets offsets = FileOffsets.compile(filepath);
View Full Code Here

Examples of org.eclipse.dltk.core.ISourceModule.reconcile()

        }
      };
      ISourceModule wc= input.getWorkingCopy(workingCopyOwner, null, new NullProgressMonitor());
      try {
        startTime= System.currentTimeMillis();
        wc.reconcile(true, wc.getOwner(), new NullProgressMonitor()) ; //  getCurrentASTLevel(), null, null);
       
        root= SharedASTProvider.getAST(wc, SharedASTProvider.WAIT_YES, null);
        endTime= System.currentTimeMillis();

      } finally {
View Full Code Here

Examples of org.eclipse.emf.codegen.ecore.genmodel.GenModel.reconcile()

      Resource resource = rs.getResource(URI
          .createURI("platform:/resource/org.eclipse.xtext/model/parsetree.genmodel"), true);
      GenModel genModel = (GenModel) resource.getContents().get(0);
      genModel.setForceOverwrite(true);
      genModel.setCanGenerate(true);
      genModel.reconcile();

      Generator generator = new Generator();
      generator.getAdapterFactoryDescriptorRegistry().addDescriptor(GenModelPackage.eNS_URI,
          new GeneratorAdapterFactory.Descriptor() {
            public GeneratorAdapterFactory createAdapterFactory() {
View Full Code Here

Examples of org.eclipse.handly.model.ISourceFile.reconcile()

                .getEditorInput());
        if (workingCopy != null) {
            SafeRunner.run(new ISafeRunnable() {
                @Override
                public void run() throws CoreException {
                    workingCopy.reconcile(force, mon);
                }

                @Override
                public void handleException(final Throwable exception) {
                }
View Full Code Here

Examples of org.eclipse.jdt.core.ICompilationUnit.reconcile()

        if (input instanceof ICompilationUnit) {
            workingCopy = (ICompilationUnit) input;
            // be in-sync with model
            // instead of using internal JavaModelUtil.reconcile(workingCopy);
            synchronized(workingCopy)  {
                workingCopy.reconcile(
                    ICompilationUnit.NO_AST,
                    false /* don't force problem detection */,
                    null /* use primary owner */,
                    null /* no progress monitor */);
            }
View Full Code Here

Examples of org.eclipse.jdt.core.ICompilationUnit.reconcile()

        try {
            WorkingCopyOwner owner = DefaultWorkingCopyOwner.PRIMARY;
            ICompilationUnit workingCopy = compilationUnit.getWorkingCopy(owner, null);
            IBuffer buffer = workingCopy.getBuffer();
            buffer.replace(position, length, newText);
            workingCopy.reconcile(ICompilationUnit.NO_AST, true, owner, null);
            compilationUnit.commitWorkingCopy(true, null);
        } finally {
            compilationUnit.discardWorkingCopy();
        }
    }
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.