| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Manages IdeProjects and assigns/removes project listeners.
The getProject method finds IdeProject by the specified project file name
of the project. It doesn't open the project, but having IdeProject found, allows to extract
some kind of information about that project. The project can be opened (that is loaded into IDE)
via its open method.
There can be any number of IdeProjects (got through
getProject method) Together is working with, but the opened project is called the active project and
can be returned by getActiveProject method.
The addProjectListener and removeProjectListener methods work with the project
listeners. Each listener receives project events (close, open etc.) on all found projects.
Current IdeProjectManager can be obtained via IdeProjectManagerAccess.getProjectManager method.
| Method Summary | |
void | addProjectListener(IdeProjectListener listener)Adds the specified project listener. |
IdeProject | getActiveProject()Returns the active project. |
IdeProject | getProject(String projectFile)Given the name of a project, returns the IdeProject. |
void | removeProjectListener(IdeProjectListener listener)Removes the specified listener. |
| Method Detail |
public void addProjectListener(IdeProjectListener listener)
IdeProjectListener object to be addedpublic IdeProject getActiveProject()
null. For example:
if (IdeProjectManagerAccess.getProjectManager().getActiveProject()==null){
IdeMessageManagerAccess.printMessage(IdeMessageType.ERROR_MODAL,"No open project");
return;
}
IdeProject object that represents the currently opened projectpublic IdeProject getProject(String projectFile)
IdeProject. If such project not found, returns
null. For additional information see the description of this interface above.String with the name of this project file. For example,
"C:/Together3/myprojects/myProj/myProj.tpr".IdeProjectpublic void removeProjectListener(IdeProjectListener listener)
IdeProjectListener object to be deleted
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||