diff options
Diffstat (limited to 'plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/ConfigRuntimeModule.java')
-rw-r--r-- | plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/ConfigRuntimeModule.java | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/ConfigRuntimeModule.java b/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/ConfigRuntimeModule.java index 831ce5ece..2882444e4 100644 --- a/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/ConfigRuntimeModule.java +++ b/plugins/org.eclipse.etrice.core.config/src/org/eclipse/etrice/core/ConfigRuntimeModule.java @@ -1,54 +1,54 @@ -/******************************************************************************* - * Copyright (c) 2012 Juergen Haug - * 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: - * Juergen Haug - * - *******************************************************************************/ - -package org.eclipse.etrice.core; - -import org.eclipse.etrice.core.converter.ConfigValueConverterService; -import org.eclipse.etrice.core.scoping.PlatformRelativeUriResolver; -import org.eclipse.xtext.conversion.IValueConverterService; -import org.eclipse.xtext.scoping.impl.ImportUriResolver; - -import com.google.inject.Binder; - -/** - * Use this class to register components to be used at runtime / without the - * Equinox extension registry. - */ -public class ConfigRuntimeModule extends - org.eclipse.etrice.core.AbstractConfigRuntimeModule { - - /* - * (non-Javadoc) - * - * @see org.eclipse.etrice.core.AbstractRoomRuntimeModule# - * configureIScopeProviderDelegate(com.google.inject.Binder) - */ - @Override - public void configureIScopeProviderDelegate(Binder binder) { - binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class) - .annotatedWith( - com.google.inject.name.Names - .named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)) - .to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class); - } - - // HOWTO: use URI imports - need special URI resolver - public Class<? extends ImportUriResolver> bindImportUriResolver() { - return PlatformRelativeUriResolver.class; - } - - @Override - public Class<? extends IValueConverterService> bindIValueConverterService() { - return ConfigValueConverterService.class; - } - -} +/*******************************************************************************
+ * Copyright (c) 2012 Juergen Haug
+ * 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:
+ * Juergen Haug
+ *
+ *******************************************************************************/
+
+package org.eclipse.etrice.core;
+
+import org.eclipse.etrice.core.converter.ConfigValueConverterService;
+import org.eclipse.etrice.core.scoping.PlatformRelativeUriResolver;
+import org.eclipse.xtext.conversion.IValueConverterService;
+import org.eclipse.xtext.scoping.impl.ImportUriResolver;
+
+import com.google.inject.Binder;
+
+/**
+ * Use this class to register components to be used at runtime / without the
+ * Equinox extension registry.
+ */
+public class ConfigRuntimeModule extends
+ org.eclipse.etrice.core.AbstractConfigRuntimeModule {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.etrice.core.AbstractRoomRuntimeModule#
+ * configureIScopeProviderDelegate(com.google.inject.Binder)
+ */
+ @Override
+ public void configureIScopeProviderDelegate(Binder binder) {
+ binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class)
+ .annotatedWith(
+ com.google.inject.name.Names
+ .named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE))
+ .to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class);
+ }
+
+ // HOWTO: use URI imports - need special URI resolver
+ public Class<? extends ImportUriResolver> bindImportUriResolver() {
+ return PlatformRelativeUriResolver.class;
+ }
+
+ @Override
+ public Class<? extends IValueConverterService> bindIValueConverterService() {
+ return ConfigValueConverterService.class;
+ }
+
+}
|