Package org.eclipse.jdt.internal.core

Examples of org.eclipse.jdt.internal.core.CompilationUnit.becomeWorkingCopy()


   */
  public final ICompilationUnit newWorkingCopy(String name, IClasspathEntry[] classpath, IProblemRequestor problemRequestor, IProgressMonitor monitor) throws JavaModelException {
    ExternalJavaProject project = new ExternalJavaProject(classpath);
    IPackageFragment parent = ((PackageFragmentRoot) project.getPackageFragmentRoot(project.getProject())).getPackageFragment(CharOperation.NO_STRINGS);
    CompilationUnit result = new CompilationUnit((PackageFragment) parent, name, this);
    result.becomeWorkingCopy(problemRequestor, monitor);
    return result;
  }

  /**
   * Returns a new working copy with the given name using this working copy owner to
View Full Code Here


   */
  public final ICompilationUnit newWorkingCopy(String name, IClasspathEntry[] classpath, IProgressMonitor monitor) throws JavaModelException {
    ExternalJavaProject project = new ExternalJavaProject(classpath);
    IPackageFragment parent = ((PackageFragmentRoot) project.getPackageFragmentRoot(project.getProject())).getPackageFragment(CharOperation.NO_STRINGS);
    CompilationUnit result = new CompilationUnit((PackageFragment) parent, name, this);
    result.becomeWorkingCopy(getProblemRequestor(result), monitor);
    return result;
  }

}
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.