|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Edit
interface contains a single method,
applyEdit
used to apply an edit (single or compound)
to a document. IDE Addins can provide a class, which implements
this interface, to do all the inserts and removes for a single
undoable (or non-undoable) edit, and use the
EditProcessor
to apply the edit so that any
notifications and undos are handled properly.
EditProcessor
Method Summary | |
void |
applyEdit(TextBuffer textBuffer)
Applies the edits the first time through in proper sequence. |
java.lang.String |
getUndoName()
Fetches the human-readable (translateable) name for this undo, typically displayed in the Edit->Undo menu item. |
boolean |
isUndoable()
Fetches whether this edit should be undoable or not. |
Method Detail |
public void applyEdit(TextBuffer textBuffer)
textBuffer
- the text buffer to apply the edit to, this is
associated with the document passed to the EditProcessorpublic boolean isUndoable()
public java.lang.String getUndoName()
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.