|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fife.rtext.plugins.project.model.Workspace
public class Workspace
A workspace is a collection of projects.
Constructor Summary | |
---|---|
Workspace(ProjectPlugin plugin,
java.io.File file)
|
Method Summary | |
---|---|
void |
accept(WorkspaceVisitor visitor)
Called when a visitor visits this entity. |
void |
addProject(Project project)
Adds a project to this workspace. |
boolean |
containsProjectNamed(java.lang.String name)
Returns whether a project already exists with the specified name. |
java.lang.String |
getFileFullPath()
Returns the absolute path to the file containing this workspace. |
java.lang.String |
getName()
|
java.util.Iterator<Project> |
getProjectIterator()
|
static Workspace |
load(ProjectPlugin plugin,
java.io.File file)
Loads a workspace from an XML file. |
boolean |
moveProjectDown(Project project)
|
boolean |
moveProjectUp(Project project)
|
void |
removeProject(Project project)
|
void |
save()
|
boolean |
setName(java.lang.String name)
Gives this workspace a new name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Workspace(ProjectPlugin plugin, java.io.File file)
Method Detail |
---|
public void accept(WorkspaceVisitor visitor)
ModelEntity
accept
in interface ModelEntity
visitor
- The visitor.public void addProject(Project project)
project
- The project to add.removeProject(Project)
public boolean containsProjectNamed(java.lang.String name)
name
- The proposed project name.
public java.lang.String getFileFullPath()
public java.lang.String getName()
public java.util.Iterator<Project> getProjectIterator()
public static Workspace load(ProjectPlugin plugin, java.io.File file) throws java.io.IOException
plugin
- The project plugin.file
- The XML file.
java.io.IOException
- If an IO error occurs.public boolean moveProjectDown(Project project)
public boolean moveProjectUp(Project project)
public void removeProject(Project project)
public void save() throws java.io.IOException
java.io.IOException
public boolean setName(java.lang.String name)
name
- The new workspace name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |