|
||||||||||
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.
Field Summary |
---|
Fields inherited from interface edu.rice.cs.drjava.model.GlobalModel |
---|
RUNTIME_CLASS_PATH |
Method Summary | |
---|---|
boolean |
closeAllFilesOnQuit()
|
boolean |
closeFiles(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. |
OpenDefinitionsDocument |
getActiveDocument()
|
Container |
getDocCollectionWidget()
|
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(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 GlobalModel
Container getDocCollectionWidget()
void setActiveNextDocument()
void setActivePreviousDocument()
boolean closeFiles(List<OpenDefinitionsDocument> docList)
docList
- the list of files to close
void setActiveFirstDocument()
void dispose()
void disposeExternalResources()
boolean closeAllFilesOnQuit()
File[] getExclFiles()
void setExcludedFiles(File[] fs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |