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