| |
|
| java.lang.Object org.eclipse.text.edits.TextEditGroup
TextEditGroup | public class TextEditGroup (Code) | | A text edit group combines a list of
TextEdit s
and a name into a single object. The name must be a human
readable string use to present the text edit group in the
user interface.
Clients may extend this class to add extra information to
a text edit group.
since: 3.0 |
Constructor Summary | |
public | TextEditGroup(String name) Creates a new text edit group with the given name.
Parameters: name - the name of the text edit group. | public | TextEditGroup(String name, TextEdit edit) Creates a new text edit group with a name and a single
TextEdit .
Parameters: name - the name of the text edit group. | public | TextEditGroup(String name, TextEdit[] edits) Creates a new text edit group with the given name and
array of edits.
Parameters: name - the name of the text edit group. |
TextEditGroup | public TextEditGroup(String name)(Code) | | Creates a new text edit group with the given name.
Parameters: name - the name of the text edit group. Must bea human readable string |
TextEditGroup | public TextEditGroup(String name, TextEdit edit)(Code) | | Creates a new text edit group with a name and a single
TextEdit .
Parameters: name - the name of the text edit group. Must bea human readable string Parameters: edit - the edit to manage |
TextEditGroup | public TextEditGroup(String name, TextEdit[] edits)(Code) | | Creates a new text edit group with the given name and
array of edits.
Parameters: name - the name of the text edit group. Must bea human readable string Parameters: edits - the array of edits |
addTextEdit | public void addTextEdit(TextEdit edit)(Code) | | Adds the given
TextEdit to this group.
Parameters: edit - the edit to add |
clearTextEdits | public void clearTextEdits()(Code) | | Removes all text edits from this group.
since: 3.3 |
getName | public String getName()(Code) | | Returns the edit group's name.
the edit group's name |
getRegion | public IRegion getRegion()(Code) | | Returns the text region covered by the edits managed via this
edit group. If the group doesn't manage any edits null
is returned.
the text region covered by this edit group or null if no edits are managed |
getTextEdits | public TextEdit[] getTextEdits()(Code) | | Returns an array of
TextEdit s containing
the edits managed by this group.
the managed text edits |
isEmpty | public boolean isEmpty()(Code) | | Returns true if the list of managed
TextEdit s is empty; otherwise false
is returned.
whether the list of managed text edits isempty or not |
removeTextEdit | public boolean removeTextEdit(TextEdit edit)(Code) | | Removes the given
TextEdit from this group.
Parameters: edit - the edit to remove true if this group contained the specified edit. since: 3.3 |
|
|
|