Java Code Examples for org.eclipse.emf.common.util.EList#set()

The following examples show how to use org.eclipse.emf.common.util.EList#set() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
private void setAggParameter( Text oSource )
{
	String text = oSource.getText( );
	int index = fAggParamtersTextWidgets.indexOf( oSource );
	EList<String> parameters = fGrouping.getAggregateParameters( );
	for ( int i = parameters.size( ); i < fAggParamtersTextWidgets.size( ); i++ )
	{
		parameters.add( null );
	}
	parameters.set( index, text );
}
 
Example 2
private void setAggParameter( Text oSource )
{
	String text = oSource.getText( );
	int index = fAggParamtersTextWidgets.indexOf( oSource );
	EList<String> parameters = fGrouping
			.getAggregateParameters( );
	for ( int i = parameters.size( ); i < fAggParamtersTextWidgets.size( ); i++ )
	{
		parameters.add( null );
	}
	parameters.set( index, text );
}
 
Example 3
private void setIfcCartesianPoint(IdEObject idEObject, float scale) {
	IfcCartesianPoint ifcCartesianPoint = (IfcCartesianPoint) idEObject;
	EList<Double> coordinates = ifcCartesianPoint.getCoordinates();
	for (int index = 0; index < coordinates.size(); index++) {
		coordinates.set(index, coordinates.get(index) * scale);
	}
}
 
Example 4
private void setIfcStructuralSurfaceMemberVarying(IdEObject idEObject, float scale) {
	setIfcStructuralSurfaceMember(idEObject, scale);
	IfcStructuralSurfaceMemberVarying ifcStructuralSurfaceMemberVarying = (IfcStructuralSurfaceMemberVarying) idEObject;
	EList<Double> subsequentThickness = ifcStructuralSurfaceMemberVarying.getSubsequentThickness();
	for (int index = 0; index < subsequentThickness.size(); index++) {
		subsequentThickness.set(index, subsequentThickness.get(index) * scale);
	}
}
 
Example 5
private void setIfcVirtualGridIntersection(IdEObject idEObject, float scale) {
	IfcVirtualGridIntersection ifcVirtualGridIntersection = (IfcVirtualGridIntersection) idEObject;
	EList<Double> offsetDistances = ifcVirtualGridIntersection.getOffsetDistances();
	for (int i = 0; i < offsetDistances.size(); i++) {
		offsetDistances.set(i, offsetDistances.get(i) * scale);
	}
}