|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.internal.resources.ModelObject
org.eclipse.core.internal.resources.ProjectDescription
public class ProjectDescription
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.core.resources.IProjectDescription |
|---|
DESCRIPTION_FILE_NAME |
| Constructor Summary | |
|---|---|
ProjectDescription()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
IProject[] |
getAllReferences(boolean makeCopy)
Returns the union of the description's static and dynamic project references, with duplicates omitted. |
ICommand[] |
getBuildSpec()
Returns the list of build commands to run when building the described project. |
ICommand[] |
getBuildSpec(boolean makeCopy)
|
java.lang.String |
getComment()
Returns the descriptive comment for the described project. |
IProject[] |
getDynamicReferences()
Returns the dynamic project references for the described project. |
IProject[] |
getDynamicReferences(boolean makeCopy)
|
java.net.URI |
getLinkLocationURI(org.eclipse.core.runtime.IPath aPath)
Returns the link location for the given resource name. |
java.util.HashMap |
getLinks()
Returns the map of link descriptions (IPath (project relative path) -> LinkDescription). |
org.eclipse.core.runtime.IPath |
getLocation()
Deprecated. |
java.net.URI |
getLocationURI()
Returns the location URI for the described project. |
java.lang.String[] |
getNatureIds()
Returns the list of natures associated with the described project. |
java.lang.String[] |
getNatureIds(boolean makeCopy)
|
IProject[] |
getReferencedProjects()
Returns the projects referenced by the described project. |
IProject[] |
getReferencedProjects(boolean makeCopy)
|
boolean |
hasNature(java.lang.String natureID)
Returns whether the project nature specified by the given nature extension id has been added to the described project. |
boolean |
hasPrivateChanges(ProjectDescription description)
Returns true if any private attributes of the description have changed. |
boolean |
hasPublicChanges(ProjectDescription description)
Returns true if any public attributes of the description have changed. |
ICommand |
newCommand()
Returns a new build command. |
void |
setBuildSpec(ICommand[] value)
Sets the list of build command to run when building the described project. |
void |
setComment(java.lang.String value)
Sets the comment for the described project. |
void |
setDynamicReferences(IProject[] value)
Sets the dynamic project references for the described project. |
void |
setLinkDescriptions(java.util.HashMap linkDescriptions)
Sets the map of link descriptions (String name -> LinkDescription). |
boolean |
setLinkLocation(org.eclipse.core.runtime.IPath path,
LinkDescription description)
Sets the description of a link. |
void |
setLocation(org.eclipse.core.runtime.IPath path)
Sets the local file system location for the described project. |
void |
setLocationURI(java.net.URI location)
Sets the location for the described project. |
void |
setName(java.lang.String value)
Sets the name of the described project. |
void |
setNatureIds(java.lang.String[] value)
Sets the list of natures associated with the described project. |
void |
setReferencedProjects(IProject[] value)
Sets the referenced projects, ignoring any duplicates. |
| Methods inherited from class org.eclipse.core.internal.resources.ModelObject |
|---|
getName |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.resources.IProjectDescription |
|---|
getName |
| Constructor Detail |
|---|
public ProjectDescription()
| Method Detail |
|---|
public java.lang.Object clone()
clone in class ModelObjectpublic IProject[] getAllReferences(boolean makeCopy)
public ICommand[] getBuildSpec()
IProjectDescription
getBuildSpec in interface IProjectDescriptionpublic ICommand[] getBuildSpec(boolean makeCopy)
public java.lang.String getComment()
IProjectDescription
getComment in interface IProjectDescriptionpublic IProject[] getDynamicReferences()
IProjectDescriptionThe returned projects need not exist in the workspace. The result will not contain duplicates. Returns an empty array if there are no dynamic project references on this description.
getDynamicReferences in interface IProjectDescriptionIProjectDescription.getReferencedProjects(),
IProjectDescription.setDynamicReferences(IProject[])public IProject[] getDynamicReferences(boolean makeCopy)
public java.net.URI getLinkLocationURI(org.eclipse.core.runtime.IPath aPath)
public java.util.HashMap getLinks()
public org.eclipse.core.runtime.IPath getLocation()
IProjectDescriptionnull is
returned if the default location should be used. This method will return
null if this project is not located in the local file system.
getLocation in interface IProjectDescriptionnullIProjectDescription.getLocation()public java.net.URI getLocationURI()
IProjectDescriptionnull is
returned if the default location should be used.
getLocationURI in interface IProjectDescriptionnullIProjectDescription.setLocationURI(URI)public java.lang.String[] getNatureIds()
IProjectDescription
getNatureIds in interface IProjectDescriptionIProjectDescription.setNatureIds(String[])public java.lang.String[] getNatureIds(boolean makeCopy)
public IProject[] getReferencedProjects()
IProjectDescriptionThe projects need not exist in the workspace. The result will not contain duplicates. Returns an empty array if there are no referenced projects on this description.
getReferencedProjects in interface IProjectDescriptionIProjectDescription.getDynamicReferences()public IProject[] getReferencedProjects(boolean makeCopy)
public boolean hasNature(java.lang.String natureID)
IProjectDescription
hasNature in interface IProjectDescriptionnatureID - the nature extension identifier
true if the described project has the given naturepublic boolean hasPrivateChanges(ProjectDescription description)
public boolean hasPublicChanges(ProjectDescription description)
public ICommand newCommand()
IProjectDescription
Note that the new command does not become part of this project
description's build spec until it is installed via the setBuildSpec
method.
newCommand in interface IProjectDescriptionIProjectDescription.setBuildSpec(ICommand[])public void setBuildSpec(ICommand[] value)
IProjectDescription
Users must call IProject.setDescription(IProjectDescription, int, IProgressMonitor)
before changes made to this description take effect.
setBuildSpec in interface IProjectDescriptionvalue - the array of build commands to runIProject.setDescription(IProjectDescription, int, IProgressMonitor),
IProjectDescription.getBuildSpec(),
IProjectDescription.newCommand()public void setComment(java.lang.String value)
IProjectDescription
Users must call IProject.setDescription(IProjectDescription, int, IProgressMonitor)
before changes made to this description take effect.
setComment in interface IProjectDescriptionvalue - the comment for the described projectIProject.setDescription(IProjectDescription, int, IProgressMonitor),
IProjectDescription.getComment()public void setDynamicReferences(IProject[] value)
IProjectDescription
Users must call IProject.setDescription(IProjectDescription, int, IProgressMonitor)
before changes made to this description take effect.
setDynamicReferences in interface IProjectDescriptionvalue - list of projectsIProjectDescription.getDynamicReferences(),
IProject.setDescription(IProjectDescription, int, IProgressMonitor)public void setLinkDescriptions(java.util.HashMap linkDescriptions)
public boolean setLinkLocation(org.eclipse.core.runtime.IPath path,
LinkDescription description)
true if the description was actually changed,
false otherwise.public void setLocation(org.eclipse.core.runtime.IPath path)
IProjectDescriptionnull is specified, the default location is used.
Setting the location on a description for a project which already
exists has no effect; the new project location is ignored when the
description is set on the already existing project. This method is
intended for use on descriptions for new projects or for destination
projects for copy and move.
This operation maps the root folder of the project to the exact location provided. For example, if the location for project named "P" is set to the path c:\my_plugins\Project1, the file resource at workspace path /P/index.html would be stored in the local file system at c:\my_plugins\Project1\index.html.
setLocation in interface IProjectDescriptionpath - the location for the described project or nullIProjectDescription.getLocation()public void setLocationURI(java.net.URI location)
IProjectDescriptionnull is specified, the default location is used.
Setting the location on a description for a project which already
exists has no effect; the new project location is ignored when the
description is set on the already existing project. This method is
intended for use on descriptions for new projects or for destination
projects for copy and move.
This operation maps the root folder of the project to the exact location provided. For example, if the location for project named "P" is set to the URI file://c:/my_plugins/Project1, the file resource at workspace path /P/index.html would be stored in the local file system at file://c:/my_plugins/Project1/index.html.
setLocationURI in interface IProjectDescriptionlocation - the location for the described project or nullIProjectDescription.getLocationURI(),
IWorkspace.validateProjectLocationURI(IProject, URI)public void setName(java.lang.String value)
IProjectDescriptionSetting the name on a description and then setting the description on the project has no effect; the new name is ignored.
Creating a new project with a description name which doesn't match the project handle name results in the description name being ignored; the project will be created using the name in the handle.
setName in interface IProjectDescriptionsetName in class ModelObjectvalue - the name of the described projectIProject.setDescription(IProjectDescription, int, IProgressMonitor),
IProjectDescription.getName()public void setNatureIds(java.lang.String[] value)
IProjectDescription
Users must call IProject.setDescription(IProjectDescription, int, IProgressMonitor)
before changes made to this description take effect.
setNatureIds in interface IProjectDescriptionvalue - the list of naturesIProject.setDescription(IProjectDescription, int, IProgressMonitor),
IProjectDescription.getNatureIds()public void setReferencedProjects(IProject[] value)
IProjectDescription
Users must call IProject.setDescription(IProjectDescription, int, IProgressMonitor)
before changes made to this description take effect.
setReferencedProjects in interface IProjectDescriptionvalue - a list of projectsIProject.setDescription(IProjectDescription, int, IProgressMonitor),
IProjectDescription.getReferencedProjects()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||