Package org.eclipse.core.resources

Examples of org.eclipse.core.resources.IProjectNature


            return null;
        }

        try {
            if (project.isOpen()) {
                IProjectNature nature = project.getNature(JavaCore.NATURE_ID);
                if (nature instanceof IJavaProject) {
                    IJavaProject javaProject = (IJavaProject) nature;
                    return new JavaProjectModulesManager(javaProject);
                }
            }
View Full Code Here


    IScriptProject scriptProject = element.getScriptProject();
    if (scriptProject != null) {
      IProject project = scriptProject.getProject();
      if (project != null) {
        try {
          IProjectNature nature = project.getNature(PHPNature.ID);
          if (nature != null)
            return true;
        } catch (CoreException e) {
        }
      }
View Full Code Here

  {
    super.create(project, commandLine);

    // for some reason, when creating a dltk ruby project, the dltk script
    // builder is not added to the .project, so here we force it to be added.
    IProjectNature nature = project.getNature(RubyNature.NATURE_ID);
    nature.configure();

    IScriptProject scriptProject = DLTKCore.create(project);
    scriptProject.makeConsistent(null);
    scriptProject.save(null, false);
  }
View Full Code Here

   
    if (super.isValid(sourceModule, offset, requestor)) {
      try {
       
        IProjectNature nature = sourceModule.getScriptProject().getProject().getNature(SymfonyNature.NATURE_ID);
       
        // wrong nature
        if(!(nature instanceof SymfonyNature)) {
          return false
        }
View Full Code Here

        try {

            if (goal.getContext() instanceof ISourceModuleContext) {
              ISourceModuleContext context = (ISourceModuleContext) goal.getContext();
              IProjectNature nature = context.getSourceModule().getScriptProject().getProject().getNature(SymfonyNature.NATURE_ID);
              if(!(nature instanceof SymfonyNature)) {
          return null;
        }
            } else {
              return null;
View Full Code Here

    if (super.isValid(sourceModule, offset, requestor))
    {

      try {
        IProjectNature nature;
        nature = sourceModule.getScriptProject().getProject().getNature(SymfonyNature.NATURE_ID);

        // wrong nature
        if(!(nature instanceof SymfonyNature)) {
          return false;
View Full Code Here

  @Override
  public IBuildParticipant createBuildParticipant(IScriptProject project)
      throws CoreException {
   
    IProjectNature nature = project.getProject().getNature(SymfonyNature.NATURE_ID);
     
   
    if (nature instanceof SymfonyNature) {     
      return new SymfonyBuildParticipant();     
    }
View Full Code Here

        IProject[] projects = root.getRoot().getProjects();

        int numProjectsWithNature = 0;
        for( int i =0; i < projects.length; i++) {
            IProject project = projects[i];
            IProjectNature nature = null;
            try {
                nature = project.getNature(NakedObjectsCore.NATURE_ID);
                if (nature != null) {
                    numProjectsWithNature++;
                }
View Full Code Here

        @SuppressWarnings("unused")
        int selectedApplication = -1;
        for( int i =0; i < projects.length; i++) {
            IProject project = projects[i];
            if (projectsWithNature) {
                IProjectNature nature = null;
                try {
                    nature = project.getNature(NakedObjectsCore.NATURE_ID);
                } catch (CoreException e1) {
                    // ignore
                }
View Full Code Here

  /**
   * Return the SketchProject associated with the given IProject, or null
   * if the project is not associated with a SketchProject.
   */
  public static SketchProject forProject(IProject project) {
    IProjectNature nature = null;
    try{
      nature = project.getNature(NATURE_ID);
    } catch (CoreException e){
      return null;
    }
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.