當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。