Package org.aspectj.org.eclipse.jdt.core
Schnittstelle IBuffer.ITextEditCapability
- Umschließende Schnittstelle:
IBuffer
public static interface IBuffer.ITextEditCapability
Implementors of
IBuffer can additionally implement IBuffer.ITextEditCapability.
This adds the capability to apply text edits to the buffer and will be used by
ICompilationUnit.applyTextEdit(TextEdit, IProgressMonitor).
This interface may be implemented by clients.
- Seit:
- 3.4
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungorg.eclipse.text.edits.UndoEditapplyTextEdit(org.eclipse.text.edits.TextEdit edit, org.eclipse.core.runtime.IProgressMonitor monitor) Applies a text edit to this underlying buffer.
-
Methodendetails
-
applyTextEdit
org.eclipse.text.edits.UndoEdit applyTextEdit(org.eclipse.text.edits.TextEdit edit, org.eclipse.core.runtime.IProgressMonitor monitor) throws JavaModelException Applies a text edit to this underlying buffer.- Parameter:
edit- the edit to applymonitor- the progress monitor to use ornullif no progress should be reported- Gibt zurück:
- the undo edit
- Löst aus:
JavaModelException- if this edit can not be applied to the buffer. Reasons include:- The provided edit can not be applied as there is a problem with the text edit locations (
IJavaModelStatusConstants.BAD_TEXT_EDIT_LOCATION)}.
- The provided edit can not be applied as there is a problem with the text edit locations (
-