当前位置: 首页>>代码示例>>Java>>正文


Java IDiff类代码示例

本文整理汇总了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);
  }
}
 
开发者ID:terraframe,项目名称:Runway-SDK,代码行数:17,代码来源:SimplePropertyListener.java

示例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));
		}
	};
}
 
开发者ID:frincon,项目名称:openeos,代码行数:11,代码来源:UIPresenterSetProperty.java

示例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);
	}
}
 
开发者ID:frincon,项目名称:openeos,代码行数:15,代码来源:UIPresenterPropertyListener.java

示例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);
    }
  };
}
 
开发者ID:terraframe,项目名称:Runway-SDK,代码行数:11,代码来源:EncryptionValueProperty.java

示例5: CheckboxSelectionListener

import org.eclipse.core.databinding.observable.IDiff; //导入依赖的package包/类
public CheckboxSelectionListener(IProperty property, ISimplePropertyListener<Checkbox, IDiff> listener) {
	super(property, listener);
}
 
开发者ID:vogellacompany,项目名称:swt-custom-widgets,代码行数:4,代码来源:CheckboxSelectionListener.java

示例6: computeDiff

import org.eclipse.core.databinding.observable.IDiff; //导入依赖的package包/类
protected abstract IDiff computeDiff(Object oldValue, Object newValue); 
开发者ID:frincon,项目名称:openeos,代码行数:2,代码来源:UIPresenterPropertyListener.java


注:本文中的org.eclipse.core.databinding.observable.IDiff类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。