org.eclipse.emf.common.notify.Notification Java Examples
The following examples show how to use
org.eclipse.emf.common.notify.Notification.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RuleImpl.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public State getDeviceState() { if (deviceState != null && deviceState.eIsProxy()) { InternalEObject oldDeviceState = (InternalEObject)deviceState; deviceState = (State)eResolveProxy(oldDeviceState); if (deviceState != oldDeviceState) { if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.RESOLVE, RuleEnginePackage.RULE__DEVICE_STATE, oldDeviceState, deviceState)); } } return deviceState; }
Example #2
Source File: PoolItemProvider.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(Pool.class)) { case ProcessPackage.POOL__DISPLAY_NAME: case ProcessPackage.POOL__ADDITIONAL_RESOURCES: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; case ProcessPackage.POOL__DOCUMENTS: case ProcessPackage.POOL__SEARCH_INDEXES: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super.notifyChanged(notification); }
Example #3
Source File: MarkerRangeImpl.java From birt with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> <!-- end-user-doc --> * @generated */ public NotificationChain basicSetFill( Fill newFill, NotificationChain msgs ) { Fill oldFill = fill; fill = newFill; if ( eNotificationRequired( ) ) { ENotificationImpl notification = new ENotificationImpl( this, Notification.SET, ComponentPackage.MARKER_RANGE__FILL, oldFill, newFill ); if ( msgs == null ) msgs = notification; else msgs.add( notification ); } return msgs; }
Example #4
Source File: StartTimerEventItemProvider.java From bonita-studio with GNU General Public License v2.0 | 6 votes |
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(StartTimerEvent.class)) { case ProcessPackage.START_TIMER_EVENT__FROM: case ProcessPackage.START_TIMER_EVENT__AT: case ProcessPackage.START_TIMER_EVENT__MONTH: case ProcessPackage.START_TIMER_EVENT__DAY: case ProcessPackage.START_TIMER_EVENT__HOURS: case ProcessPackage.START_TIMER_EVENT__DAY_NUMBER: case ProcessPackage.START_TIMER_EVENT__MINUTES: case ProcessPackage.START_TIMER_EVENT__SECONDS: case ProcessPackage.START_TIMER_EVENT__SCRIPT_TYPE: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
Example #5
Source File: GlobalImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setLocalPull ( PullEvents newLocalPull ) { if ( newLocalPull != localPull ) { NotificationChain msgs = null; if ( localPull != null ) msgs = ( (InternalEObject)localPull ).eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - GlobalizePackage.GLOBAL__LOCAL_PULL, null, msgs ); if ( newLocalPull != null ) msgs = ( (InternalEObject)newLocalPull ).eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - GlobalizePackage.GLOBAL__LOCAL_PULL, null, msgs ); msgs = basicSetLocalPull ( newLocalPull, msgs ); if ( msgs != null ) msgs.dispatch (); } else if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.SET, GlobalizePackage.GLOBAL__LOCAL_PULL, newLocalPull, newLocalPull ) ); }
Example #6
Source File: StandardLoopCharacteristicsImpl.java From fixflow with Apache License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setLoopMaximum(Expression newLoopMaximum) { if (newLoopMaximum != loopMaximum) { NotificationChain msgs = null; if (loopMaximum != null) msgs = ((InternalEObject) loopMaximum).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Bpmn2Package.STANDARD_LOOP_CHARACTERISTICS__LOOP_MAXIMUM, null, msgs); if (newLoopMaximum != null) msgs = ((InternalEObject) newLoopMaximum).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Bpmn2Package.STANDARD_LOOP_CHARACTERISTICS__LOOP_MAXIMUM, null, msgs); msgs = basicSetLoopMaximum(newLoopMaximum, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Bpmn2Package.STANDARD_LOOP_CHARACTERISTICS__LOOP_MAXIMUM, newLoopMaximum, newLoopMaximum)); }
Example #7
Source File: EquinoxApplicationImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public ApplicationConfiguration getConfiguration () { if ( configuration != null && configuration.eIsProxy () ) { InternalEObject oldConfiguration = (InternalEObject)configuration; configuration = (ApplicationConfiguration)eResolveProxy ( oldConfiguration ); if ( configuration != oldConfiguration ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, InfrastructurePackage.EQUINOX_APPLICATION__CONFIGURATION, oldConfiguration, configuration ) ); } } return configuration; }
Example #8
Source File: TemplateImpl.java From M2Doc with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public void setBody(Block newBody) { if (newBody != body) { NotificationChain msgs = null; if (body != null) msgs = ((InternalEObject) body).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TemplatePackage.TEMPLATE__BODY, null, msgs); if (newBody != null) msgs = ((InternalEObject) newBody).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TemplatePackage.TEMPLATE__BODY, null, msgs); msgs = basicSetBody(newBody, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TemplatePackage.TEMPLATE__BODY, newBody, newBody)); }
Example #9
Source File: DefValueImpl.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setValueExpr(Expression newValueExpr) { if (newValueExpr != valueExpr) { NotificationChain msgs = null; if (valueExpr != null) msgs = ((InternalEObject)valueExpr).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - BeeLangTestLanguagePackage.DEF_VALUE__VALUE_EXPR, null, msgs); if (newValueExpr != null) msgs = ((InternalEObject)newValueExpr).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - BeeLangTestLanguagePackage.DEF_VALUE__VALUE_EXPR, null, msgs); msgs = basicSetValueExpr(newValueExpr, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, BeeLangTestLanguagePackage.DEF_VALUE__VALUE_EXPR, newValueExpr, newValueExpr)); }
Example #10
Source File: MBrickletColorImpl.java From openhab1-addons with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void setTfConfig(BrickletColorConfiguration newTfConfig) { if (newTfConfig != tfConfig) { NotificationChain msgs = null; if (tfConfig != null) msgs = ((InternalEObject) tfConfig).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - ModelPackage.MBRICKLET_COLOR__TF_CONFIG, null, msgs); if (newTfConfig != null) msgs = ((InternalEObject) newTfConfig).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - ModelPackage.MBRICKLET_COLOR__TF_CONFIG, null, msgs); msgs = basicSetTfConfig(newTfConfig, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_COLOR__TF_CONFIG, newTfConfig, newTfConfig)); }
Example #11
Source File: PatternImpl.java From n4js with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setQuantifier(Quantifier newQuantifier) { if (newQuantifier != quantifier) { NotificationChain msgs = null; if (quantifier != null) msgs = ((InternalEObject)quantifier).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RegularExpressionPackage.PATTERN__QUANTIFIER, null, msgs); if (newQuantifier != null) msgs = ((InternalEObject)newQuantifier).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RegularExpressionPackage.PATTERN__QUANTIFIER, null, msgs); msgs = basicSetQuantifier(newQuantifier, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, RegularExpressionPackage.PATTERN__QUANTIFIER, newQuantifier, newQuantifier)); }
Example #12
Source File: WorldImpl.java From neoscada with Eclipse Public License 1.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setDefaultCredentials ( Credentials newDefaultCredentials ) { if ( newDefaultCredentials != defaultCredentials ) { NotificationChain msgs = null; if ( defaultCredentials != null ) msgs = ( (InternalEObject)defaultCredentials ).eInverseRemove ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.WORLD__DEFAULT_CREDENTIALS, null, msgs ); if ( newDefaultCredentials != null ) msgs = ( (InternalEObject)newDefaultCredentials ).eInverseAdd ( this, EOPPOSITE_FEATURE_BASE - InfrastructurePackage.WORLD__DEFAULT_CREDENTIALS, null, msgs ); msgs = basicSetDefaultCredentials ( newDefaultCredentials, msgs ); if ( msgs != null ) msgs.dispatch (); } else if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.SET, InfrastructurePackage.WORLD__DEFAULT_CREDENTIALS, newDefaultCredentials, newDefaultCredentials ) ); }
Example #13
Source File: MStepperChipTemperatureImpl.java From openhab1-addons with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void setMbrick(MBrickStepper newMbrick) { if (newMbrick != eInternalContainer() || (eContainerFeatureID() != ModelPackage.MSTEPPER_CHIP_TEMPERATURE__MBRICK && newMbrick != null)) { if (EcoreUtil.isAncestor(this, newMbrick)) { throw new IllegalArgumentException("Recursive containment not allowed for " + toString()); } NotificationChain msgs = null; if (eInternalContainer() != null) { msgs = eBasicRemoveFromContainer(msgs); } if (newMbrick != null) { msgs = ((InternalEObject) newMbrick).eInverseAdd(this, ModelPackage.MSUB_DEVICE_HOLDER__MSUBDEVICES, MSubDeviceHolder.class, msgs); } msgs = basicSetMbrick(newMbrick, msgs); if (msgs != null) { msgs.dispatch(); } } else if (eNotificationRequired()) { eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MSTEPPER_CHIP_TEMPERATURE__MBRICK, newMbrick, newMbrick)); } }
Example #14
Source File: ModelImpl.java From xtext-core with Eclipse Public License 2.0 | 6 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setEnumVal(EnumVal newEnumVal) { if (newEnumVal != enumVal) { NotificationChain msgs = null; if (enumVal != null) msgs = ((InternalEObject)enumVal).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - AssignmentFinderTestPackage.MODEL__ENUM_VAL, null, msgs); if (newEnumVal != null) msgs = ((InternalEObject)newEnumVal).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - AssignmentFinderTestPackage.MODEL__ENUM_VAL, null, msgs); msgs = basicSetEnumVal(newEnumVal, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AssignmentFinderTestPackage.MODEL__ENUM_VAL, newEnumVal, newEnumVal)); }
Example #15
Source File: DefaultTextEditComposer.java From xtext-eclipse with Eclipse Public License 2.0 | 6 votes |
protected boolean doRecord(Notification notification) { if (!recording || notification.isTouch()) return false; switch (notification.getEventType()) { case Notification.ADD: case Notification.ADD_MANY: case Notification.MOVE: case Notification.REMOVE: case Notification.REMOVE_MANY: case Notification.SET: case Notification.UNSET: return true; default: return false; } }
Example #16
Source File: TypeDeclarationTypeImpl.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setExternalReference(ExternalReferenceType newExternalReference) { if (newExternalReference != externalReference) { NotificationChain msgs = null; if (externalReference != null) msgs = ((InternalEObject)externalReference).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - Xpdl1Package.TYPE_DECLARATION_TYPE__EXTERNAL_REFERENCE, null, msgs); if (newExternalReference != null) msgs = ((InternalEObject)newExternalReference).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - Xpdl1Package.TYPE_DECLARATION_TYPE__EXTERNAL_REFERENCE, null, msgs); msgs = basicSetExternalReference(newExternalReference, msgs); if (msgs != null) msgs.dispatch(); } else if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Xpdl1Package.TYPE_DECLARATION_TYPE__EXTERNAL_REFERENCE, newExternalReference, newExternalReference)); }
Example #17
Source File: TypedElementImpl.java From n4js with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetDeclaredTypeRef(TypeRef newDeclaredTypeRef, NotificationChain msgs) { TypeRef oldDeclaredTypeRef = declaredTypeRef; declaredTypeRef = newDeclaredTypeRef; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.TYPED_ELEMENT__DECLARED_TYPE_REF, oldDeclaredTypeRef, newDeclaredTypeRef); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
Example #18
Source File: ArgumentPairImpl.java From gama with GNU General Public License v3.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setOp(String newOp) { String oldOp = op; op = newOp; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, GamlPackage.ARGUMENT_PAIR__OP, oldOp, op)); }
Example #19
Source File: ExecutionFlowImpl.java From statecharts with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public NotificationChain basicSetStateVector(StateVector newStateVector, NotificationChain msgs) { StateVector oldStateVector = stateVector; stateVector = newStateVector; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SexecPackage.EXECUTION_FLOW__STATE_VECTOR, oldStateVector, newStateVector); if (msgs == null) msgs = notification; else msgs.add(notification); } return msgs; }
Example #20
Source File: WeightedEdgeImpl.java From graphical-lsp with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setProbability(String newProbability) { String oldProbability = probability; probability = newProbability; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, WfgraphPackage.WEIGHTED_EDGE__PROBABILITY, oldProbability, probability)); }
Example #21
Source File: ExtensionsItemProviderAdapterFactory.java From ifml-editor with MIT License | 5 votes |
/** * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
Example #22
Source File: ArrayTypeSpecifierImpl.java From statecharts with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setSize(int newSize) { int oldSize = size; size = newSize; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, TypesPackage.ARRAY_TYPE_SPECIFIER__SIZE, oldSize, size)); }
Example #23
Source File: DocumentRootItemProvider.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(DocumentRoot.class)) { case ConnectorDefinitionPackage.DOCUMENT_ROOT__CONNECTOR_DEFINITION: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super.notifyChanged(notification); }
Example #24
Source File: ValueMapperImpl.java From neoscada with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public DataMapper getDataMapper () { if ( dataMapper != null && dataMapper.eIsProxy () ) { InternalEObject oldDataMapper = (InternalEObject)dataMapper; dataMapper = (DataMapper)eResolveProxy ( oldDataMapper ); if ( dataMapper != oldDataMapper ) { if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.RESOLVE, OsgiPackage.VALUE_MAPPER__DATA_MAPPER, oldDataMapper, dataMapper ) ); } } return dataMapper; }
Example #25
Source File: MBrickDCImpl.java From openhab1-addons with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void setLogger(Logger newLogger) { Logger oldLogger = logger; logger = newLogger; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICK_DC__LOGGER, oldLogger, logger)); }
Example #26
Source File: EventLoggerImpl.java From neoscada with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setLogValueChange ( boolean newLogValueChange ) { boolean oldLogValueChange = logValueChange; logValueChange = newLogValueChange; if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.SET, OsgiPackage.EVENT_LOGGER__LOG_VALUE_CHANGE, oldLogValueChange, logValueChange ) ); }
Example #27
Source File: ParserDriverImpl.java From neoscada with Eclipse Public License 1.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setSecurityConfiguration ( Configuration newSecurityConfiguration ) { Configuration oldSecurityConfiguration = securityConfiguration; securityConfiguration = newSecurityConfiguration; if ( eNotificationRequired () ) eNotify ( new ENotificationImpl ( this, Notification.SET, ParserPackage.PARSER_DRIVER__SECURITY_CONFIGURATION, oldSecurityConfiguration, securityConfiguration ) ); }
Example #28
Source File: MBrickletLoadCellImpl.java From openhab1-addons with Eclipse Public License 2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ @Override public void setIpConnection(IPConnection newIpConnection) { IPConnection oldIpConnection = ipConnection; ipConnection = newIpConnection; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.MBRICKLET_LOAD_CELL__IP_CONNECTION, oldIpConnection, ipConnection)); }
Example #29
Source File: FormFieldImpl.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public void setReturnTypeModifier(String newReturnTypeModifier) { String oldReturnTypeModifier = returnTypeModifier; returnTypeModifier = newReturnTypeModifier; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, FormPackage.FORM_FIELD__RETURN_TYPE_MODIFIER, oldReturnTypeModifier, returnTypeModifier)); }
Example #30
Source File: SubFlowTypeImpl.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
/** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public void setExecution(ExecutionType1 newExecution) { ExecutionType1 oldExecution = execution; execution = newExecution == null ? EXECUTION_EDEFAULT : newExecution; boolean oldExecutionESet = executionESet; executionESet = true; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, Xpdl1Package.SUB_FLOW_TYPE__EXECUTION, oldExecution, execution, !oldExecutionESet)); }