org.eclipse.jdt.core
Interface IBuffer.ITextEditCapability
-
Enclosing interface:
-
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.
-
Since:
- 3.4
applyTextEdit
UndoEdit applyTextEdit(
TextEdit edit,
IProgressMonitor monitor)
throws
JavaModelException
- Applies a text edit to this underlying buffer.
-
-
Parameters:
-
edit - the edit to apply -
monitor - the progress monitor to use or null if no progress should be reported
-
Returns:
- the undo edit
-
Throws:
-
JavaModelException
- if this edit can not be applied to the buffer. Reasons include:
Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.