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


Java NotificationChain.add方法代码示例

本文整理汇总了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;
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:16,代码来源:AbstractRunGroupImpl.java

示例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;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:20,代码来源:CommonDriverImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:15,代码来源:GmlTopologyStyleImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:15,代码来源:PhysicalDeviceImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:15,代码来源:AssetImpl.java

示例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;
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:15,代码来源:PhysicalDeviceImpl.java

示例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;
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:15,代码来源:DocErpPersonRoleImpl.java

示例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;
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:16,代码来源:XSplitConfigurationImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:15,代码来源:TransformerAssetImpl.java

示例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;
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:15,代码来源:GUnaryOperatorExpressionImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:15,代码来源:CustomerAgreementImpl.java

示例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;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:20,代码来源:RoundedRectangleImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:15,代码来源:BranchGroupTerminalImpl.java

示例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;
}
 
开发者ID:georghinkel,项目名称:ttc2017smartGrids,代码行数:15,代码来源:TopologicalNodeImpl.java

示例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;
}
 
开发者ID:SvenPeldszus,项目名称:rgse.ttc17.emoflon.tgg,代码行数:15,代码来源:EnergyTransactionImpl.java


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