/*******************************************************************************
 * Copyright (c) 2010-2015, Benedek Izso, Gabor Szarnyas, Istvan Rath and Daniel Varro
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Benedek Izso - initial API and implementation
 *   Gabor Szarnyas - initial API and implementation
 *******************************************************************************/
package hu.bme.mit.trainbenchmark.benchmark.emf.transformation.inject;

import java.io.IOException;
import java.util.Collection;

import hu.bme.mit.trainbenchmark.benchmark.emf.driver.EmfDriver;
import hu.bme.mit.trainbenchmark.benchmark.emf.matches.EmfSwitchSetInjectMatch;
import hu.bme.mit.trainbenchmark.benchmark.emf.transformation.EmfTransformation;
import hu.bme.mit.trainbenchmark.railway.Position;

public class EmfTransformationInjectSwitchSet<TDriver extends EmfDriver, TSwitchSetInjectMatch extends EmfSwitchSetInjectMatch>
		extends EmfTransformation<TSwitchSetInjectMatch, TDriver> {

	public EmfTransformationInjectSwitchSet(final TDriver driver) {
		super(driver);
	}

	@Override
	public void activate(final Collection<TSwitchSetInjectMatch> matches) throws IOException {
		for (final TSwitchSetInjectMatch match : matches) {
			System.out.println(match);
			final Position currentPosition = match.getSw().getCurrentPosition();
			final Position newCurrentPosition = Position.get((currentPosition.ordinal() + 1) % Position.VALUES.size());
			match.getSw().setCurrentPosition(newCurrentPosition);
		}
	}
}

@@ -1459,38 +1459,8 @@
 ) %7B%0A
-%09%09%09System.out.println(match);%0A
 %09%09%09f

Remove println