| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| */ |
| package org.eclipse.osbp.xtext.gridsource; |
| |
| import org.eclipse.xtext.conversion.IValueConverterService; |
| import org.eclipse.xtext.findReferences.TargetURICollector; |
| import org.eclipse.xtext.generator.IOutputConfigurationProvider; |
| import org.eclipse.xtext.resource.persistence.IResourceStorageFacade; |
| import org.eclipse.xtext.xbase.jvmmodel.JvmModelTargetURICollector; |
| import org.eclipse.xtext.xbase.resource.BatchLinkableResourceStorageFacade; |
| import org.eclipse.osbp.xtext.gridsource.converter.ValueConverterService; |
| import org.eclipse.osbp.xtext.gridsource.generator.OutputConfigurationProvider; |
| |
| /** |
| * Use this class to register components to be used at runtime / without the |
| * Equinox extension registry. |
| */ |
| public class GridSourceRuntimeModule extends |
| org.eclipse.osbp.xtext.gridsource.AbstractGridSourceRuntimeModule { |
| |
| public Class<? extends IResourceStorageFacade> bindResourceStorageFacade() { |
| return BatchLinkableResourceStorageFacade.class; |
| } |
| |
| public Class<? extends TargetURICollector> bindTargetURICollector() { |
| return JvmModelTargetURICollector.class; |
| } |
| |
| public Class<? extends IOutputConfigurationProvider> bindIOutputConfigurationProvider() { |
| return OutputConfigurationProvider.class; |
| } |
| |
| @Override |
| public Class<? extends IValueConverterService> bindIValueConverterService() { |
| return ValueConverterService.class; |
| } |
| |
| } |