Package org.eclipse.ltk.core.refactoring
Class CategorizedTextEditGroup
- java.lang.Object
-
- org.eclipse.text.edits.TextEditGroup
-
- org.eclipse.ltk.core.refactoring.CategorizedTextEditGroup
-
public class CategorizedTextEditGroup extends TextEditGroup
A special text edit group that manages an additional set of group categories.Note: this class is not intended to be subclassed
- Since:
- 3.2
- Restriction:
- This class is not intended to be subclassed by clients.
-
-
Constructor Summary
Constructors Constructor Description CategorizedTextEditGroup(String name, GroupCategorySet groupCategories)
Creates a new text edit group with the given name and group categories.CategorizedTextEditGroup(String name, TextEdit[] edits, GroupCategorySet groupCategories)
Creates a new text edit group with the given name, array of edits and a set of group categories.CategorizedTextEditGroup(String name, TextEdit edit, GroupCategorySet groupCategories)
Creates a new text edit group with a name, a singleTextEdit
and a set of group categories.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GroupCategorySet
getGroupCategorySet()
Returns the set of group categories.-
Methods inherited from class org.eclipse.text.edits.TextEditGroup
addTextEdit, clearTextEdits, getName, getRegion, getTextEdits, isEmpty, removeTextEdit
-
-
-
-
Constructor Detail
-
CategorizedTextEditGroup
public CategorizedTextEditGroup(String name, GroupCategorySet groupCategories)
Creates a new text edit group with the given name and group categories.- Parameters:
name
- the name of the text edit group. Must be a human readable stringgroupCategories
- a set of group categories
-
CategorizedTextEditGroup
public CategorizedTextEditGroup(String name, TextEdit edit, GroupCategorySet groupCategories)
Creates a new text edit group with a name, a singleTextEdit
and a set of group categories.- Parameters:
name
- the name of the text edit group. Must be a human readable stringedit
- the edit to managegroupCategories
- a set of group categories
-
CategorizedTextEditGroup
public CategorizedTextEditGroup(String name, TextEdit[] edits, GroupCategorySet groupCategories)
Creates a new text edit group with the given name, array of edits and a set of group categories.- Parameters:
name
- the name of the text edit group. Must be a human readable stringedits
- the array of editsgroupCategories
- a set of group categories
-
-
Method Detail
-
getGroupCategorySet
public GroupCategorySet getGroupCategorySet()
Returns the set of group categories.- Returns:
- the group categories of this text edit group
-
-