本文整理汇总了Java中org.eclipse.emf.common.notify.NotificationChain.add方法的典型用法代码示例。如果您正苦于以下问题:Java NotificationChain.add方法的具体用法?Java NotificationChain.add怎么用?Java NotificationChain.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.emf.common.notify.NotificationChain
的用法示例。
在下文中一共展示了NotificationChain.add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: basicSetException
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetException(exception newException, NotificationChain msgs)
{
exception oldException = exception;
exception = newException;
if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SaturnPackage.ABSTRACT_RUN_GROUP__EXCEPTION, oldException, newException);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例2: basicSetPassword
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetPassword ( PasswordCredentials newPassword, NotificationChain msgs )
{
PasswordCredentials oldPassword = password;
password = newPassword;
if ( eNotificationRequired () )
{
ENotificationImpl notification = new ENotificationImpl ( this, Notification.SET, WorldPackage.COMMON_DRIVER__PASSWORD, oldPassword, newPassword );
if ( msgs == null )
msgs = notification;
else
msgs.add ( notification );
}
return msgs;
}
示例3: basicSetGmlLableStyle
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetGmlLableStyle(GmlLabelStyle newGmlLableStyle, NotificationChain msgs) {
GmlLabelStyle oldGmlLableStyle = gmlLableStyle;
gmlLableStyle = newGmlLableStyle;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfGMLSupportPackage.GML_TOPOLOGY_STYLE__GML_LABLE_STYLE, oldGmlLableStyle, newGmlLableStyle);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例4: basicSetOutputPulse
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetOutputPulse(OutputPulseValues_constants newOutputPulse, NotificationChain msgs) {
OutputPulseValues_constants oldOutputPulse = outputPulse;
outputPulse = newOutputPulse;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, COSEMPackage.PHYSICAL_DEVICE__OUTPUT_PULSE, oldOutputPulse, newOutputPulse);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例5: basicSetLocation
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetLocation(Location newLocation, NotificationChain msgs) {
Location oldLocation = location;
location = newLocation;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, AssetsPackage.ASSET__LOCATION, oldLocation, newLocation);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例6: basicSetAA
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetAA(CurrentAssociation newAA, NotificationChain msgs) {
CurrentAssociation oldAA = aa;
aa = newAA;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, COSEMPackage.PHYSICAL_DEVICE__AA, oldAA, newAA);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例7: basicSetDocument
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDocument(Document newDocument, NotificationChain msgs) {
Document oldDocument = document;
document = newDocument;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfERPSupportPackage.DOC_ERP_PERSON_ROLE__DOCUMENT, oldDocument, newDocument);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例8: basicSetXMLFile
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetXMLFile(ResourceDefinition newXMLFile, NotificationChain msgs)
{
ResourceDefinition oldXMLFile = xMLFile;
xMLFile = newXMLFile;
if (eNotificationRequired())
{
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, XSplitModulePackage.XSPLIT_CONFIGURATION__XML_FILE, oldXMLFile, newXMLFile);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例9: basicSetTransformerInfo
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetTransformerInfo(TransformerInfo newTransformerInfo, NotificationChain msgs) {
TransformerInfo oldTransformerInfo = transformerInfo;
transformerInfo = newTransformerInfo;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, InfAssetsPackage.TRANSFORMER_ASSET__TRANSFORMER_INFO, oldTransformerInfo, newTransformerInfo);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例10: basicSetOperand
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetOperand(GExpression newOperand, NotificationChain msgs) {
GExpression oldOperand = operand;
operand = newOperand;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GexpressionsPackage.GUNARY_OPERATOR_EXPRESSION__OPERAND, oldOperand, newOperand);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例11: basicSetStandardIndustryCode
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetStandardIndustryCode(StandardIndustryCode newStandardIndustryCode, NotificationChain msgs) {
StandardIndustryCode oldStandardIndustryCode = standardIndustryCode;
standardIndustryCode = newStandardIndustryCode;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, CustomersPackage.CUSTOMER_AGREEMENT__STANDARD_INDUSTRY_CODE, oldStandardIndustryCode, newStandardIndustryCode);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例12: basicSetCorner
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetCorner ( Dimension newCorner, NotificationChain msgs )
{
Dimension oldCorner = corner;
corner = newCorner;
if ( eNotificationRequired () )
{
ENotificationImpl notification = new ENotificationImpl ( this, Notification.SET, VisualInterfacePackage.ROUNDED_RECTANGLE__CORNER, oldCorner, newCorner );
if ( msgs == null )
msgs = notification;
else
msgs.add ( notification );
}
return msgs;
}
示例13: basicSetTerminal
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetTerminal(Terminal newTerminal, NotificationChain msgs) {
Terminal oldTerminal = terminal;
terminal = newTerminal;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OperationalLimitsPackage.BRANCH_GROUP_TERMINAL__TERMINAL, oldTerminal, newTerminal);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例14: basicSetReportingGroup
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetReportingGroup(ReportingGroup newReportingGroup, NotificationChain msgs) {
ReportingGroup oldReportingGroup = reportingGroup;
reportingGroup = newReportingGroup;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TopologyPackage.TOPOLOGICAL_NODE__REPORTING_GROUP, oldReportingGroup, newReportingGroup);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}
示例15: basicSetImport_SubControlArea
import org.eclipse.emf.common.notify.NotificationChain; //导入方法依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetImport_SubControlArea(SubControlArea newImport_SubControlArea, NotificationChain msgs) {
SubControlArea oldImport_SubControlArea = import_SubControlArea;
import_SubControlArea = newImport_SubControlArea;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, EnergySchedulingPackage.ENERGY_TRANSACTION__IMPORT_SUB_CONTROL_AREA, oldImport_SubControlArea, newImport_SubControlArea);
if (msgs == null) msgs = notification; else msgs.add(notification);
}
return msgs;
}