abstractpublic class ModelSet implements FileChangeListener(Code)
A ModelSet is a collection of Models that are organized together in a single project. The
ModelSet serves to coordinate the Models with each other and with the containing project.
The Models are divided into two groups: regular or source Models with many instances, and
specific configuration Models with one instance per type. There is always exactly one
ModelSet per project.
author: cquinn
Inner Class :protected static class OpenProjectsListener implements PropertyChangeListener
This will throw a RuntimeException if a suitable Common ClassLoader Provider is not found.
Parameters: project - The project that this ModelSet is to be associated with,
Method Detail
addModel
protected void addModel(FileObject file, Model m)(Code)
Add a new file/model pair to the correct map.
Parameters: file - The source or config file object Parameters: m - The source or config model
Respond to changes in the project class path by updating the models.
See Also: com.sun.rave.project.model.ProjectContentChangeListener.classPathChanged(com.sun.rave.project.model.ProjectContentChangeEvent)
Destroy this ModelSet and all its contained Models and release their resources. This ModelSet
and the contained Models must never be used after destroy is called.
Provide models in such a way as to cause higher scoped models to be ordered first.
This only works if we assume that lower scoped models references values from higher scoped models.
If higher scoped models references lower ones, then this will not help much.
Parameters: modelsToOrder -
fileAttributeChanged
public void fileAttributeChanged(FileAttributeEvent fe)(Code)
Get the per-project class loader for this ModelSet. The class loader may change as project
settings and libraries are changed by the user.
The class loader.