|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A cookie that provides project manipulation functionality. Such a cookie should be attached to any data object that represents a "Project" in the IDE.
A project should consist of a set of settings. When the project
is opened, it should control the current settings of the
IDE (change workplaces, control panel options, and the content of
filesystem pool). Moreover the project has a so-called "Project Desktop"
that should provide a default working node for the developer to store working
files, and also to describe the capabilities of the project (for example
if the project can the compiled, the node should support CompilerCookie
).
To let the project save settings when explicitly asked to or when the project is
closed, projectSave()
is used. It is called when another project is opened.
The method should store the current state of IDE to be restored on next opening.
To allow the IDE to remember the current project when it the IDE is closed and to reopen it on next startup, the project is required to be serializable.
Method Summary | |
void |
projectClose()
Close the project. |
Node |
projectDesktop()
Get the "Project Desktop" node. |
void |
projectOpen()
Open the project by loading its settings into the IDE. |
void |
projectSave()
Save the project. |
Method Detail |
public void projectOpen() throws IOException
IOException
- if an error occurred during opening of the projectpublic void projectSave() throws IOException
IOException
- if an error occurs during savingpublic void projectClose() throws IOException
IOException
- if an error occurs during savingpublic Node projectDesktop()
CompilerCookie
,
ExecCookie
) should be attached to this node.
Moreover such a node may allow the user to store his "working files" to simplify access to them.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |