blob: f8dc06648557fd53254570b8c873e031d7279386 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 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
******************************************************************************/
package org.eclipse.e4.core.services.translation;
import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.internal.services.BundleTranslationProvider;
/**
* Factory for translation providers.
*
* @since 1.2
*/
final public class TranslationProviderFactory {
private TranslationProviderFactory() {
// prevents instantiation
}
/**
* Returns default bundle-based translation provider.
*
* @param context
* the context for the translation provider
* @return bundle-based translation provider
*/
static public TranslationService bundleTranslationService(IEclipseContext context) {
return ContextInjectionFactory.make(BundleTranslationProvider.class, context);
}
}