Interface IProjectNature

    • Method Detail

      • configure

        void configure()
                throws CoreException
        Configures this nature for its project. This is called by the workspace when natures are added to the project using IProject.setDescription and should not be called directly by clients. The nature extension id is added to the list of natures before this method is called, and need not be added here. Exceptions thrown by this method will be propagated back to the caller of IProject.setDescription, but the nature will remain in the project description.
        Throws:
        CoreException - if this method fails.
      • deconfigure

        void deconfigure()
                  throws CoreException
        De-configures this nature for its project. This is called by the workspace when natures are removed from the project using IProject.setDescription and should not be called directly by clients. The nature extension id is removed from the list of natures before this method is called, and need not be removed here. Exceptions thrown by this method will be propagated back to the caller of IProject.setDescription, but the nature will still be removed from the project description. *
        Throws:
        CoreException - if this method fails.
      • getProject

        IProject getProject()
        Returns the project to which this project nature applies.
        Returns:
        the project handle
      • setProject

        void setProject​(IProject project)
        Sets the project to which this nature applies. Used when instantiating this project nature runtime. This is called by IProject.create() or IProject.setDescription() and should not be called directly by clients.
        Parameters:
        project - the project to which this nature applies