public class ModelSource extends Object implements Lookup.Provider
Constructor and Description |
---|
ModelSource(Lookup lookup,
boolean editable)
Create a model source object given the lookup context.
|
Modifier and Type | Method and Description |
---|---|
Lookup |
getLookup()
Returns the lookup object associated with this ModelSource.
|
boolean |
isEditable()
States if the backing file can be edited.
|
public ModelSource(Lookup lookup, boolean editable)
lookup
- Lookup object associated with this ModelSource. Lookup minimally
contains a File path of the backing file of the model and a javax.swing.text.Document object.editable
- whether the model is supposed to be mutated.public Lookup getLookup()
getLookup
in interface Lookup.Provider
public boolean isEditable()