Java Code Examples for org.eclipse.emf.common.notify.Notification#SET

The following examples show how to use org.eclipse.emf.common.notify.Notification#SET . 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: BlockImpl.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetBackground( Fill newBackground,
		NotificationChain msgs )
{
	Fill oldBackground = background;
	background = newBackground;
	if ( eNotificationRequired( ) )
	{
		ENotificationImpl notification = new ENotificationImpl( this,
				Notification.SET,
				LayoutPackage.BLOCK__BACKGROUND,
				oldBackground,
				newBackground );
		if ( msgs == null )
			msgs = notification;
		else
			msgs.add( notification );
	}
	return msgs;
}
 
Example 2
Source File: CrossReferenceImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetType(TypeRef newType, NotificationChain msgs)
{
  TypeRef oldType = type;
  type = newType;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XtextTerminalsTestLanguagePackage.CROSS_REFERENCE__TYPE, oldType, newType);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
 
Example 3
Source File: ActivityTypeImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetSimulationInformation(SimulationInformationType newSimulationInformation, NotificationChain msgs) {
	SimulationInformationType oldSimulationInformation = simulationInformation;
	simulationInformation = newSimulationInformation;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Xpdl1Package.ACTIVITY_TYPE__SIMULATION_INFORMATION, oldSimulationInformation, newSimulationInformation);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
Example 4
Source File: EventRaisingExpressionImpl.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetEvent(Expression newEvent, NotificationChain msgs) {
	Expression oldEvent = event;
	event = newEvent;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, StextPackage.EVENT_RAISING_EXPRESSION__EVENT, oldEvent, newEvent);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
Example 5
Source File: S_AssignmentImpl.java    From gama with GNU General Public License v3.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetValue(Expression newValue, NotificationChain msgs)
{
  Expression oldValue = value;
  value = newValue;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GamlPackage.SASSIGNMENT__VALUE, oldValue, newValue);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
 
Example 6
Source File: GroupImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
    * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
    * @generated
    */
public NotificationChain basicSetAfterEventExpression(Expression newAfterEventExpression, NotificationChain msgs) {
       Expression oldAfterEventExpression = afterEventExpression;
       afterEventExpression = newAfterEventExpression;
       if (eNotificationRequired()) {
           ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FormPackage.GROUP__AFTER_EVENT_EXPRESSION, oldAfterEventExpression, newAfterEventExpression);
           if (msgs == null) msgs = notification; else msgs.add(notification);
       }
       return msgs;
   }
 
Example 7
Source File: ModelImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTerminalVal(TerminalVal newTerminalVal, NotificationChain msgs)
{
  TerminalVal oldTerminalVal = terminalVal;
  terminalVal = newTerminalVal;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AssignmentFinderTestPackage.MODEL__TERMINAL_VAL, oldTerminalVal, newTerminalVal);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
 
Example 8
Source File: RemoteSwitchBImpl.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
public NotificationChain basicSetTfConfig(RemoteSwitchBConfiguration newTfConfig, NotificationChain msgs) {
    RemoteSwitchBConfiguration oldTfConfig = tfConfig;
    tfConfig = newTfConfig;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                ModelPackage.REMOTE_SWITCH_B__TF_CONFIG, oldTfConfig, newTfConfig);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
 
Example 9
Source File: XAbstractWhileExpressionImpl.java    From xtext-extras with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetPredicate(XExpression newPredicate, NotificationChain msgs)
{
	XExpression oldPredicate = predicate;
	predicate = newPredicate;
	if (eNotificationRequired())
	{
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XbasePackage.XABSTRACT_WHILE_EXPRESSION__PREDICATE, oldPredicate, newPredicate);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
Example 10
Source File: MatcherImpl.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetCondition(XExpression newCondition, NotificationChain msgs)
{
  XExpression oldCondition = condition;
  condition = newCondition;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FormatPackage.MATCHER__CONDITION, oldCondition, newCondition);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
 
Example 11
Source File: TDataInputImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetDataState(TDataState newDataState, NotificationChain msgs) {
	TDataState oldDataState = dataState;
	dataState = newDataState;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ModelPackage.TDATA_INPUT__DATA_STATE, oldDataState, newDataState);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
Example 12
Source File: RequiredCapabilityImpl.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetCondExpr(Expression newCondExpr, NotificationChain msgs)
{
  Expression oldCondExpr = condExpr;
  condExpr = newCondExpr;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BeeLangTestLanguagePackage.REQUIRED_CAPABILITY__COND_EXPR, oldCondExpr, newCondExpr);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
 
Example 13
Source File: FunctionDefinitionImpl.java    From solidity-ide with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetBlock(Block newBlock, NotificationChain msgs) {
	Block oldBlock = block;
	block = newBlock;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SolidityPackage.FUNCTION_DEFINITION__BLOCK, oldBlock, newBlock);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
Example 14
Source File: GNodeImpl.java    From graphical-lsp with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetEdgePlacement(GEdgePlacement newEdgePlacement, NotificationChain msgs) {
	GEdgePlacement oldEdgePlacement = edgePlacement;
	edgePlacement = newEdgePlacement;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
				GraphPackage.GNODE__EDGE_PLACEMENT, oldEdgePlacement, newEdgePlacement);
		if (msgs == null)
			msgs = notification;
		else
			msgs.add(notification);
	}
	return msgs;
}
 
