|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.AbstractGlobalModel
edu.rice.cs.drjava.model.DefaultGlobalModel
edu.rice.cs.drjava.model.cache.DocumentCacheTest.TestGlobalModel
private static class DocumentCacheTest.TestGlobalModel
This is just so that we can have an instance of a DefaultGlobalModel rather than a single display model.
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class edu.rice.cs.drjava.model.DefaultGlobalModel |
|---|
_interactionsDocument, _interactionsListener, _interactionsModel, _javadocModel |
| Fields inherited from class edu.rice.cs.drjava.model.AbstractGlobalModel |
|---|
_bookmarkManager, _breakpointManager, _browserHistoryManager, _cache, _consoleDoc, _consoleDocAdapter, _documentNavigator, _editorKit, _findResultsManagers, _log, _notifier, _pageFormat, _state, LISTENERS_TO_REMOVE, STORED_PREFERENCES_LISTENER |
| Constructor Summary | |
|---|---|
private |
DocumentCacheTest.TestGlobalModel()
|
| Method Summary | |
|---|---|
void |
aboutToSaveFromSaveAll(OpenDefinitionsDocument doc)
If the document is untitled, brings it to the top so that the user will know which is being saved. |
boolean |
closeAllFiles()
Attempts to close all open documents. |
boolean |
closeFile(OpenDefinitionsDocument doc)
Closes an open definitions document, prompting to save if the document has been changed. |
OpenDefinitionsDocument |
newFile()
Creates a new document, adds it to the list of open documents, and sets it to be active. |
OpenDefinitionsDocument |
openFile(FileOpenSelector fs)
Open a file and add it to the pool of definitions documents. |
OpenDefinitionsDocument[] |
openFiles(FileOpenSelector com)
Open multiple files and add them to the pool of definitions documents. |
void |
saveAllFiles(FileSaveSelector fs)
Saves all open files, prompting for names if necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
private DocumentCacheTest.TestGlobalModel()
| Method Detail |
|---|
public void aboutToSaveFromSaveAll(OpenDefinitionsDocument doc)
AbstractGlobalModel
aboutToSaveFromSaveAll in class AbstractGlobalModel
public void saveAllFiles(FileSaveSelector fs)
throws IOException
AbstractGlobalModel
saveAllFiles in interface GlobalModelsaveAllFiles in class AbstractGlobalModelfs - a FileSaveSelector
IOExceptionpublic OpenDefinitionsDocument newFile()
AbstractGlobalModel
newFile in interface GlobalModelnewFile in class AbstractGlobalModel
public OpenDefinitionsDocument openFile(FileOpenSelector fs)
throws IOException,
OperationCanceledException,
AlreadyOpenException
AbstractGlobalModel
openFile in interface ILoadDocumentsopenFile in class AbstractGlobalModelfs - a command pattern command that selects what file to open
IOException
OperationCanceledException - if the open was canceled
AlreadyOpenException - if the file is already openpublic boolean closeFile(OpenDefinitionsDocument doc)
AbstractGlobalModel
closeFile in interface GlobalModelcloseFile in class AbstractGlobalModel
public OpenDefinitionsDocument[] openFiles(FileOpenSelector com)
throws IOException,
OperationCanceledException,
AlreadyOpenException
AbstractGlobalModel
openFiles in interface ILoadDocumentsopenFiles in class AbstractGlobalModelcom - a command pattern command that selects what file to open
IOException - if an underlying I/O operation fails
OperationCanceledException - if the open was canceled
AlreadyOpenException - if the file is already openpublic boolean closeAllFiles()
AbstractGlobalModel
closeAllFiles in interface GlobalModelcloseAllFiles in class AbstractGlobalModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||