Package org.aspectj.org.eclipse.jdt.internal.core

Examples of org.aspectj.org.eclipse.jdt.internal.core.CompilationUnit


    try {
      IPackageBinding packageBinding = getPackage();
      if (packageBinding != null) {
        final IJavaElement javaElement = packageBinding.getJavaElement();
        if (javaElement!= null && javaElement.getElementType() == IJavaElement.PACKAGE_FRAGMENT) {
          return new CompilationUnit((PackageFragment) javaElement, this.getInternalName(), this.resolver.getWorkingCopyOwner()).getWorkingCopy(this.resolver.getWorkingCopyOwner(), null);
        }
      }
    } catch (JavaModelException e) {
      //ignore
    }
View Full Code Here


   *   if the given requestor is not the same as the current working copy owner one.
   */
  public final ICompilationUnit newWorkingCopy(String name, IClasspathEntry[] classpath, IProblemRequestor problemRequestor, IProgressMonitor monitor) throws JavaModelException {
    ExternalJavaProject project = new ExternalJavaProject(classpath);
    IPackageFragment parent = project.getPackageFragmentRoot(Path.EMPTY).getPackageFragment(IPackageFragment.DEFAULT_PACKAGE_NAME);
    CompilationUnit result = new CompilationUnit((PackageFragment) parent, name, this);
    result.becomeWorkingCopy(problemRequestor, monitor);
    return result;
  }
View Full Code Here

   * @since 3.3
   */
  public final ICompilationUnit newWorkingCopy(String name, IClasspathEntry[] classpath, IProgressMonitor monitor) throws JavaModelException {
    ExternalJavaProject project = new ExternalJavaProject(classpath);
    IPackageFragment parent = project.getPackageFragmentRoot(Path.EMPTY).getPackageFragment(IPackageFragment.DEFAULT_PACKAGE_NAME);
    CompilationUnit result = new CompilationUnit((PackageFragment) parent, name, this);
    result.becomeWorkingCopy(getProblemRequestor(result), monitor);
    return result;
  }
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.core.CompilationUnit

Copyright © 2018 www.massapicom. 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.