public Object move(int oldIndex, int newIndex) { checkRealm(); return decorated.move(oldIndex, newIndex); }
/** * Moves the element in the observable list located at the given old index * to the given new index. * * @param observableList * @param oldIndex * @param newIndex * @return a status * @since 1.2 */ protected IStatus doMove(IObservableList observableList, int oldIndex, int newIndex) { try { observableList.move(oldIndex, newIndex); } catch (Exception ex) { return logErrorWhileSettingValue(ex); } return Status.OK_STATUS; }
/** * Moves the element in the observable list located at the given old index * to the given new index. * * @param observableList * @param oldIndex * @param newIndex * @return a status * @since 1.2 */ protected IStatus doMove(IObservableList<? super D> observableList, int oldIndex, int newIndex) { try { observableList.move(oldIndex, newIndex); } catch (Exception ex) { return logErrorWhileSettingValue(ex); } return Status.OK_STATUS; }
/** * Moves the element in the observable list located at the given old index * to the given new index. * * @param observableList * @param oldIndex * @param newIndex * @return a status * @since 1.2 */ protected IStatus doMove(IObservableList observableList, int oldIndex, int newIndex) { try { observableList.move(oldIndex, newIndex); } catch (Exception ex) { return ValidationStatus .error( BindingMessages .getString(BindingMessages.VALUEBINDING_ERROR_WHILE_SETTING_VALUE), ex); } return Status.OK_STATUS; }
public Object move(final int oldIndex, final int newIndex) { if (innerObservableList != null) { ObservableTracker.setIgnore(true); try { return innerObservableList.move(oldIndex, newIndex); } finally { ObservableTracker.setIgnore(false); } } return super.move(oldIndex, newIndex); }