本文整理汇总了Java中org.eclipse.core.databinding.observable.IDiff类的典型用法代码示例。如果您正苦于以下问题:Java IDiff类的具体用法?Java IDiff怎么用?Java IDiff使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IDiff类属于org.eclipse.core.databinding.observable包,在下文中一共展示了IDiff类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: propertyChange
import org.eclipse.core.databinding.observable.IDiff; //导入依赖的package包/类
public void propertyChange(PropertyChangeEvent evt)
{
if (evt.getPropertyName() == null || propertyName.equals(evt.getPropertyName()))
{
Object oldValue = evt.getOldValue();
Object newValue = evt.getNewValue();
IDiff diff = null;
if (evt.getPropertyName() != null && oldValue != null && newValue != null)
{
diff = computeDiff(oldValue, newValue);
}
fireChange(evt.getSource(), diff);
}
}
示例2: adaptListener
import org.eclipse.core.databinding.observable.IDiff; //导入依赖的package包/类
@Override
public INativePropertyListener adaptListener(ISimplePropertyListener listener) {
return new UIPresenterPropertyListener(this, propertyName, listener) {
@Override
protected IDiff computeDiff(Object oldValue, Object newValue) {
return Diffs.computeSetDiff(asSet(oldValue), asSet(newValue));
}
};
}
示例3: propertyChange
import org.eclipse.core.databinding.observable.IDiff; //导入依赖的package包/类
@Override
public void propertyChange(PropertyChangeEvent evt) {
if (evt.getPropertyName() == null || evt.getPropertyName().equalsIgnoreCase(propertyName)) {
Object oldValue = evt.getOldValue();
Object newValue = evt.getNewValue();
IDiff diff;
if (evt.getPropertyName() == null || oldValue == null || newValue == null)
diff = null;
else
diff = computeDiff(oldValue, newValue);
fireChange(evt.getSource(), diff);
}
}
示例4: adaptListener
import org.eclipse.core.databinding.observable.IDiff; //导入依赖的package包/类
public INativePropertyListener adaptListener(final ISimplePropertyListener listener)
{
return new SimplePropertyListener(this, listener, attributeName)
{
protected IDiff computeDiff(Object oldValue, Object newValue)
{
return Diffs.createValueDiff(oldValue, newValue);
}
};
}
示例5: CheckboxSelectionListener
import org.eclipse.core.databinding.observable.IDiff; //导入依赖的package包/类
public CheckboxSelectionListener(IProperty property, ISimplePropertyListener<Checkbox, IDiff> listener) {
super(property, listener);
}
示例6: computeDiff
import org.eclipse.core.databinding.observable.IDiff; //导入依赖的package包/类
protected abstract IDiff computeDiff(Object oldValue, Object newValue);