blob: 0411f3253db944480bf8779b499450760e00f165 [file] [log] [blame]
package org.eclipse.stem.tests.util.labels.impl;
/*******************************************************************************
* Copyright (c) 2006 IBM Corporation and others.
* 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:
* IBM Corporation - initial API and implementation
*******************************************************************************/
import org.eclipse.emf.ecore.EClass;
import org.eclipse.stem.core.graph.impl.DynamicNodeLabelImpl;
import org.eclipse.stem.tests.util.labels.LabelsPackage;
import org.eclipse.stem.tests.util.labels.TestDynamicNodeLabel;
import org.eclipse.stem.tests.util.labels.TestIntegerLabelValue;
/**
* <!-- begin-user-doc --> An implementation of the model object '<em><b>Test Dynamic Node Label</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
public class TestDynamicNodeLabelImpl extends DynamicNodeLabelImpl implements
TestDynamicNodeLabel {
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
protected TestDynamicNodeLabelImpl() {
super();
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
@Override
protected EClass eStaticClass() {
return LabelsPackage.Literals.TEST_DYNAMIC_NODE_LABEL;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated NOT
*/
public void increment() {
final TestIntegerLabelValue nextLabelValue = (TestIntegerLabelValue) getNextValue();
final TestIntegerLabelValue currentLabelValue = (TestIntegerLabelValue) getCurrentValue();
nextLabelValue.setI(currentLabelValue.getI() + 1);
setNextValueValid(true);
} // increment
} // TestDynamicNodeLabelImpl