Method Summary |
|
public void | addFindResultsManager(RegionManager<MovingDocumentRegion> rm) Add a region manager for find results to this document. |
public boolean | canAbandonFile() Returns whether the GlobalModel can abandon this document, asking listeners if isModifiedSinceSave() is true. |
public boolean | checkIfClassFileInSync() Checks if the document is modified. |
public void | cleanUpPrintJob() |
public void | close() Should be called when closing an ODD to let the ODD clean up after itself. |
public int | commentLines(int selStart, int selEnd) |
public Position | createUnwrappedPosition(int offs) Creates a WrappedPosition in the document. |
public void | documentModified() Called when this document is modified so it can notify the cache. |
public void | documentReset() Called when this document is reset so it can notify the cache. |
public void | documentSaved() Called when this document is saved so it can notify the cache. |
public boolean | fileExists() Returns true if the file exists on disk, or if the user has located it on disk. |
public void | generateJavadoc(FileSaveSelector saver) Generates Javadoc for this document, saving the output to a temporary directory. |
public RegionManager<DocumentRegion> | getBookmarkManager() the bookmark region manager. |
public RegionManager<Breakpoint> | getBreakpointManager() the breakpoint region manager. |
public RegionManager<DocumentRegion> | getBrowserHistoryManager() manager for browser history regions. |
public File | getCachedClassFile() |
public String | getCanonicalPath() Returns canonical path for well-formed file, "(Untitled)" if no file exists, and absolute path if ill-formed. |
public int | getCaretPosition() the caret position as set by the view. |
public boolean | getClassFileInSync() |
public String | getCompletePath() Returns canonical path (as defined above) followed by " *" if modified. |
public int | getCurrentCol() |
public int | getCurrentLine() |
public DocumentListener[] | getDocumentListeners() |
public String | getEnclosingClassName(int pos, boolean qual) Searching backwards finds the name of the enclosing named class or interface. |
public File | getFile() Returns the file for this document. |
public String | getFileName() Returns the name of this file, or "(Untitled)" if no file. |
public List<RegionManager<MovingDocumentRegion>> | getFindResultsManagers() managers for find result regions. |
public String | getFirstTopLevelClassName() Returns the name of the top level class, if any. |
public int | getInitialHorizontalScroll() the initial vertical scroll the pane should use when initialized. |
public int | getInitialSelectionEnd() the final location of the cursor selection that should be set in the pane when it is initialized. |
public int | getInitialSelectionStart() the starting location of the cursor selection that should be set in the pane when initialized. |
public int | getInitialVerticalScroll() the initial vertical scroll the pane should use when initialized. |
public int | getLineOfOffset(int offset) Translates an offset into the components text to a line number. |
public int | getNumberOfLines() the number of lines in this document. |
public int | getOffset(int lineNum) |
public int | getOffsetOfLine(int line) Translates a line number into an offset. |
public String | getPackageName() the name of the package at the time of the most recent save or load operation. |
public String | getPackageNameFromDocument() the name of the package currently embedded in document. |
public Pageable | getPageable() |
public File | getParentDirectory() Returns the parent directory of this file, null if it has none. |
public String | getQualifiedClassName() |
public String | getQualifiedClassName(int pos) |
public File | getRawFile() Returns the file for this document; does not check whether the file exists. |
public File | getSourceRoot() Finds the root directory of the source files. |
public long | getTimestamp() Returns the date that this document was last modified. |
public CompoundUndoManager | getUndoManager() |
public UndoableEditListener[] | getUndoableEditListeners() |
public int | gotoLine(int line) Moves the definitions document to the given line, and returns the resulting character position.
Parameters: line - Destination line number. |
public int | id() |
public boolean | inNewProjectPath(File root) Determines if this document in the file system tree below the specified root. |
public boolean | inProject() true if the documents file is saved in the current project file. |
public boolean | inProjectPath() Determines if this document in the file system tree below the active project root. |
public boolean | isAuxiliaryFile() true if the document's file is a project auxiliary file. |
public boolean | isEmpty() Determines if the document is empty. |
public boolean | isModifiedSinceSave() Determines if this definitions document has changed since the last save. |
public boolean | isReady() Returns whether this document is resident in memory. |
public boolean | isSourceFile() true if the document's filename ends with the extension ".java", ".dj0", "dj1", or "dj2". |
public boolean | isUntitled() Returns whether this document is currently untitled (indicating whether it has a file yet or not). |
public boolean | modifiedOnDisk() Determines if this definitions document has changed since the last save. |
public void | preparePrintJob() |
public void | print() |
public boolean | quitFile() Saves file at user's discretion before quitting. |
public void | removeFindResultsManager(RegionManager<MovingDocumentRegion> rm) Remove a manager for find results from this document.
Parameters: rm - the global model's region manager. |
public void | removeFromDebugger() Called when this document is being closed, removing related state from the debug manager. |
public void | resetModification() Resets the document to be unmodified. |
public void | resetUndoManager() |
public void | revertFile() Revert the document to the version saved on disk. |
public boolean | revertIfModifiedOnDisk() Asks the GlobalModel if it can revert current definitions to version on disk. |
public void | runMain() Runs the main method in this document in the interactions pane. |
public boolean | saveFile(FileSaveSelector com) Saves the document with a FileWriter. |
public boolean | saveFileAs(FileSaveSelector com) Saves the document with a FileWriter. |
public void | setCachedClassFile(File f) |
public void | setClassFileInSync(boolean val) |
public void | setFile(File file) |
public void | setPackage(String s) |
public void | startCompile() Starts compiling the source. |
public void | startJUnit() Starts testing the source using JUnit. |
public int | uncommentLines(int selStart, int selEnd) |
public boolean | undoManagerCanRedo() whether the undo manager can perform any redos. |
public boolean | undoManagerCanUndo() whether the undo manager can perform any undos. |
public void | updateModifiedSinceSave() Sets the document as modified. |
public boolean | verifyExists() If the file exists, returns true. |