Package org.eclipse.jdt.core

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


      try {

        IJavaProject project = JavaCore.create(Util.getProject(projectText));
        IPath moduleXmlPath = new Path(moduleText);
        root = project.findPackageFragmentRoot(new Path("/").append(projectText).append(moduleXmlPath.segment(0)));//$NON-NLS-1$

      } catch (JavaModelException e) {
        Activator.logException(e);
      }
    }
View Full Code Here


      try {

        IJavaProject project = JavaCore.create(Util.getProject(projectText));
        IPath moduleXmlPath = new Path(moduleText);
        root = project.findPackageFragmentRoot(new Path("/").append(projectText).append(moduleXmlPath.segment(0)));//$NON-NLS-1$

      } catch (JavaModelException e) {
        Activator.logException(e);
      }
    }
View Full Code Here

      try {

        IJavaProject project = JavaCore.create(Util.getProject(projectText));
        IPath moduleXmlPath = new Path(moduleText);
        root = project.findPackageFragmentRoot(new Path("/").append(projectText).append(moduleXmlPath.segment(0)));//$NON-NLS-1$

      } catch (JavaModelException e) {
        Activator.logException(e);
      }
    }
View Full Code Here

      try {

        IJavaProject project = JavaCore.create(Util.getProject(projectText));
        IPath moduleXmlPath = new Path(moduleText);
        root = project.findPackageFragmentRoot(new Path("/").append(projectText).append(moduleXmlPath.segment(0)));//$NON-NLS-1$

      } catch (JavaModelException e) {
        Activator.logException(e);
      }
    }
View Full Code Here

      try {

        IJavaProject project = JavaCore.create(Util.getProject(projectText));
        IPath moduleXmlPath = new Path(moduleText);
        root = project.findPackageFragmentRoot(new Path("/").append(projectText).append(moduleXmlPath.segment(0)));//$NON-NLS-1$

      } catch (JavaModelException e) {
        Activator.logException(e);
      }
    }
View Full Code Here

          for (int i = 0; i < projects.length; i++) {
            try {
              if (projects[i].isAccessible() && projects[i].hasNature(JavaCore.NATURE_ID)) {
                IJavaProject javaProject = JavaCore.create(projects[i]);
                if (javaProject.exists()) {
                  IPackageFragmentRoot root = javaProject.findPackageFragmentRoot(basePath);
                  if (root != null) {
                    return createJavaElementHyperlink(javaProject, elementName, region);
                  }
                }
              }
View Full Code Here

          for (int i = 0; i < projects.length; i++) {
            try {
              if (projects[i].isAccessible() && projects[i].hasNature(JavaCore.NATURE_ID)) {
                IJavaProject javaProject = JavaCore.create(projects[i]);
                if (javaProject.exists()) {
                  IPackageFragmentRoot root = javaProject.findPackageFragmentRoot(basePath);
                  if (root != null) {
                    return createJavaElementHyperlink(javaProject, elementName, region);
                  }
                }
              }
View Full Code Here

          for (int i = 0; i < projects.length; i++) {
            try {
              if (projects[i].isAccessible() && projects[i].hasNature(JavaCore.NATURE_ID)) {
                IJavaProject javaProject = JavaCore.create(projects[i]);
                if (javaProject.exists()) {
                  IPackageFragmentRoot root = javaProject.findPackageFragmentRoot(basePath);
                  if (root != null) {
                    // TLDs don't reference method names
                    IType type = javaProject.findType(elementName);
                    if (type != null) {
                      return getHoverInfo(new IJavaElement[]{type});
View Full Code Here

   */
  private boolean isOnClasspath(IPackageFragmentRoot root)
      throws JavaModelException {
    IPath path = root.getPath();
    IJavaProject project = root.getJavaProject();
    return project.findPackageFragmentRoot(path) != null;
  }

  private void processPackageFragment(ITypeVisitor visitor,
      IPackageFragment fragment, IProgressMonitor monitor)
      throws JavaModelException {
View Full Code Here

   */
  private boolean isOnClasspath(IPackageFragmentRoot root)
      throws JavaModelException {
    IPath path = root.getPath();
    IJavaProject project = root.getJavaProject();
    return project.findPackageFragmentRoot(path) != null;
  }

  private void processPackageFragment(ITypeVisitor visitor,
      IPackageFragment fragment, IProgressMonitor monitor)
      throws JavaModelException {
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.