@Override protected Object calculate () { return ! ( (Boolean)this.value.getValue () ); } }
@SuppressWarnings("unchecked") @Override public E getValue() { return (E) this.value.getValue(); }
@Override public void handleValueChange(ValueChangeEvent<? extends IStatus> event) { statusChanged(validationStatus.getValue()); } };
private Object getLiveValue() { for (int i = 0; i < options.length; i++) { if (Boolean.TRUE.equals(options[i].observable.getValue())) return options[i].value; } return null; }
public void handleValueChange(ValueChangeEvent event) { if (updatingTarget) return; IStatus status = (IStatus) validationStatus.getValue(); if (isValid(status)) internalSetValue(event.diff.getNewValue(), false); else makeStale(); } };
public Object set(int index, Object element) { IObservableValue detail = (IObservableValue) detailList.get(index); Object oldElement = detail.getValue(); detail.setValue(element); return oldElement; }
private void statusProviderChanged() { currentStatusProvider = (ValidationStatusProvider) aggregateStatusProvider .getValue(); if (currentStatusProvider != null) { currentStatus = currentStatusProvider .getValidationStatus().getValue(); } else { currentStatus = null; } currentStatusStale = aggregateStatusProvider.isStale(); handleStatusChanged(); }
@Override public void handleValueChange(ValueChangeEvent event) { IStatus oldStatus = (IStatus) event.diff.getOldValue(); IStatus newStatus = (IStatus) event.diff.getNewValue(); if (stale && !isValid(oldStatus) && isValid(newStatus)) { internalSetValue(target.getValue(), false); } } };
public void handleValueChange(ValueChangeEvent event) { IStatus oldStatus = (IStatus) event.diff.getOldValue(); IStatus newStatus = (IStatus) event.diff.getNewValue(); if (stale && !isValid(oldStatus) && isValid(newStatus)) { internalSetValue(target.getValue(), false); } } };
@Override public void handleListChange(ListChangeEvent<? extends IObservable> event) { event.diff.accept(new TargetsListDiffAdvisor<>()); statusChanged(validationStatus.getValue()); }
protected Object doPut(Object key, Object value) { IObservableValue detailValue = getDetailObservableValue(key); Object oldValue = detailValue.getValue(); detailValue.setValue(value); return oldValue; }
public Object doGetValue() { if (innerObservableValue == null) return null; ObservableTracker.setIgnore(true); try { return innerObservableValue.getValue(); } finally { ObservableTracker.setIgnore(false); } }
/** * Returns whether the viewer is disposed. Collection change listeners in * subclasses should verify that the viewer is not disposed before sending * any updates to the {@link ViewerUpdater viewer updater}. * * @return whether the viewer is disposed. */ protected final boolean isViewerDisposed() { Viewer viewer = (Viewer) viewerObservable.getValue(); return viewer == null || viewer.getControl() == null || viewer.getControl().isDisposed(); }
public Object put(Object key, Object value) { if (!containsKey(key)) { return null; } IObservableValue detailValue = getDetailObservableValue(key); Object oldValue = detailValue.getValue(); detailValue.setValue(value); return oldValue; }
public Object remove(Object key) { checkRealm(); if (!containsKey(key)) { return null; } IObservableValue detailValue = getDetailObservableValue(key); Object oldValue = detailValue.getValue(); keySet().remove(key); return oldValue; }
public Object get(Object key) { getterCalled(); if (!containsKey(key)) { return null; } IObservableValue detailValue = getDetailObservableValue(key); return detailValue.getValue(); }
protected boolean isViewerDisposed() { Viewer viewer = (Viewer) viewerObservable.getValue(); return viewer == null || viewer.getControl() == null || viewer.getControl().isDisposed(); }
protected Object doGetValue() { if (dirty) { cachedValue = observable.getValue(); dirty = false; if (updater != null && !updater.running) { fireValueChange(Diffs.createValueDiff(updater.oldValue, cachedValue)); cancelScheduledUpdate(); } } return cachedValue; }
public Object remove(Object key) { checkRealm(); if (!containsKey(key)) { return null; } IObservableValue detailValue = getDetailObservableValue(key); Object oldValue = detailValue.getValue(); masterMap.remove(key); return oldValue; }