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

Examples of org.aspectj.org.eclipse.jdt.core.ClasspathContainerInitializer


        case NO_LOCAL_CONTENTS :
          return Messages.bind(Messages.status_noLocalContents, getPath().toString());

        case CP_CONTAINER_PATH_UNBOUND:
          IJavaProject javaProject = (IJavaProject)elements[0];
          ClasspathContainerInitializer initializer = JavaCore.getClasspathContainerInitializer(this.path.segment(0));
          String description = null;
          if (initializer != null) description = initializer.getDescription(this.path, javaProject);
          if (description == null) description = path.makeRelative().toString();
          return Messages.bind(Messages.classpath_unboundContainerPath, new String[] {description, javaProject.getElementName()});

        case INVALID_CP_CONTAINER_ENTRY:
          javaProject = (IJavaProject)elements[0];
          IClasspathContainer container = null;
          description = null;
          try {
            container = JavaCore.getClasspathContainer(path, javaProject);
          } catch(JavaModelException e){
            // project doesn't exist: ignore
          }
          if (container == null) {
             initializer = JavaCore.getClasspathContainerInitializer(path.segment(0));
            if (initializer != null) description = initializer.getDescription(path, javaProject);
          } else {
            description = container.getDescription();
          }
          if (description == null) description = path.makeRelative().toString();
          return Messages.bind(Messages.classpath_invalidContainer, new String[] {description, javaProject.getElementName()});
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.core.ClasspathContainerInitializer

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.