public class ProjectBase extends WorkspaceBase
Constructor and Description |
---|
ProjectBase(ProjectComponent component) |
Modifier and Type | Method and Description |
---|---|
EclipseProject |
getEclipseProject()
Returns the associated eclipse project.
|
boolean |
isProjectNameSet()
Returns
true if the project name has been set. |
boolean |
isProjectSet()
Returns
true if the project has been set. |
void |
requireWorkspaceAndProjectNameOrProjectSet()
Requires that either the workspace and the project name or the project directory.
|
void |
setProject(java.io.File projectDirectory)
Sets the project directory.
|
void |
setProjectName(java.lang.String projectName)
Sets the name of the project.
|
getDirSeparator, getPathSeparator, getWorkspace, isInitialiseWorkspaceSet, isWorkspaceSet, requireWorkspaceSet, setDirSeparator, setInitialiseWorkspace, setPathProperty, setPathSeparator, setStringProperty, setWorkspace
public ProjectBase(ProjectComponent component)
component
- public EclipseProject getEclipseProject() throws BuildException
BuildException
- thrown if the eclipse project could not be read.public final void setProjectName(java.lang.String projectName)
projectName
- the name of the project.public final boolean isProjectNameSet()
true
if the project name has been set.true
if the project name has been set.public final void setProject(java.io.File projectDirectory)
projectDirectory
- the project directory.public final boolean isProjectSet()
true
if the project has been set.true
if the project has been set.public final void requireWorkspaceAndProjectNameOrProjectSet()