Method Summary |
|
public void | addAuxiliaryFile(OpenDefinitionsDocument doc) Adds a document to the list of auxiliary files. |
public void | addListener(GlobalModelListener listener) Add a listener to this global model. |
public void | addToBrowserHistory() Add the current location to the browser history. |
public void | cleanBuildDirectory() Cleans the build directory. |
public void | clearHistory() Clears the interactions history. |
public boolean | closeAllFiles() Attempts to close all open documents. |
public boolean | closeFile(OpenDefinitionsDocument doc) Closes an open definitions document, prompting to save if
the document has been changed. |
public boolean | closeFileWithoutPrompt(OpenDefinitionsDocument doc) Closes an open definitions document, without prompting to save if
the document has been changed. |
public void | closeProject(boolean qutting) Performs any needed operations on the model before closing the project and its files. |
public void | configNewProject() Configures a new project (created by createNewProject) and saves it to disk. |
public RegionManager<MovingDocumentRegion> | createFindResultsManager() new manager for find result regions. |
public void | createNewProject(File projFile) Creates a new project with specified project file and default values for other properties. |
public void | disposeFindResultsManager(RegionManager<MovingDocumentRegion> rm) Dispose a manager for find result regions. |
public File | findFileInPaths(String fileName, Iterable<File> paths) Searches for a file with the given name on the provided paths. |
public String | fixPathForNavigator(String path) Formats a string pathname for use in the document navigator. |
public void | forceQuit() Halts the program immediately. |
public String | getAuxiliaryBinTitle() |
public RegionManager<DocumentRegion> | getBookmarkManager() manager for bookmark regions. |
public RegionManager<Breakpoint> | getBreakpointManager() manager for breakpoint regions. |
public RegionManager<DocumentRegion> | getBrowserHistoryManager() manager for browser history regions. |
public File | getBuildDirectory() the directory that the class files should be stored after compilation. |
public List<File> | getClassFiles() a list of class files. |
public Iterable<File> | getClassPath() Get the class path to be used in all class-related operations. |
public CompilerModel | getCompilerModel() Gets the CompilerModel, which provides all methods relating to compilers. |
public ConsoleDocument | getConsoleDocument() Gets the console document. |
public File | getCreateJarFile() Return the create jar file for the project. |
public int | getCreateJarFlags() Return the create jar file for the project. |
public int | getDebugPort() Returns an available port number to use for debugging the interactions JVM. |
public Debugger | getDebugger() Gets the Debugger, which interfaces with the integrated debugger. |
public int | getDocumentCount() |
public OpenDefinitionsDocument | getDocumentForFile(File file) Returns the OpenDefinitionsDocument for the specified File, opening a new copy if one is not already open. |
public DocumentIterator | getDocumentIterator() Gets a DocumentIterator to allow navigating through open swing Documents. |
public IDocumentNavigator<OpenDefinitionsDocument> | getDocumentNavigator() Gets the DocumentNavigator, which controls the document view. |
public DefinitionsEditorKit | getEditorKit() Fetches the
javax.swing.text.EditorKit implementation for use in the definitions pane. |
public String | getExternalBinTitle() |
public Iterable<File> | getExtraClassPath() Returns only the project's extra classpaths. |
public List<RegionManager<MovingDocumentRegion>> | getFindResultsManagers() managers for find result regions. |
public String | getHistoryAsString() Returns the entire history as a String. |
public String | getHistoryAsStringWithSemicolons() Returns the entire history as a String with semicolons as needed. |
public Iterable<File> | getInteractionsClassPath() Returns the current classpath in use by the Interpreter JVM. |
public InteractionsDocument | getInteractionsDocument() Gets the (toolkit-independent) interactions document. |
public DefaultInteractionsModel | getInteractionsModel() Returns the interactions model. |
public JUnitModel | getJUnitModel() Gets the JUnitModel, which provides all methods relating to JUnit testing. |
public JavadocModel | getJavadocModel() Gets the JavadocModel, which provides all methods relating to Javadoc. |
public File | getMainClass() Return the main file for the project If not in project mode, returns null. |
public File | getMasterWorkingDirectory() the working directory for the Master JVM. |
public List<OpenDefinitionsDocument> | getNonProjectDocuments() Returns a list of OpenDefinitionsDocuments that do not belong to the currently active project.
If no project is active, all documents are returned. |
public int | getNumCompErrors() Returns the number of compiler errors produced by the last compilation. |
public OpenDefinitionsDocument | getODDForDocument(AbstractDocumentInterface doc) |
public List<OpenDefinitionsDocument> | getOpenDefinitionsDocuments() Returns a collection of all documents currently open for editing. |
public PageFormat | getPageFormat() |
public List<OpenDefinitionsDocument> | getProjectDocuments() Teturns a list of OpenDefinitionsDocuments that do belong to the currently active project.
If no project is active, no documents are returned. |
public File | getProjectFile() the file that points to the current project file. |
public File[] | getProjectFiles() the directory that the class files should be stored after compilation. |
public File | getProjectRoot() the source root for the project. |
public String | getSourceBinTitle() |
public File | getSourceFile(String fileName) Searches for a file with the given name on the current source roots and the augmented classpath. |
public Iterable<File> | getSourceRootSet() Gets a list of all sourceRoots for the open definitions documents, without duplicates. |
public InteractionsDJDocument | getSwingConsoleDocument() TODO: remove this swing dependency. |
public InteractionsDJDocument | getSwingInteractionsDocument() TODO: remove this swing dependency. |
public File | getWorkingDirectory() the working directory for the Slave JVM (only applied to project mode). |
public boolean | hasModifiedDocuments() Checks if any open definitions documents have been modified since last being saved. |
public boolean | hasModifiedDocuments(List<OpenDefinitionsDocument> lod) Checks if any of the given documents have been modified since last being saved. |
public boolean | hasOutOfSyncDocuments() true iff no open document is out of sync with its primary class file. |
public boolean | hasOutOfSyncDocuments(List<OpenDefinitionsDocument> lod) true iff no document in given list is out of sync with its primary class file. |
public boolean | hasUntitledDocuments() Checks if any open definitions documents are untitled. |
public boolean | inProject(File f) Returns true the given file is in the current project file. |
public boolean | inProjectPath(OpenDefinitionsDocument doc) A file is in the project if the source root is the same as the project root. |
public void | interpretCurrentInteraction() Interprets the current given text at the prompt in the interactions pane. |
public boolean | isProjectActive() true if the model has a project open, false otherwise. |
public boolean | isProjectChanged() |
public void | loadHistory(FileOpenSelector selector) Interprets file selected in the FileOpenSelector. |
public InteractionsScriptModel | loadHistoryAsScript(FileOpenSelector selector) Loads the history/histories from the given selector. |
public OpenDefinitionsDocument | newFile() Creates a new document in the definitions pane and adds it to the list of open documents. |
public OpenDefinitionsDocument | newTestCase(String name, boolean makeSetUp, boolean makeTearDown) Creates a new junit test case. |
public void | openFolder(File dir, boolean rec) |
public void | openProject(File file) Parses out the given project file, sets up the state and other configurations
such as the Navigator and the classpath, and returns an array of files to open. |
public void | printDebugMessage(String s) Called when the debugger wants to print a message. |
public void | quit() Exits the program. |
public void | refreshActiveDocument() Re-runs the global listeners on the active document. |
public void | reloadProject(File f, Hashtable<OpenDefinitionsDocument, DocumentInfoGetter> info) Reloads a project without writing to disk. |
public void | removeAuxiliaryFile(OpenDefinitionsDocument doc) Removes a document from the list of auxiliary files. |
public void | removeListener(GlobalModelListener listener) Remove a listener from this global model. |
public void | resetConsole() Resets the console. |
public void | resetInteractions(File wd) Clears and resets the interactions pane in the specified working directory, provided that the operation has some effect. |
public void | resetInteractions(File wd, boolean forceReset) Clears and resets the interactions pane in the specified working directory. |
public void | saveAllFiles(FileSaveSelector com) Saves all open documents, prompting when necessary. |
public void | saveHistory(FileSaveSelector selector) |
public void | saveHistory(FileSaveSelector selector, String editedVersion) Saves the edited version of the current history to a file
Parameters: selector - File to save to Parameters: editedVersion - Edited verison of the history which will be saved to file instead of the lines saved in the history. |
public void | saveProject(File f, Hashtable<OpenDefinitionsDocument, DocumentInfoGetter> info) |
public void | setBuildDirectory(File f) Sets the current build directory. |
public void | setCreateJarFile(File f) Sets the create jar file of the project. |
public void | setCreateJarFlags(int f) Sets the create jar flags of the project. |
public void | setDocumentNavigator(IDocumentNavigator<OpenDefinitionsDocument> newnav) |
public void | setExtraClassPath(Iterable<File> cp) Sets the set of classpath entries to use as the projects set of classpath entries. |
public void | setMainClass(File f) Sets the main file of the project. |
public void | setNumCompErrors(int num) Sets the number of compiler errors produced by the last compilation. |
public void | setPageFormat(PageFormat format) |
public void | setProjectChanged(boolean changed) Notifies the project state that the project has been changed. |
public void | setProjectFile(File f) Sets project file to specifed value; used in "Save Project As ..." command in MainFrame. |
public void | setProjectRoot(File f) Sets the source root for the project. |
public void | setWorkingDirectory(File f) Sets the working directory for the Slave JVM (only applies to project mode). |
public void | systemErrPrint(String s) Prints System.err to the DrJava console. |
public void | systemInEcho(String s) |
public void | systemOutPrint(String s) Prints System.out to the DrJava console. |
public void | waitForInterpreter() Blocks until the interpreter has registered. |