| 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.DynamicEdgeLabelImpl; |
| import org.eclipse.stem.tests.util.labels.LabelsPackage; |
| import org.eclipse.stem.tests.util.labels.TestDynamicEdgeLabel; |
| import org.eclipse.stem.tests.util.labels.TestIntegerLabelValue; |
| |
| /** |
| * <!-- begin-user-doc --> |
| * An implementation of the model object '<em><b>Test Dynamic Edge Label</b></em>'. |
| * <!-- end-user-doc --> |
| * <p> |
| * </p> |
| * |
| * @generated |
| */ |
| public class TestDynamicEdgeLabelImpl extends DynamicEdgeLabelImpl implements TestDynamicEdgeLabel { |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| protected TestDynamicEdgeLabelImpl() { |
| super(); |
| } |
| |
| /** |
| * <!-- begin-user-doc --> |
| * <!-- end-user-doc --> |
| * @generated |
| */ |
| @Override |
| protected EClass eStaticClass() { |
| return LabelsPackage.Literals.TEST_DYNAMIC_EDGE_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 |
| |
| } //TestDynamicEdgeLabelImpl |