Examples of makeConsistent()


Examples of org.aspectj.org.eclipse.jdt.core.ICompilationUnit.makeConsistent()

          try {
            IBuffer workingCopyBuffer = workingCopy.getBuffer();
            if (workingCopyBuffer == null) return;
            primaryBuffer.setContents(workingCopyBuffer.getCharacters());
            primaryBuffer.save(this.progressMonitor, this.force);
            primary.makeConsistent(this);
            hasSaved = true;
          } finally {
            if (!hasSaved){
              // restore original buffer contents since something went wrong
              primaryBuffer.setContents(primaryContents);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.ICompilationUnit.makeConsistent()

            }
          }
        } else {
          // for a primary working copy no need to set the content of the buffer again
          primaryBuffer.save(this.progressMonitor, this.force);
          primary.makeConsistent(this);
        }
      } else {
        // working copy on cu outside classpath OR resource doesn't exist yet
        String encoding = null;
        try {
View Full Code Here

Examples of org.eclipse.dltk.core.IScriptProject.makeConsistent()

    // builder is not added to the .project, so here we force it to be added.
    IProjectNature nature = project.getNature(RubyNature.NATURE_ID);
    nature.configure();

    IScriptProject scriptProject = DLTKCore.create(project);
    scriptProject.makeConsistent(null);
    scriptProject.save(null, false);
  }

  // that last block doesn't seem to flush the previous interpreter's
  // completions... must be some other way to do that.
View Full Code Here

Examples of org.eclipse.dltk.core.IScriptProject.makeConsistent()

          container.getExtraAttributes(),
          container.isExported());
      scriptProject.setRawBuildpath(buildpath, null);
    }

    scriptProject.makeConsistent(null);
    scriptProject.save(null, false);
  }

  @Override
  public List<Error> update(IProject project, CommandLine commandLine)
View Full Code Here

Examples of org.eclipse.dltk.core.IScriptProject.makeConsistent()

    }

    // always set the buildpath anyways, so that the user can correct the file.
    //if(status.isOK() && errors.isEmpty()){
      scriptProject.setRawBuildpath(entries, null);
      scriptProject.makeConsistent(null);
    //}

    if(errors.size() > 0){
      return errors;
    }
View Full Code Here

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

                                 */);
    workingCopy.getBuffer().setContents(source);
    // if (problemRequestor instanceof ProblemRequestor)
    // ((ProblemRequestor)
    // problemRequestor).initialize(source.toCharArray());
    workingCopy.makeConsistent(null/* no progress monitor */);
    return workingCopy;
  }

  public static void waitUntilIndexesReady() {
    ModelManager.getModelManager().getIndexManager().waitUntilReady();
View Full Code Here

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

    throws Exception
  {
    try{
      ISourceModule module = DltkUtils.getSourceModule(file);
      if (module != null){
        module.makeConsistent(new NullProgressMonitor());
      }
    }catch(IllegalArgumentException iae){
      // ignore
    }
  }
View Full Code Here

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

    throws Exception
  {
    IEditorInput input = new FileEditorInput(file);
    ISourceModule module = PHPUiPlugin.getEditorInputTypeRoot(input);
    if (module != null){
      module.makeConsistent(new NullProgressMonitor());
      // alternate to makeConsistent where moduleDecl can be obtained using
      // PHPSourceParserFactory.parse, like in SrcUpdateCommmand.
      //ISourceModuleInfoCache sourceModuleInfoCache = ModelManager
      //    .getModelManager().getSourceModuleInfoCache();
      //ISourceModuleInfo mifo = sourceModuleInfoCache.get(module);
View Full Code Here

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

  public void reconcileCompilationUnit() {
    ICompilationUnit cu = getCompilationUnit();
    if (cu != null) {
      try {
        synchronized(cu) {
          cu.makeConsistent(getProgressMonitor());
          cu.reconcile(ICompilationUnit.NO_AST, false, getWorkingCopyOwner(), getProgressMonitor());
        }
      }
      catch (JavaModelException e) {
        Logger.logException(e);
View Full Code Here

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

  public void reconcileCompilationUnit() {
    ICompilationUnit cu = getCompilationUnit();
    if (cu != null) {
      try {
        synchronized(cu) {
          cu.makeConsistent(getProgressMonitor());
          cu.reconcile(ICompilationUnit.NO_AST, false, getWorkingCopyOwner(), getProgressMonitor());
        }
      }
      catch (JavaModelException e) {
        Logger.logException(e);
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.