Example 15
Source File: ArrayTypeTypeImpl.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetBasicType(BasicTypeType newBasicType, NotificationChain msgs) {
	BasicTypeType oldBasicType = basicType;
	basicType = newBasicType;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Xpdl1Package.ARRAY_TYPE_TYPE__BASIC_TYPE, oldBasicType, newBasicType);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
Example 16
Source File: InclusiveGatewayLabelEditPart.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
* @generated
*/
protected void handleNotificationEvent(Notification event) {
	Object feature = event.getFeature();
	if (NotationPackage.eINSTANCE.getFontStyle_FontColor().equals(feature)) {
		Integer c = (Integer) event.getNewValue();
		setFontColor(DiagramColorRegistry.getInstance().getColor(c));
	} else if (NotationPackage.eINSTANCE.getFontStyle_Underline().equals(feature)) {
		refreshUnderline();
	} else if (NotationPackage.eINSTANCE.getFontStyle_StrikeThrough().equals(feature)) {
		refreshStrikeThrough();
	} else if (NotationPackage.eINSTANCE.getFontStyle_FontHeight().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_FontName().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Bold().equals(feature)
			|| NotationPackage.eINSTANCE.getFontStyle_Italic().equals(feature)) {
		refreshFont();
	} else {
		if (getParser() != null && getParser().isAffectingEvent(event, getParserOptions().intValue())) {
			refreshLabel();
		}
		if (getParser() instanceof ISemanticParser) {
			ISemanticParser modelParser = (ISemanticParser) getParser();
			if (modelParser.areSemanticElementsAffected(null, event)) {
				removeSemanticListeners();
				if (resolveSemanticElement() != null) {
					addSemanticListeners();
				}
				refreshLabel();
			}
		}
	}
	//if 'to' link changed
	if (event.getEventType() == Notification.SET && feature.equals(ProcessPackage.Literals.THROW_LINK_EVENT__TO)) {
		refreshLabel();
	}
	super.handleNotificationEvent(event);
}
 
Example 17
Source File: BPMNDiagramImpl.java    From fixflow with Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetPlane(BPMNPlane newPlane, NotificationChain msgs) {
    BPMNPlane oldPlane = plane;
    plane = newPlane;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                BpmnDiPackage.BPMN_DIAGRAM__PLANE, oldPlane, newPlane);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
 
Example 18
Source File: ConditionalExpressionImpl.java    From n4js with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetExpression(Expression newExpression, NotificationChain msgs) {
	Expression oldExpression = expression;
	expression = newExpression;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.CONDITIONAL_EXPRESSION__EXPRESSION, oldExpression, newExpression);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
Example 19
Source File: ConditionalEventDefinitionImpl.java    From fixflow with Apache License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetCondition(Expression newCondition, NotificationChain msgs) {
    Expression oldCondition = condition;
    condition = newCondition;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                Bpmn2Package.CONDITIONAL_EVENT_DEFINITION__CONDITION, oldCondition,
                newCondition);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
 
Example 20
Source File: PTCTemperatureImpl.java    From openhab1-addons with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated
 */
public NotificationChain basicSetTfConfig(TFBaseConfiguration newTfConfig, NotificationChain msgs) {
    TFBaseConfiguration oldTfConfig = tfConfig;
    tfConfig = newTfConfig;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                ModelPackage.PTC_TEMPERATURE__TF_CONFIG, oldTfConfig, newTfConfig);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}