本文整理汇总了Java中org.eclipse.emf.edit.provider.ChangeNotifier类的典型用法代码示例。如果您正苦于以下问题:Java ChangeNotifier类的具体用法?Java ChangeNotifier怎么用?Java ChangeNotifier使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ChangeNotifier类属于org.eclipse.emf.edit.provider包,在下文中一共展示了ChangeNotifier类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ComposedAdapterFactoryImpl
import org.eclipse.emf.edit.provider.ChangeNotifier; //导入依赖的package包/类
private ComposedAdapterFactoryImpl(Registry adapterFactoryDescriptorRegistry) {
super(adapterFactoryDescriptorRegistry);
changeNotifier = new ChangeNotifier() {
@Override
public void fireNotifyChanged(Notification notification) {
int size = size();
INotifyChangedListener[] listeners = new INotifyChangedListener[size];
toArray(listeners);
int expectedModCount = modCount;
for (int i = 0; i < size; ++i) {
INotifyChangedListener notifyChangedListener = listeners[i];
if (notifyChangedListener == null) {
continue;
}
if (expectedModCount == modCount || this.contains(notifyChangedListener)) {
notifyChangedListener.notifyChanged(notification);
}
}
}
};
}