本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}