public static class ReadOnlyAccess.Provider extends Object implements DocumentModelAccessProvider
Modifier | Constructor and Description |
---|---|
protected |
Provider() |
Modifier and Type | Method and Description |
---|---|
DocumentModelAccess |
createModelAccess(AbstractDocumentModel model)
Returns the access to the given model source and model.
|
static ReadOnlyAccess.Provider |
getInstance() |
Object |
getModelSourceKey(ModelSource source)
Returns key for factory to cache model source.
|
Document |
loadSwingDocument(InputStream in)
Loads the swing document from the given input stream.
|
public static ReadOnlyAccess.Provider getInstance()
public DocumentModelAccess createModelAccess(AbstractDocumentModel model)
DocumentModelAccessProvider
createModelAccess
in interface DocumentModelAccessProvider
public Document loadSwingDocument(InputStream in) throws IOException, BadLocationException
DocumentModelAccessProvider
loadSwingDocument
in interface DocumentModelAccessProvider
IOException
BadLocationException
public Object getModelSourceKey(ModelSource source)
ModelAccessProvider
getModelSourceKey
in interface ModelAccessProvider