Method Summary |
|
public void | acquireReadLock() Swing-style readLock(). |
public void | acquireWriteLock() Swing-style writeLock(). |
public void | addDocumentListener(DocumentListener listener) |
public void | addFinalizationListener(FinalizationListener<DefinitionsDocument> fl) |
public void | addFindResultsManager(RegionManager<MovingDocumentRegion> rm) |
public Style | addStyle(String nm, Style parent) |
public void | addUndoableEditListener(UndoableEditListener listener) |
public void | append(String str, AttributeSet set) |
public void | append(String str, Style style) |
public int | balanceBackward() |
public int | balanceForward() |
public boolean | canAbandonFile() |
public boolean | checkIfClassFileInSync() |
public void | cleanUpPrintJob() |
public void | clear() |
public void | close() |
public int | commentLines(int selStart, int selEnd) |
public int | compareTo(OpenDefinitionsDocument d) |
public Position | createPosition(int offs) |
public Position | createUnwrappedPosition(int offs) |
public void | documentModified() |
public void | documentReset() |
public void | documentSaved() |
public boolean | fileExists() |
public boolean | findCharInStmtBeforePos(char findChar, int position) |
public int | findCharOnLine(int pos, char findChar) |
public int | findNextEnclosingBrace(int pos, char opening, char closing) |
public int | findPrevCharPos(int pos, char[] whitespace) |
public int | findPrevDelimiter(int pos, char[] delims) |
public int | findPrevDelimiter(int pos, char[] delims, boolean skipParenPhrases) |
public int | findPrevEnclosingBrace(int pos, char opening, char closing) |
public int | findPrevNonWSCharPos(int pos) |
public void | generateJavadoc(FileSaveSelector saver) |
public Color | getBackground(AttributeSet attr) |
public RegionManager<DocumentRegion> | getBookmarkManager() |
public RegionManager<Breakpoint> | getBreakpointManager() |
public RegionManager<DocumentRegion> | getBrowserHistoryManager() |
public File | getCachedClassFile() |
public String | getCanonicalPath() |
public int | getCaretPosition() the caret position as set by the view. |
public Element | getCharacterElement(int pos) |
public boolean | getClassFileInSync() |
public String | getCompletePath() |
public int | getCurrentCol() |
public int | getCurrentLine() |
public int | getCurrentLocation() |
public Element | getDefaultRootElement() |
protected DefinitionsDocument | getDocument() |
public DocumentListener[] | getDocumentListeners() |
public String | getEnclosingClassName(int pos, boolean qual) |
public Position | getEndPosition() |
public File | getFile() |
public String | getFileName() |
public List<FinalizationListener<DefinitionsDocument>> | getFinalizationListeners() |
public List<RegionManager<MovingDocumentRegion>> | getFindResultsManagers() |
public int | getFirstNonWSCharPos(int pos) |
public int | getFirstNonWSCharPos(int pos, boolean acceptComments) |
public int | getFirstNonWSCharPos(int pos, char[] whitespace, boolean acceptComments) |
public String | getFirstTopLevelClassName() |
public Font | getFont(AttributeSet attr) |
public Color | getForeground(AttributeSet attr) |
public Vector<HighlightStatus> | getHighlightStatus(int start, int end) |
public INavigatorItem | getIDoc() |
public int | getIndent() |
public IndentInfo | getIndentInformation() |
public String | getIndentOfCurrStmt(int pos) |
public String | getIndentOfCurrStmt(int pos, char[] delims) |
public String | getIndentOfCurrStmt(int pos, char[] delims, char[] whitespace) |
public int | getInitialHorizontalScroll() |
public int | getInitialSelectionEnd() |
public int | getInitialSelectionStart() |
public int | getInitialVerticalScroll() |
public int | getIntelligentBeginLinePos(int currPos) |
public int | getLength() |
public int | getLineEndPos(int pos) |
public int | getLineFirstCharPos(int pos) |
public int | getLineOfOffset(int offset) Translates an offset into the components text to a line number.
Parameters: offset - the offset >= 0 the line number >= 0 exception: BadLocationException - thrown if the offset is less than zero or greater than the document length. |
public int | getLineStartPos(int pos) |
public Style | getLogicalStyle(int p) |
public String | getName() |
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() |
public String | getPackageNameFromDocument() |
public Pageable | getPageable() |
public Element | getParagraphElement(int pos) |
public File | getParentDirectory() |
public Object | getProperty(Object key) |
public String | getQualifiedClassName() |
public String | getQualifiedClassName(int pos) |
public File | getRawFile() |
public Element[] | getRootElements() |
public File | getSourceRoot() |
public Position | getStartPosition() |
public ReducedModelState | getStateAtCurrent() |
public Style | getStyle(String nm) |
public String | getText(int offset, int length) |
public void | getText(int offset, int length, Segment txt) |
public String | getText() |
public long | getTimestamp() |
public CompoundUndoManager | getUndoManager() |
public UndoableEditListener[] | getUndoableEditListeners() |
public int | getWhiteSpace() |
public int | gotoLine(int line) |
public int | id() |
public boolean | inNewProjectPath(File f) |
public boolean | inProject() |
public boolean | inProjectPath() |
public void | indentLines(int selStart, int selEnd) |
public void | indentLines(int selStart, int selEnd, Indenter.IndentReason reason, ProgressMonitor pm) |
public void | insertString(int offset, String str, AttributeSet set) |
public boolean | isAuxiliaryFile() |
public boolean | isEmpty() |
public boolean | isModifiedSinceSave() |
public boolean | isReady() |
public boolean | isSourceFile() |
public boolean | isUntitled() |
public boolean | modifiedOnDisk() |
public void | move(int dist) |
public boolean | posInParenPhrase(int pos) |
public boolean | posInParenPhrase() |
public void | preparePrintJob() |
public void | print() |
public void | putProperty(Object key, Object value) |
public boolean | quitFile() |
public void | releaseReadLock() Swing-style readUnLock(). |
public void | releaseWriteLock() Swing-style writeUnlock(). |
public void | remove(int offs, int len) |
public void | removeDocumentListener(DocumentListener listener) |
public void | removeFindResultsManager(RegionManager<MovingDocumentRegion> rm) |
public void | removeFromDebugger() |
public void | removeStyle(String nm) |
public void | removeUndoableEditListener(UndoableEditListener listener) |
public void | render(Runnable r) |
public void | resetModification() |
public void | resetReducedModelLocation() |
public void | resetUndoManager() |
public void | revertFile() |
public boolean | revertIfModifiedOnDisk() |
public void | runMain() |
public boolean | saveFile(FileSaveSelector com) |
public boolean | saveFileAs(FileSaveSelector com) |
public void | setCachedClassFile(File f) |
public void | setCharacterAttributes(int offset, int length, AttributeSet s, boolean replace) |
public void | setClassFileInSync(boolean val) |
public void | setCurrentLocation(int location) |
public void | setFile(File file) |
public void | setIndent(int indent) |
public void | setLogicalStyle(int pos, Style s) |
public void | setPackage(String s) |
public void | setParagraphAttributes(int offset, int length, AttributeSet s, boolean replace) |
public void | setTab(String tab, int pos) |
public void | startCompile() |
public void | startJUnit() |
public ReducedModelState | stateAtRelLocation(int dist) |
public int | uncommentLines(int selStart, int selEnd) |
public boolean | undoManagerCanRedo() |
public boolean | undoManagerCanUndo() |
public void | updateModifiedSinceSave() |
public boolean | verifyExists() |