@Override public void move(int arg0, E arg1) { synchronized (mutex) { list.move(arg0, arg1); } }
@Override public void doRedo() { ownerList.move(index, oldIndex); }
/** * Delegates to {@link #delegateEList}. */ public void move(int index, Map.Entry<K, V> object) { delegateEList.move(index, (Entry<K, V>)object); }
@Override public E move(int arg0, int arg1) { synchronized (mutex) { return list.move(arg0, arg1); } }
/** * Delegates to {@link #delegateEList}. */ public Map.Entry<K, V> move(int targetIndex, int sourceIndex) { return delegateEList.move(targetIndex, sourceIndex); }
/** * Reverses the order of the elements in the specified EList. */ public static void reverse(EList<?> list) { int last = list.size() - 1; for (int i = 0; i < last; i++) { list.move(i, last); } }
@Override public void doExecute() { if (oldIndex == -1) { oldIndex = ownerList.indexOf(value); } ownerList.move(index, oldIndex); }
@Override public Object move(int newPosition, int oldPosition) { checkRealm(); return ((EList< ? >)wrappedList).move(newPosition, oldPosition); }
@Override public Object move(int oldIndex, int newIndex) { checkRealm(); return ((EList< ? >)wrappedList).move(newIndex, oldIndex); }
@Override protected void delegateAdd(int index, ConnectorEnd connectorEnd) { int delegateIndex = delegateList.indexOf(connectorEnd); if (delegateIndex != -1) { if (index != delegateIndex) { delegateList.move(index, connectorEnd); } } else if (index < delegateList.size()) { delegateList.add(index, connectorEnd); } else { delegateList.add(connectorEnd); } }
@Override protected void createMoveListChange(EList<?> oldList, EList<ListChange> listChanges, Object value, int index, int toIndex) { CDOMoveFeatureDeltaImpl delta = new CDOMoveFeatureDeltaImpl(feature, toIndex, index); // fix until ListDifferenceAnalyzer delivers the correct value (same problem as bug #308618). delta.setValue(oldList.get(index)); changes.add(delta); oldList.move(toIndex, index); } };
@Override public Object move(final InternalEObject object, final EStructuralFeature feature, final int targetIndex, final int sourceIndex) { this.assertIsOwner(object); checkNotNull(feature, "Precondition violation - argument 'feature' must not be NULL!"); return this.getListOfValuesFor(feature).move(targetIndex, sourceIndex); }
public Object move(InternalEObject eObject, EStructuralFeature feature, int targetIndex, int sourceIndex) { Entry entry = new Entry(eObject, feature); return getList(entry).move(targetIndex, sourceIndex); }
/** * Convenience method added to allow subclasses to modify the default implementation * for the scenario in which an element was moved in the monitored list. * @see #createListChanges(EList, EList, EList) */ protected void createMoveListChange(EList<?> oldList, EList<ListChange> listChanges, Object newObject, int index, int toIndex) { ListChange listChange = createListChange(listChanges, ChangeKind.MOVE_LITERAL, index); listChange.setMoveToIndex(toIndex); oldList.move(toIndex, index); }
public Object move(InternalEObject eObject, EStructuralFeature feature, int targetIndex, int sourceIndex) { Entry entry = new Entry(eObject, feature); return getList(entry).move(targetIndex, sourceIndex); }
public Object move(InternalEObject eObject, EStructuralFeature feature, int targetIndex, int sourceIndex) { int dynamicFeatureID = eDynamicFeatureID(eObject, feature); return getValueAsList(eObject, dynamicFeatureID).move(targetIndex, sourceIndex); }
@Override protected void didMove(int index, XmlTypeMapping movedObject, int oldIndex) { getPersistentTypes().move(index, movedObject.getPersistentType()); }
public Object move(InternalEObject eObject, EStructuralFeature feature, int targetIndex, int sourceIndex) { int transientIndex = getTransientFeatureIndex(eObject, feature); return getValueAsList(eObject, transientIndex).move(targetIndex, sourceIndex); }
/** * Convenience method added to allow subclasses to modify the default implementation * for the scenario in which an element was moved in the monitored list. * @see #createListChanges(EList, EList, EList) */ protected void createMoveListChange(EList<?> oldList, EList<ListChange> listChanges, Object newObject, int index, int toIndex) { ListChange listChange = createListChange(listChanges, ChangeKind.MOVE_LITERAL, index); listChange.setMoveToIndex(toIndex); oldList.move(toIndex, index); }
@Override protected void didAdd(int index, XmlTypeMapping newObject) { XmlPersistentType type = newObject.getPersistentType(); if (getPersistentTypes().contains(type)) { // the type has been remapped. don't remove, simply move. getPersistentTypes().move(index, type); } else { getPersistentTypes().add(index, type); } }