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


Java EList.addAll方法代码示例

本文整理汇总了Java中org.eclipse.emf.common.util.EList.addAll方法的典型用法代码示例。如果您正苦于以下问题:Java EList.addAll方法的具体用法?Java EList.addAll怎么用?Java EList.addAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.emf.common.util.EList的用法示例。


在下文中一共展示了EList.addAll方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getDimensionsInternal

import org.eclipse.emf.common.util.EList; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<GenericDimension> getDimensionsInternal() {
	final EList<GenericDimension> result = new org.eclipse.emf.ecore.util.BasicInternalEList<GenericDimension>(Object.class);
	result.addAll(super.getDimensionsInternal());
	result.addAll(getAllDimensions());
	return result;
	
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:13,代码来源:GenericTracedObjectImpl.java

示例2: getEndpoints

import org.eclipse.emf.common.util.EList; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * 
 * @generated NOT
 */
@Override
public EList<Endpoint> getEndpoints ()
{
    final EList<Endpoint> result = ECollections.newBasicEList ();
    for ( final Exporter exporter : getExporter () )
    {
        result.addAll ( exporter.getEndpoints () );
    }
    return result;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:ArduinoDriverImpl.java

示例3: getEndpoints

import org.eclipse.emf.common.util.EList; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
@Override
public EList<Endpoint> getEndpoints ()
{
    final EList<Endpoint> result = ECollections.newBasicEList ();
    for ( final Exporter exporter : getExporter () )
    {
        result.addAll ( exporter.getEndpoints () );
    }
    return result;
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:17,代码来源:DriverApplicationImpl.java

示例4: addInstanceModel

import org.eclipse.emf.common.util.EList; //导入方法依赖的package包/类
@Override
public void addInstanceModel(InstanceModel instanceModel) throws PortException {
    int timer = Timer.start("IM to Ecore");
    this.m_eObjects.clear();

    visitInstanceModel(instanceModel);

    List<EObject> rootObjects = new ArrayList<>();
    for (EObject object : this.m_eObjects) {
        if (object.eContainer() != null) {
            continue;
        }
        rootObjects.add(object);
    }

    if (rootObjects.size() == 0) {
        // This effectively means there is a containment cycle
        throw new PortException("Unable to find any root object");
    }

    Timer.stop(timer);
    timer = Timer.cont("Ecore save");

    Resource typeResource =
        this.m_ecoreResource.getInstanceResource(instanceModel.getQualName());
    EList<EObject> contents = typeResource.getContents();

    //contents.add(rootObject);
    contents.addAll(rootObjects);

    Timer.stop(timer);
}
 
开发者ID:meteoorkip,项目名称:JavaGraph,代码行数:33,代码来源:InstanceToEcore.java

示例5: getDimensionsInternal

import org.eclipse.emf.common.util.EList; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<SpecificDimension<?>> getDimensionsInternal() {
	final EList<SpecificDimension<?>> result = new org.eclipse.emf.ecore.util.BasicInternalEList<SpecificDimension<?>>(Object.class);
	result.addAll(super.getDimensionsInternal());
	return result;
	
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:12,代码来源:TracedTransitionImpl.java

示例6: getDimensionsInternal

import org.eclipse.emf.common.util.EList; //导入方法依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<SpecificDimension<?>> getDimensionsInternal() {
	final EList<SpecificDimension<?>> result = new org.eclipse.emf.ecore.util.BasicInternalEList<SpecificDimension<?>>(Object.class);
	result.addAll(super.getDimensionsInternal());
	result.add(getStateMachine_currentState_Dimension());
	result.add(getStateMachine_producedString_Dimension());
	result.add(getStateMachine_unprocessedString_Dimension());
	result.add(getStateMachine_consummedString_Dimension());
	return result;
	
}
 
开发者ID:eclipse,项目名称:gemoc-studio,代码行数:16,代码来源:TracedStateMachineImpl.java


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