use of org.eclipse.ltk.core.refactoring.TextEditBasedChangeGroup in project che by eclipse.
the class TextEditChangeNode method createChildNodes.
protected ChildNode[] createChildNodes() {
TextEditBasedChange change = getTextEditBasedChange();
if (change instanceof MultiStateTextFileChange) {
// no edit preview & edit disabling possible in the MultiStateTextFileChange (edits must be applied in sequence)
return new ChildNode[0];
}
TextEditBasedChangeGroup[] groups = getSortedChangeGroups(change);
ChildNode[] result = new ChildNode[groups.length];
for (int i = 0; i < groups.length; i++) {
result[i] = new TextEditGroupNode(this, groups[i]);
}
return result;
}
Aggregations