Examples of makeConsistent()


Examples of 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.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.jdt.core.ICompilationUnit.makeConsistent()

        try {
          List<ICompletionProposal> proposals = new ArrayList<ICompletionProposal>();

          int invocationOffset = context.getInvocationOffset();
          IJavaElement element = cu.getElementAt(invocationOffset);
          cu.makeConsistent(monitor);

          // check for type/method/field specific annotation
          // proposal computers
          if (element instanceof SourceRefElement
              && ((SourceRefElement) element).getElementInfo() instanceof AnnotatableInfo) {
View Full Code Here

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

      if (project.getDescription().getName().equals(name)){
        //prepare project for tests
        project.refreshLocal(IResource.DEPTH_INFINITE, null);
        IJavaProject result = JavaCore.create(project);
        result.open(null);
        result.makeConsistent(null);
        assert result.isOpen();
        assert result.isConsistent();
        return result;
      }
    }
View Full Code Here

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

      if (output == null){
        output = BuildPathsBlock.getDefaultOutputLocation(javaProject);
      }
      javaProject.setOutputLocation(output, null);
    }
    javaProject.makeConsistent(null);
    javaProject.save(null, false);
  }

  /**
   * Creates or updates the projects dependencies on other projects.
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.