Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.core.resources
Interface IProjectNature

All Known Implementing Classes:
RepositoryProvider

public interface IProjectNature

Interface for project nature runtime classes. It can configure a project with the project nature, or de-configure it. When a project is configured with a project nature, this is recorded in the list of project natures on the project. Individual project natures may expose a more specific runtime type, with additional API for manipulating the project in a nature-specific way.

Clients may implement this interface.

See Also:
IProject.getNature(String), IProject.hasNature(String), IProjectDescription.getNatureIds(), IProjectDescription.hasNature(String), IProjectDescription.setNatureIds(String[])

Method Summary
 void configure ()
          Configures this nature for its project.
 void deconfigure ()
          De-configures this nature for its project.
  IProject getProject ()
          Returns the project to which this project nature applies.
 void setProject ( IProject project)
          Sets the project to which this nature applies.
 

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

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire