Package org.eclipse.jdt.internal.core

Examples of org.eclipse.jdt.internal.core.PackageFragment


  public static String getNewDestinationFullyQualifiedName( final IResource resource, final String newDestination ) {
    // TODO Auto-generated method stub
    String projectRelativeDestination = "F/" + resource.getProject().getName();
    IJavaElement e = JavaCore.create( resource.getProject().getFolder( newDestination.replaceFirst( projectRelativeDestination, "" ) ) );
    if ( e != null && e instanceof PackageFragment ) {
      PackageFragment p = (PackageFragment) e;
      return p.getElementName() + "." + resource.getName().replaceAll( ".java", "" );
    }
    else if ( e != null && e instanceof IPackageFragmentRoot ) {
      return resource.getName();
    }
    else {
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.core.PackageFragment

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.