|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.backward.resources.ProjectStore
public final class ProjectStore
Used to store models during one session.
Method Summary | |
---|---|
static ProjectStore |
getInstance()
Returns single, shared instance of ProjectStore . |
IModel |
getModel(org.eclipse.core.resources.IProject project)
Returns model for given project. |
org.eclipse.core.resources.IProject |
getProject(IModel model)
Returns IProject for given IModel . |
void |
init(org.eclipse.core.resources.IProject project)
Initialize the project. |
boolean |
isInitialized(org.eclipse.core.resources.IProject project)
Checks if project is initialized. |
void |
remove(org.eclipse.core.resources.IProject project)
Removes the given project. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ProjectStore getInstance()
ProjectStore
.
ProjectStore
public boolean isInitialized(org.eclipse.core.resources.IProject project)
project
- project to check
true
if project is present in the ProjectStore
public void init(org.eclipse.core.resources.IProject project)
project
- project to initializepublic IModel getModel(org.eclipse.core.resources.IProject project)
project
- the project for which the model is returned
null
if no model is associated with the projectpublic org.eclipse.core.resources.IProject getProject(IModel model)
IProject
for given IModel
.
model
- the model associated with the project
public void remove(org.eclipse.core.resources.IProject project)
project
- project to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |