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
Source File: SeriesGroupingComposite.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
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
Source File: AggregateEditorComposite.java    From birt with Eclipse Public License 1.0 5 votes vote down vote up
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
Source File: Scaler.java    From BIMserver with GNU Affero General Public License v3.0 5 votes vote down vote up
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
Source File: Scaler.java    From BIMserver with GNU Affero General Public License v3.0 5 votes vote down vote up
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
Source File: Scaler.java    From BIMserver with GNU Affero General Public License v3.0 5 votes vote down vote up
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);
	}
}