/******************************************************************************* * Copyright (c) 2015, 2016 itemis AG 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: * Alexander Nyßen (itemis AG) - initial API and implementation * *******************************************************************************/ package org.eclipse.gef.dot.internal.language.terminals; import org.eclipse.xtext.conversion.IValueConverter; import org.eclipse.xtext.conversion.ValueConverter; import org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService; import com.google.inject.Inject; /** * A terminal converter for Dot. * * @author anyssen * */ public class DotTerminalConverters extends AbstractDeclarativeValueConverterService { @Inject private DotIDValueConverter idValueConverter; /** * A value converter for the ID data type rule. * * @return An {@link DotIDValueConverter}. */ @ValueConverter(rule = "ID") public IValueConverter<ID> ID() { return idValueConverter; } }