当前位置: 首页>>代码示例>>Java>>正文


Java Notification.SET属性代码示例

本文整理汇总了Java中org.eclipse.emf.common.notify.Notification.SET属性的典型用法代码示例。如果您正苦于以下问题:Java Notification.SET属性的具体用法?Java Notification.SET怎么用?Java Notification.SET使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.emf.common.notify.Notification的用法示例。


在下文中一共展示了Notification.SET属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: basicSetPowerTransformer

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetPowerTransformer(PowerTransformer newPowerTransformer, NotificationChain msgs) {
	PowerTransformer oldPowerTransformer = powerTransformer;
	powerTransformer = newPowerTransformer;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, WiresPackage.TRANSFORMER_WINDING__POWER_TRANSFORMER, oldPowerTransformer, newPowerTransformer);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:14,代码来源:TransformerWindingImpl.java

示例2: basicSetStartupModel

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetStartupModel(StartupModel newStartupModel, NotificationChain msgs) {
	StartupModel oldStartupModel = startupModel;
	startupModel = newStartupModel;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ProductionPackage.THERMAL_GENERATING_UNIT__STARTUP_MODEL, oldStartupModel, newStartupModel);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:14,代码来源:ThermalGeneratingUnitImpl.java

示例3: basicSetFlowgate

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetFlowgate(Flowgate newFlowgate, NotificationChain msgs) {
	Flowgate oldFlowgate = flowgate;
	flowgate = newFlowgate;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MarketOperationsPackage.VIOLATION_LIMIT__FLOWGATE, oldFlowgate, newFlowgate);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:14,代码来源:ViolationLimitImpl.java

示例4: basicSetFromAsset

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetFromAsset(Asset newFromAsset, NotificationChain msgs) {
	Asset oldFromAsset = fromAsset;
	fromAsset = newFromAsset;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfAssetsPackage.ASSET_ASSET_ROLE__FROM_ASSET, oldFromAsset, newFromAsset);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:14,代码来源:AssetAssetRoleImpl.java

示例5: basicSetElectricityRelatedStatus

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetElectricityRelatedStatus(ElectricityRelatedStatusData newElectricityRelatedStatus, NotificationChain msgs) {
	ElectricityRelatedStatusData oldElectricityRelatedStatus = electricityRelatedStatus;
	electricityRelatedStatus = newElectricityRelatedStatus;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, COSEMPackage.PHYSICAL_DEVICE__ELECTRICITY_RELATED_STATUS, oldElectricityRelatedStatus, newElectricityRelatedStatus);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:14,代码来源:PhysicalDeviceImpl.java

示例6: basicSetControlArea

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetControlArea(ControlArea newControlArea, NotificationChain msgs) {
	ControlArea oldControlArea = controlArea;
	controlArea = newControlArea;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ControlAreaPackage.CONTROL_AREA_GENERATING_UNIT__CONTROL_AREA, oldControlArea, newControlArea);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:14,代码来源:ControlAreaGeneratingUnitImpl.java

示例7: basicSetAssetModel

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetAssetModel(AssetModel newAssetModel, NotificationChain msgs) {
	AssetModel oldAssetModel = assetModel;
	assetModel = newAssetModel;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_INVENTORY_COUNT__ASSET_MODEL, oldAssetModel, newAssetModel);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:14,代码来源:ErpInventoryCountImpl.java

示例8: basicSetFromDocument

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetFromDocument(Document newFromDocument, NotificationChain msgs) {
	Document oldFromDocument = fromDocument;
	fromDocument = newFromDocument;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfCommonPackage.DOC_DOC_ROLE__FROM_DOCUMENT, oldFromDocument, newFromDocument);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:14,代码来源:DocDocRoleImpl.java

示例9: basicSetName

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetName(LogicalDeviceName newName, NotificationChain msgs) {
	LogicalDeviceName oldName = name;
	name = newName;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, COSEMPackage.LOGICAL_DEVICE__NAME, oldName, newName);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:14,代码来源:LogicalDeviceImpl.java

示例10: basicSet_lok

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSet_lok(LocalArgumentsVariable new_lok, NotificationChain msgs) {
	LocalArgumentsVariable old_lok = _lok;
	_lok = new_lok;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, N4JSPackage.PROPERTY_METHOD_DECLARATION__LOK, old_lok, new_lok);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:14,代码来源:PropertyMethodDeclarationImpl.java

示例11: basicSetVendor

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetVendor(Vendor newVendor, NotificationChain msgs) {
	Vendor oldVendor = vendor;
	vendor = newVendor;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PaymentMeteringPackage.CASHIER__VENDOR, oldVendor, newVendor);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:14,代码来源:CashierImpl.java

示例12: basicSetValue

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetValue(TypeValue newValue, NotificationChain msgs)
{
  TypeValue oldValue = value;
  value = newValue;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, KronusPackage.TYPE_DEF__VALUE, oldValue, newValue);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:16,代码来源:TypeDefImpl.java

示例13: basicSetManagedResource

/**
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetManagedResource(NamedResourceDefinition newManagedResource, NotificationChain msgs)
{
  NamedResourceDefinition oldManagedResource = managedResource;
  managedResource = newManagedResource;
  if (eNotificationRequired())
  {
    ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TransactionResourcePackage.TRANSACTION_RESOURCE__MANAGED_RESOURCE, oldManagedResource, newManagedResource);
    if (msgs == null) msgs = notification; else msgs.add(notification);
  }
  return msgs;
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:15,代码来源:TransactionResourceImpl.java

示例14: basicSetErpQuoteLineItem

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetErpQuoteLineItem(ErpQuoteLineItem newErpQuoteLineItem, NotificationChain msgs) {
	ErpQuoteLineItem oldErpQuoteLineItem = erpQuoteLineItem;
	erpQuoteLineItem = newErpQuoteLineItem;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.ERP_INVOICE_LINE_ITEM__ERP_QUOTE_LINE_ITEM, oldErpQuoteLineItem, newErpQuoteLineItem);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:14,代码来源:ErpInvoiceLineItemImpl.java

示例15: basicSetPowerSystemResource

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetPowerSystemResource(PowerSystemResource newPowerSystemResource, NotificationChain msgs) {
	PowerSystemResource oldPowerSystemResource = powerSystemResource;
	powerSystemResource = newPowerSystemResource;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, MeasPackage.MEASUREMENT__POWER_SYSTEM_RESOURCE, oldPowerSystemResource, newPowerSystemResource);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:14,代码来源:MeasurementImpl.java


注:本文中的org.eclipse.emf.common.notify.Notification.SET属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。