mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
[466354] Remove ISetupExtension interface
This commit is contained in:
parent
3ab3c040b4
commit
f69c1883ed
2 changed files with 1 additions and 27 deletions
|
@ -16,7 +16,6 @@ import com.google.inject.Module
|
|||
import com.google.inject.Provider
|
||||
import com.google.inject.Singleton
|
||||
import com.google.inject.name.Names
|
||||
import java.util.Arrays
|
||||
import java.util.Collections
|
||||
import java.util.List
|
||||
import java.util.Map
|
||||
|
@ -25,7 +24,6 @@ import org.apache.log4j.Logger
|
|||
import org.eclipse.xtend2.lib.StringConcatenationClient
|
||||
import org.eclipse.xtext.Constants
|
||||
import org.eclipse.xtext.ISetup
|
||||
import org.eclipse.xtext.ISetupExtension
|
||||
import org.eclipse.xtext.XtextPackage
|
||||
import org.eclipse.xtext.resource.impl.BinaryGrammarResourceFactoryImpl
|
||||
import org.eclipse.xtext.service.SingletonBinding
|
||||
|
@ -93,12 +91,7 @@ class XtextGeneratorTemplates {
|
|||
|
||||
javaFile.annotations += new SuppressWarningsAnnotation
|
||||
javaFile.javaContent = '''
|
||||
public class «runtimeGenSetup.simpleName» implements «ISetup», «ISetupExtension» {
|
||||
|
||||
@Override
|
||||
public «List»<String> getFileExtensions() {
|
||||
return «Arrays».asList(«FOR fileExtension : langConfig.fileExtensions SEPARATOR ','»"«fileExtension»"«ENDFOR»);
|
||||
}
|
||||
public class «runtimeGenSetup.simpleName» implements «ISetup» {
|
||||
|
||||
@Override
|
||||
public «Injector» createInjectorAndDoEMFRegistration() {
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
/*******************************************************************************
|
||||
* Copyright (c) 2015 itemis AG (http://www.itemis.eu) 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
|
||||
*******************************************************************************/
|
||||
package org.eclipse.xtext;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Jan Koehnlein - Initial contribution and API
|
||||
* @since 2.9
|
||||
*/
|
||||
public interface ISetupExtension {
|
||||
|
||||
List<String> getFileExtensions();
|
||||
}
|
Loading…
Reference in a new issue