|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.drjava.model.DummyGlobalModel
edu.rice.cs.drjava.model.TestDocGetter
public class TestDocGetter
Test implementation of the document fetching methods in the GlobalModel interface.
| Nested Class Summary | |
|---|---|
private static class |
TestDocGetter.TestOpenDoc
Test implementation of OpenDefinitionsDocument interface. |
| Field Summary | |
|---|---|
(package private) java.util.HashMap<java.io.File,OpenDefinitionsDocument> |
docs
Storage for documents and File keys. |
| Constructor Summary | |
|---|---|
TestDocGetter()
Convenience constructor for no-documents case. |
|
TestDocGetter(java.io.File[] files,
java.lang.String[] texts)
Primary constructor, builds OpenDefDocs from Strings. |
|
| Method Summary | |
|---|---|
OpenDefinitionsDocument |
getDocumentForFile(java.io.File file)
Returns the OpenDefinitionsDocument for the specified File, opening a new copy if one is not already open. |
java.util.List<OpenDefinitionsDocument> |
getOpenDefinitionsDocuments()
Returns a collection of all documents currently open for editing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.util.HashMap<java.io.File,OpenDefinitionsDocument> docs
| Constructor Detail |
|---|
public TestDocGetter()
public TestDocGetter(java.io.File[] files,
java.lang.String[] texts)
files - the keys to use when getting OpenDefDocstexts - the text to put in the OpenDefDocs| Method Detail |
|---|
public OpenDefinitionsDocument getDocumentForFile(java.io.File file)
throws java.io.IOException
GlobalModel
getDocumentForFile in interface GlobalModelgetDocumentForFile in class DummyGlobalModelfile - File contained by the document to be returned
java.io.IOExceptionpublic java.util.List<OpenDefinitionsDocument> getOpenDefinitionsDocuments()
GlobalModel
getOpenDefinitionsDocuments in interface GlobalModelgetOpenDefinitionsDocuments in class DummyGlobalModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||