Java 类org.eclipse.emf.edit.provider.IChangeNotifier 实例源码

项目:OCCI-Studio    文件:EnumerationLiteralItemProvider.java   
public void notifyChanged(Notification notification) {
    // last target
    if(notification.getNotifier() != null &&  getTarget() != null && notification.getNotifier() == ((EnumerationLiteral) getTarget()).getEnumerationType()) {
        ((IChangeNotifier) getAdapterFactory()).removeListener(this);
        fireNotifyChanged(new ViewerNotification(notification, getTarget(), false, true));
        ((IChangeNotifier) getAdapterFactory()).addListener(this);
    }
          // other targets
    if(targets != null){
    for (Notifier target : targets){
        if(notification.getNotifier() != null &&  target != null && notification.getNotifier() == ((EnumerationLiteral) getTarget()).getEnumerationType()) {
            ((IChangeNotifier) getAdapterFactory()).removeListener(this);
            fireNotifyChanged(new ViewerNotification(notification, target, false, true));
            ((IChangeNotifier) getAdapterFactory()).addListener(this);
        }
    }}
}
项目:OCCI-Studio    文件:EnumerationLiteralItemProvider.java   
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public EnumerationLiteralItemProvider(AdapterFactory adapterFactory) {
    super(adapterFactory);
    if(adapterFactory instanceof IChangeNotifier) {
        IChangeNotifier cn = (IChangeNotifier) adapterFactory;
        changeListener = new ChangeListener();
        cn.addListener(changeListener);
    }
}
项目:OCCI-Studio    文件:TransitionItemProvider.java   
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public TransitionItemProvider(AdapterFactory adapterFactory) {
    super(adapterFactory);
    if(adapterFactory instanceof IChangeNotifier) {
        IChangeNotifier cn = (IChangeNotifier) adapterFactory;
        changeListener = new ChangeListener();
        cn.addListener(changeListener);
    }
}
项目:OCCI-Studio    文件:FSMItemProvider.java   
/**
 * This constructs an instance from a factory and a notifier.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated NOT
 */
public FSMItemProvider(AdapterFactory adapterFactory) {
    super(adapterFactory);
    if (adapterFactory instanceof IChangeNotifier) {
        IChangeNotifier cn = (IChangeNotifier) adapterFactory;
        changeListener = new ChangeListener();
        cn.addListener(changeListener);
    }
}
项目:OCCI-Studio    文件:EnumerationLiteralItemProvider.java   
public void dispose() {
    super.dispose();
    if(changeListener != null) {
        ((IChangeNotifier)getAdapterFactory()).removeListener(changeListener);
    }
}
项目:OCCI-Studio    文件:TransitionItemProvider.java   
public void dispose() {
    super.dispose();
    if(changeListener != null) {
        ((IChangeNotifier)getAdapterFactory()).removeListener(changeListener);
    }
}
项目:OCCI-Studio    文件:FSMItemProvider.java   
public void dispose() {
    super.dispose();
    if (changeListener != null) {
        ((IChangeNotifier) getAdapterFactory()).removeListener(changeListener);
    }
}
项目:OpenSPIFe    文件:AdapterFactoryTreeTimelineContentProvider.java   
public AdapterFactoryTreeTimelineContentProvider(AdapterFactory adapterFactory) {
    this.provider = new AdapterFactoryContentProvider(adapterFactory);
    if (adapterFactory instanceof IChangeNotifier) {
        ((IChangeNotifier)adapterFactory).addListener(listener);
    }
}
项目:OpenSPIFe    文件:ChartTimelineContentProvider.java   
@Override
public void activate() {
    if (this.adapterFactory instanceof IChangeNotifier) {
        ((IChangeNotifier) this.adapterFactory).addListener(listener);
    }
}
项目:OpenSPIFe    文件:ChartTimelineContentProvider.java   
@Override
public void dispose() {
    if (this.adapterFactory instanceof IChangeNotifier) {
        ((IChangeNotifier) this.adapterFactory).removeListener(listener);
    }
}
项目:OpenSPIFe    文件:PlanTimelineContentProvider.java   
@Override
public void activate() {
    if (this.adapterFactory instanceof IChangeNotifier) {
        ((IChangeNotifier) this.adapterFactory).addListener(listener);
    }
}
项目:OpenSPIFe    文件:PlanTimelineContentProvider.java   
@Override
public void dispose() {
    if (this.adapterFactory instanceof IChangeNotifier) {
        ((IChangeNotifier) this.adapterFactory).removeListener(listener);
    }
}