public class TextEditBasedChangeGroup extends Object
TextEditGroup
adding support for marking a group as active and inactive.
Note: this class is not intended to be extended by clients.
TextEditGroup
Constructor and Description |
---|
TextEditBasedChangeGroup(TextEditBasedChange change,
TextEditGroup group)
Creates new
TextEditBasedChangeGroup for the given
TextEditBasedChange and TextEditGroup . |
Modifier and Type | Method and Description |
---|---|
GroupCategorySet |
getGroupCategorySet()
Returns the set of group categories.
|
String |
getName()
Returns the groups's name by forwarding the method
to the underlying text edit group.
|
IRegion |
getRegion()
Returns the region covered by the underlying
text edit group.
|
TextEditBasedChange |
getTextEditChange()
Returns the text edit change this group belongs to.
|
TextEditGroup |
getTextEditGroup()
Returns the underlying text edit group.
|
TextEdit[] |
getTextEdits()
Returns the text edits managed by the underlying
text edit group.
|
boolean |
isEnabled()
Returns whether the group is enabled or not.
|
void |
setEnabled(boolean enabled)
Marks the group as enabled or disabled.
|
public TextEditBasedChangeGroup(TextEditBasedChange change, TextEditGroup group)
TextEditBasedChangeGroup
for the given
TextEditBasedChange
and TextEditGroup
.change
- the change owning this text edit change groupgroup
- the underlying text edit grouppublic TextEditBasedChange getTextEditChange()
public String getName()
public IRegion getRegion()
public TextEditGroup getTextEditGroup()
public TextEdit[] getTextEdits()
public boolean isEnabled()
true
if the group is marked as
enabled; false
otherwisepublic void setEnabled(boolean enabled)
enabled
- true
to mark this group
as enabled, false
to mark it as disabledpublic GroupCategorySet getGroupCategorySet()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.