Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IProjectNature


            final IProject[] projects = ResourcesPlugin.getWorkspace().getRoot()
                    .getProjects();
            for (final IProject p : projects) {
                if (p.isAccessible()) {
                    IProjectNature n = null;
                    try {
                        n = p.getNature(ErlangCore.NATURE_ID);
                        if (n != null) {
                            ps.add(p);
                        }
View Full Code Here


            final IProject[] projects = ResourcesPlugin.getWorkspace().getRoot()
                    .getProjects();
            for (final IProject p : projects) {
                if (p.isAccessible()) {
                    IProjectNature n = null;
                    try {
                        n = p.getNature(ErlangCore.NATURE_ID);
                        if (n != null) {
                            ps.add(p.getName());
                        }
View Full Code Here

            return;
        } else {
            dependendedProjects.add(projectPath);
        }

        IProjectNature nature = rProject.getNature(JavaCore.NATURE_ID);
        if (nature != null) {
            IJavaProject javaProject = (IJavaProject) nature;
            IPath output = javaProject.getOutputLocation();
            String substitutedOutput = PathUtils.substituteProjectPath(rProject, output
                            .toOSString());
View Full Code Here

  public IFile findTypeSystem(IFile casFile) {
    IPath location = casFile.getLocation();
    IProject project = casFile.getProject();

    try {
      IProjectNature nature = project.getNature(RutaNature.NATURE_ID);
      if (!(nature instanceof RutaNature)) {
        return null;
      }
    } catch (CoreException e) {
      return null;
View Full Code Here

        } catch (CoreException e) {
          RutaAddonsPlugin.error(e);
        }

        try {
          IProjectNature nature = each.getNature(RutaNature.NATURE_ID);
          if (nature != null) {
            List<IFolder> descriptorFolders = RutaProjectUtils.getDescriptorFolders(each);
            if (descriptorFolders != null && !descriptorFolders.isEmpty()) {
              IFolder descFolder = descriptorFolders.get(0);
              RutaProjectCreationWizard.copyDescriptors(descFolder);
View Full Code Here

    if(typeSystemLocation != null && !typeSystemLocation.getName().equals("TypeSystem.xml")) {
      // do not override the properties!
      return null;
    }
    try {
      IProjectNature nature = project.getNature(RutaNature.NATURE_ID);
      if (!(nature instanceof RutaNature)) {
        return null;
      }
    } catch (CoreException e) {
      return null;
View Full Code Here

      // do not override the properties!
      return null;
    }
   
    try {
      IProjectNature nature = project.getNature(RutaNature.NATURE_ID);
      if (!(nature instanceof RutaNature)) {
        return null;
      }
    } catch (CoreException e) {
      return null;
View Full Code Here

    if(!proj.isOpen()) {
      return result;
    }
    IProject[] referencedProjects = proj.getReferencedProjects();
    result.addAll(Arrays.asList(referencedProjects));
    IProjectNature nature = proj.getNature(JAVANATURE);
    if (nature != null) {
      JavaProject javaProject = (JavaProject) JavaCore.create(proj);
      IClasspathEntry[] resolvedClasspath = javaProject.getResolvedClasspath();
      for (IClasspathEntry eachCPE : resolvedClasspath) {
        if (eachCPE.getEntryKind() == IClasspathEntry.CPE_PROJECT) {
View Full Code Here

  public static List<IFolder> getDescriptorFolders(IProject proj) throws CoreException {
    List<IFolder> result = new ArrayList<IFolder>();
    if(!proj.isOpen()) {
      return result;
    }
    IProjectNature javaNature = proj.getNature(JAVANATURE);
    if (javaNature != null) {
      IJavaProject javaProject = JavaCore.create(proj);
      IPath readOutputLocation = javaProject.readOutputLocation();
      IFolder folder = ResourcesPlugin.getWorkspace().getRoot().getFolder(readOutputLocation);
      result.add(folder);
    }
    IProjectNature pearNature = proj.getNature("org.apache.uima.pear.UimaNature");
    if (pearNature != null) {
      IFolder findElement = proj.getFolder("desc");
      if (findElement != null) {
        result.add((IFolder) findElement);
      }
    }
    IProjectNature rutaNature = proj.getNature(RutaNature.NATURE_ID);
    if (rutaNature != null) {
      IFolder findElement = proj.getFolder(getDefaultDescriptorLocation());
      if (findElement != null) {
        result.add((IFolder) findElement);
      }
View Full Code Here

  private static Collection<String> getDependencies(IProject project) throws CoreException {
    Collection<String> result = new TreeSet<String>();
    IProject[] referencedProjects = project.getReferencedProjects();
    for (IProject eachProject : referencedProjects) {
      extendClasspathWithProject(result, eachProject, new HashSet<IProject>());
      IProjectNature nature = eachProject.getNature(RutaNature.NATURE_ID);
      if (nature != null) {
        result.addAll(getDependencies(eachProject));
      }
    }
    return result;
View Full Code Here

TOP

Related Classes of org.eclipse.core.resources.IProjectNature

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.