本文整理匯總了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);
}
}
}
};
}