本文整理了Java中org.eclipse.emf.common.notify.Adapter.notifyChanged()
方法的一些代码示例,展示了Adapter.notifyChanged()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Adapter.notifyChanged()
方法的具体详情如下:
包路径:org.eclipse.emf.common.notify.Adapter
类名称:Adapter
方法名:notifyChanged
[英]Notifies that a change to some feature has occurred.
[中]通知某些功能已发生更改。
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.core
private void removedEJBRelation(EJBRelation aRelation, EObject sf) {
Adapter a = getAdapter(aRelation);
if (a != null) {
Notification not = new ENotificationImpl((InternalEObject)aRelation, Notification.REMOVE,(EStructuralFeature) sf, aRelation, null, Notification.NO_INDEX);
a.notifyChanged(not);
}
}
private void addedEJBRelation(EJBRelation aRelation, EObject sf) {
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.core
private void addedEJBRelation(EJBRelation aRelation, EObject sf) {
Adapter a = getAdapter(aRelation);
if (a != null) {
Notification not = new ENotificationImpl((InternalEObject)aRelation, Notification.ADD,(EStructuralFeature) sf, null, aRelation, Notification.NO_INDEX);
a.notifyChanged(not);
}
}
private Adapter getAdapter(EObject anObject) {
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.common
public void eNotify(Notification notification)
{
Adapter[] eAdapters = eBasicAdapterArray();
if (eAdapters != null && eDeliver())
{
for (int i = 0, size = eAdapters.length; i < size; ++i)
{
eAdapters[i].notifyChanged(notification);
}
}
}
代码示例来源:origin: org.eclipse.uml2/org.eclipse.uml2.uml
@Override
public void eNotify(Notification notification) {
if (eDeliver()) {
Adapter[] eBasicAdapters = eBasicAdapterArray();
if (eBasicAdapters == null) {
CacheAdapter cacheAdapter = getCacheAdapter();
if (cacheAdapter != null) {
cacheAdapter.notifyChanged(notification);
}
} else {
for (int i = 0, size = eBasicAdapters.length; i < size; i++) {
eBasicAdapters[i].notifyChanged(notification);
}
}
}
}
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.common
adapter.notifyChanged(notification);
内容来源于网络,如有侵权,请联系作者删除!