private ListRewriteEvent getEvent() { return getRewriteStore().getListEvent(this.parent, this.childListProperty, true); }
private ListRewriteEvent getEvent() { return getRewriteStore().getListEvent(this.parent, this.childListProperty, true); }
private ListRewriteEvent getEvent() { return getRewriteStore().getListEvent(this.parent, this.childListProperty, true); }
private ListRewriteEvent getEvent() { return getRewriteStore().getListEvent(this.parent, this.childListProperty, true); }
private ListRewriteEvent getEvent() { return getRewriteStore().getListEvent(this.parent, this.childListProperty, true); }
private ListRewriteEvent getEvent() { return getRewriteStore().getListEvent(this.parent, this.childProperty, true); }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { validatePropertyType(node); RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { validatePropertyType(node); RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { validatePropertyType(node); RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { validatePropertyType(node); RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private void internalInsertAt(ASTNode node, int index, boolean boundToPrevious, TextEditGroup editGroup) { validatePropertyType(node); RewriteEvent event= getEvent().insert(node, index); if (boundToPrevious) { getRewriteStore().setInsertBoundToPrevious(node); } if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
private ASTNode createTargetNode(ASTNode first, ASTNode last, boolean isMove, ASTNode replacingNode, TextEditGroup editGroup) { if (first == null || last == null) { throw new IllegalArgumentException(); } NodeInfoStore nodeStore= this.rewriter.getNodeStore(); ASTNode placeholder= nodeStore.newPlaceholderNode(first.getNodeType()); // revisit: could use list type if (placeholder == null) { throw new IllegalArgumentException("Creating a target node is not supported for nodes of type" + first.getClass().getName()); //$NON-NLS-1$ } Block internalPlaceHolder= nodeStore.createCollapsePlaceholder(); CopySourceInfo info= getRewriteStore().createRangeCopy(this.parent, this.childListProperty, first, last, isMove, internalPlaceHolder, replacingNode, editGroup); nodeStore.markAsCopyTarget(placeholder, info); return placeholder; }
private ASTNode createTargetNode(ASTNode first, ASTNode last, boolean isMove, ASTNode replacingNode, TextEditGroup editGroup) { if (first == null || last == null) { throw new IllegalArgumentException(); } NodeInfoStore nodeStore= this.rewriter.getNodeStore(); ASTNode placeholder= nodeStore.newPlaceholderNode(first.getNodeType()); // revisit: could use list type if (placeholder == null) { throw new IllegalArgumentException("Creating a target node is not supported for nodes of type" + first.getClass().getName()); //$NON-NLS-1$ } Block internalPlaceHolder= nodeStore.createCollapsePlaceholder(); CopySourceInfo info= getRewriteStore().createRangeCopy(this.parent, this.childListProperty, first, last, isMove, internalPlaceHolder, replacingNode, editGroup); nodeStore.markAsCopyTarget(placeholder, info); return placeholder; }
private ASTNode createTargetNode(ASTNode first, ASTNode last, boolean isMove, ASTNode replacingNode, TextEditGroup editGroup) { if (first == null || last == null) { throw new IllegalArgumentException(); } NodeInfoStore nodeStore= this.rewriter.getNodeStore(); ASTNode placeholder= nodeStore.newPlaceholderNode(first.getNodeType()); // revisit: could use list type if (placeholder == null) { throw new IllegalArgumentException("Creating a target node is not supported for nodes of type" + first.getClass().getName()); //$NON-NLS-1$ } Block internalPlaceHolder= nodeStore.createCollapsePlaceholder(); CopySourceInfo info= getRewriteStore().createRangeCopy(this.parent, this.childProperty, first, last, isMove, internalPlaceHolder, replacingNode, editGroup); nodeStore.markAsCopyTarget(placeholder, info); return placeholder; }
private ASTNode createTargetNode(ASTNode first, ASTNode last, boolean isMove, ASTNode replacingNode, TextEditGroup editGroup) { if (first == null || last == null) { throw new IllegalArgumentException(); } NodeInfoStore nodeStore= this.rewriter.getNodeStore(); ASTNode placeholder= nodeStore.newPlaceholderNode(first.getNodeType()); // revisit: could use list type if (placeholder == null) { throw new IllegalArgumentException("Creating a target node is not supported for nodes of type" + first.getClass().getName()); //$NON-NLS-1$ } Block internalPlaceHolder= nodeStore.createCollapsePlaceholder(); CopySourceInfo info= getRewriteStore().createRangeCopy(this.parent, this.childListProperty, first, last, isMove, internalPlaceHolder, replacingNode, editGroup); nodeStore.markAsCopyTarget(placeholder, info); return placeholder; }
private ASTNode createTargetNode(ASTNode first, ASTNode last, boolean isMove, ASTNode replacingNode, TextEditGroup editGroup) { if (first == null || last == null) { throw new IllegalArgumentException(); } NodeInfoStore nodeStore= this.rewriter.getNodeStore(); ASTNode placeholder= nodeStore.newPlaceholderNode(first.getNodeType()); // revisit: could use list type if (placeholder == null) { throw new IllegalArgumentException("Creating a target node is not supported for nodes of type" + first.getClass().getName()); //$NON-NLS-1$ } Block internalPlaceHolder= nodeStore.createCollapsePlaceholder(); CopySourceInfo info= getRewriteStore().createRangeCopy(this.parent, this.childListProperty, first, last, isMove, internalPlaceHolder, replacingNode, editGroup); nodeStore.markAsCopyTarget(placeholder, info); return placeholder; }
private ASTNode createTargetNode(ASTNode first, ASTNode last, boolean isMove, ASTNode replacingNode, TextEditGroup editGroup) { if (first == null || last == null) { throw new IllegalArgumentException(); } NodeInfoStore nodeStore= this.rewriter.getNodeStore(); ASTNode placeholder= nodeStore.newPlaceholderNode(first.getNodeType()); // revisit: could use list type if (placeholder == null) { throw new IllegalArgumentException("Creating a target node is not supported for nodes of type" + first.getClass().getName()); //$NON-NLS-1$ } Block internalPlaceHolder= nodeStore.createCollapsePlaceholder(); CopySourceInfo info= getRewriteStore().createRangeCopy(this.parent, this.childListProperty, first, last, isMove, internalPlaceHolder, replacingNode, editGroup); nodeStore.markAsCopyTarget(placeholder, info); return placeholder; }
/** * Removes the given node from its parent's list property in the rewriter. * The node must be contained in the list. * The AST itself is not actually modified in any way; rather, the rewriter * just records a note that this node has been removed from this list. * * @param node the node being removed. The node can either be an original node in this list * or (since 3.4) a new node already inserted or used as replacement in this AST rewriter. * @param editGroup the edit group in which to collect the corresponding * text edits, or <code>null</code> if ungrouped * @throws IllegalArgumentException if the node is null, or if the node is not * part of this rewriter's AST, or if the described modification is invalid * (not a member of this node's original list) */ public void remove(ASTNode node, TextEditGroup editGroup) { if (node == null) { throw new IllegalArgumentException(); } RewriteEvent event= getEvent().removeEntry(node); if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }
/** * Removes the given node from its parent's list property in the rewriter. * The node must be contained in the list. * The AST itself is not actually modified in any way; rather, the rewriter * just records a note that this node has been removed from this list. * * @param node the node being removed. The node can either be an original node in this list * or (since 3.4) a new node already inserted or used as replacement in this AST rewriter. * @param editGroup the edit group in which to collect the corresponding * text edits, or <code>null</code> if ungrouped * @throws IllegalArgumentException if the node is null, or if the node is not * part of this rewriter's AST, or if the described modification is invalid * (not a member of this node's original list) */ public void remove(ASTNode node, TextEditGroup editGroup) { if (node == null) { throw new IllegalArgumentException(); } RewriteEvent event= getEvent().removeEntry(node); if (editGroup != null) { getRewriteStore().setEventEditGroup(event, editGroup); } }