/** * Attempt to remove the specified change set * from the collection of moved change sets. * Return true if the change set was moved earlier * and was successfully removed. */ private boolean removeMovedChangeSet(Object changeSet) { int changeSetIndex = this.getMovesIndexOf(changeSet); if (changeSetIndex == -1) { return false; } this.getMoves().remove(changeSetIndex); int beforeMoveIndex = this.getBeforeMoveIndex(changeSetIndex); this.setMoveIndexPairs(this.removeFrom(changeSetIndex, this.getMoveIndexPairs())); // now move the change set over to the collection of removes this.addRemovedChangeSet(changeSet, beforeMoveIndex); return true; }
/** * Attempt to remove the specified change set * from the collection of moved change sets. * Return true if the change set was moved earlier * and was successfully removed. */ private boolean removeMovedChangeSet(Object changeSet) { int changeSetIndex = this.getMovesIndexOf(changeSet); if (changeSetIndex == -1) { return false; } this.getMoves().remove(changeSetIndex); int beforeMoveIndex = this.getBeforeMoveIndex(changeSetIndex); this.setMoveIndexPairs(this.removeFrom(changeSetIndex, this.getMoveIndexPairs())); // now move the change set over to the collection of removes this.addRemovedChangeSet(changeSet, beforeMoveIndex); return true; }
/** * Attempt to remove the specified change set * from the collection of moved change sets. * Return true if the change set was moved earlier * and was successfully removed. */ private boolean removeMovedChangeSet(Object changeSet) { int changeSetIndex = this.getMovesIndexOf(changeSet); if (changeSetIndex == -1) { return false; } this.getMoves().remove(changeSetIndex); int beforeMoveIndex = this.getBeforeMoveIndex(changeSetIndex); this.setMoveIndexPairs(this.removeFrom(changeSetIndex, this.getMoveIndexPairs())); // now move the change set over to the collection of removes this.addRemovedChangeSet(changeSet, beforeMoveIndex); return true; }