Package org.eclipse.ltk.core.refactoring
Class TextEditBasedChangeGroup
java.lang.Object
org.eclipse.ltk.core.refactoring.TextEditBasedChangeGroup
- Direct Known Subclasses:
TextEditChangeGroup
This class is a wrapper around a
TextEditGroup
adding support for marking a group as active and inactive.
Note: this class is not intended to be extended by clients.
- Since:
- 3.2
- See Also:
- Restriction:
- This class is not intended to be subclassed by clients.
-
Constructor Summary
ConstructorDescriptionTextEditBasedChangeGroup
(TextEditBasedChange change, TextEditGroup group) Creates newTextEditBasedChangeGroup
for the givenTextEditBasedChange
andTextEditGroup
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of group categories.getName()
Returns the groups's name by forwarding the method to the underlying text edit group.Returns the region covered by the underlying text edit group.Returns the text edit change this group belongs to.Returns the underlying text edit group.TextEdit[]
Returns the text edits managed by the underlying text edit group.boolean
Returns whether the group is enabled or not.void
setEnabled
(boolean enabled) Marks the group as enabled or disabled.
-
Constructor Details
-
TextEditBasedChangeGroup
Creates newTextEditBasedChangeGroup
for the givenTextEditBasedChange
andTextEditGroup
.- Parameters:
change
- the change owning this text edit change groupgroup
- the underlying text edit group
-
-
Method Details
-
getTextEditChange
Returns the text edit change this group belongs to.- Returns:
- the text edit change this group belongs to
-
getName
Returns the groups's name by forwarding the method to the underlying text edit group.- Returns:
- the group's name
-
getRegion
Returns the region covered by the underlying text edit group.- Returns:
- the region covered by the underlying text edit group
-
getTextEditGroup
Returns the underlying text edit group.- Returns:
- the underlying text edit group
-
getTextEdits
Returns the text edits managed by the underlying text edit group.- Returns:
- the text edits managed by the underlying text edit group
-
isEnabled
public boolean isEnabled()Returns whether the group is enabled or not.- Returns:
true
if the group is marked as enabled;false
otherwise
-
setEnabled
public void setEnabled(boolean enabled) Marks the group as enabled or disabled. If a group is marked as disabled the text edits managed by the underlying text edit group aren't executed when performing the text change that owns this group.- Parameters:
enabled
-true
to mark this group as enabled,false
to mark it as disabled
-
getGroupCategorySet
Returns the set of group categories.- Returns:
- the group categories of this change group
-