|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILoadDocuments
This interface encapsulates the behavior of a document loader. Components which provide a means to load documents (e.g. from disk, from a stream, from the ether) should implement this interface, rather than the entire GlobalModel. Components which simply need access to documents should use the more general IGetDocuments instead of this interface. TODO: Subdivide GlobalModelListener to target only events generated here. TODO: Simplify signatures to avoid command pattern overhead.
GlobalModel,
DefaultGlobalModel| Method Summary | |
|---|---|
OpenDefinitionsDocument |
openFile(FileOpenSelector com)
Open a file and read it into the definitions. |
OpenDefinitionsDocument[] |
openFiles(FileOpenSelector com)
Opens multiple files and reads them into the definitions. |
| Method Detail |
|---|
OpenDefinitionsDocument openFile(FileOpenSelector com)
throws IOException,
OperationCanceledException,
AlreadyOpenException
com - a command pattern command that selects what file to open
IOException
OperationCanceledException - if the open was canceled
AlreadyOpenException - if the file is already open
OpenDefinitionsDocument[] openFiles(FileOpenSelector com)
throws IOException,
OperationCanceledException,
AlreadyOpenException
com - a command pattern command that selects which files to open
IOException - if an underlying I/O operation fails
OperationCanceledException - if the open was canceled
AlreadyOpenException - if the file is already open
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||