Search in sources :

Example 1 with TextEditGroupNode

use of org.eclipse.ltk.internal.ui.refactoring.TextEditGroupNode 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;
}
Also used : MultiStateTextFileChange(org.eclipse.ltk.core.refactoring.MultiStateTextFileChange) TextEditBasedChange(org.eclipse.ltk.core.refactoring.TextEditBasedChange) TextEditGroupNode(org.eclipse.ltk.internal.ui.refactoring.TextEditGroupNode) TextEditBasedChangeGroup(org.eclipse.ltk.core.refactoring.TextEditBasedChangeGroup)

Aggregations

MultiStateTextFileChange (org.eclipse.ltk.core.refactoring.MultiStateTextFileChange)1 TextEditBasedChange (org.eclipse.ltk.core.refactoring.TextEditBasedChange)1 TextEditBasedChangeGroup (org.eclipse.ltk.core.refactoring.TextEditBasedChangeGroup)1 TextEditGroupNode (org.eclipse.ltk.internal.ui.refactoring.TextEditGroupNode)1