本文整理匯總了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}