|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SingleDisplayModel
A GlobalModel that enforces invariants associated with having one active document at a time. Invariants:
GlobalModel.getOpenDefinitionsDocuments() will always return an array of
at least size 1.
getActiveDocument() and setActiveDocument(edu.rice.cs.drjava.model.OpenDefinitionsDocument).
ILoadDocuments.openFile(edu.rice.cs.util.FileOpenSelector), if there is currently only one open
document, and it is untitled and unchanged, it will be closed after the
new document is opened. This means that, in one atomic transaction, the
model goes from having one totally empty document open to having one
document (the requested one) open.
| Method Summary | |
|---|---|
boolean |
closeAllFilesOnQuit()
|
boolean |
closeFiles(java.util.List<OpenDefinitionsDocument> docList)
Shared code between close project and close All files which only sets the new active document after all documents to be closed have been closed. |
void |
dispose()
|
void |
disposeExternalResources()
Disposes of external resources, e.g. |
void |
ensureJVMStarterFinished()
Ensures that the _jvmStarter thread has executed. |
OpenDefinitionsDocument |
getActiveDocument()
|
java.awt.Container |
getDocCollectionWidget()
|
java.io.File[] |
getExclFiles()
Return an array of the files excluded from the current project |
void |
refreshActiveDocument()
Invokes the activeDocumentChanged method in the global listener on the argument _activeDocument. |
void |
setActiveDocument(OpenDefinitionsDocument doc)
Sets the currently active document by updating the selection model. |
void |
setActiveFirstDocument()
|
void |
setActiveNextDocument()
Sets the active document to be the next one in the list. |
void |
setActivePreviousDocument()
Sets the active document to be the previous one in the list. |
void |
setExcludedFiles(java.io.File[] fs)
Sets the array of files excluded from the current project |
| Methods inherited from interface edu.rice.cs.drjava.model.ILoadDocuments |
|---|
openFile, openFiles |
| Method Detail |
|---|
OpenDefinitionsDocument getActiveDocument()
void setActiveDocument(OpenDefinitionsDocument doc)
doc - Document to set as activevoid refreshActiveDocument()
refreshActiveDocument in interface GlobalModeljava.awt.Container getDocCollectionWidget()
void setActiveNextDocument()
void setActivePreviousDocument()
boolean closeFiles(java.util.List<OpenDefinitionsDocument> docList)
closeFiles in interface GlobalModeldocList - the list of files to close
void setActiveFirstDocument()
void dispose()
void disposeExternalResources()
boolean closeAllFilesOnQuit()
java.io.File[] getExclFiles()
void setExcludedFiles(java.io.File[] fs)
void ensureJVMStarterFinished()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||