[eclipse/xtext#1629] moved ide testlangs not to prefer xtend

Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
Christian Dietrich 2020-01-24 11:47:47 +01:00
parent ef65b96ec0
commit fd6eea7b09
60 changed files with 289 additions and 967 deletions

View file

@ -39,6 +39,7 @@ Workflow {
createEclipseMetaData = false
}
code = {
preferXtendStubs = false
encoding = "UTF-8"
fileHeader =
"/*
@ -59,11 +60,15 @@ Workflow {
generateStub = false
}
validator = {
generateXtendStub = true
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
}
junitSupport = {
generateStub = false
}
generator = {
generateXtendStub = true
}
}
language = StandardLanguage {
name = "org.eclipse.xtext.ide.tests.testlanguage.IndentationAwareUiTestLanguage"
@ -78,6 +83,9 @@ Workflow {
junitSupport = {
generateStub = false
}
generator = {
generateXtendStub = true
}
}
language = StandardLanguage {
name = "org.eclipse.xtext.ide.tests.testlanguage.PartialContentAssistTestLanguage"
@ -94,6 +102,9 @@ Workflow {
parserGenerator = {
partialParsing = true
}
generator = {
generateXtendStub = true
}
}
language = StandardLanguage {
referencedResource = "platform:/resource/org.eclipse.emf.ecore/model/Ecore.genmodel"
@ -116,6 +127,9 @@ Workflow {
generateStub = true
generateXtendStub = true
}
generator = {
generateXtendStub = true
}
}
language = StandardLanguage {
name = "org.eclipse.xtext.ide.tests.testlanguage.RenameTestLanguage"
@ -129,7 +143,9 @@ Workflow {
junitSupport = {
generateStub = false
}
generator = {
generateXtendStub = true
}
}
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -7,11 +7,9 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage;
import org.eclipse.xtext.ide.tests.testlanguage.AbstractIndentationAwareUiTestLanguageRuntimeModule;
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
@SuppressWarnings("all")
public class IndentationAwareUiTestLanguageRuntimeModule extends AbstractIndentationAwareUiTestLanguageRuntimeModule {
}

View file

@ -1,15 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
class IndentationAwareUiTestLanguageRuntimeModule extends AbstractIndentationAwareUiTestLanguageRuntimeModule {
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -7,14 +7,13 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage;
import org.eclipse.xtext.ide.tests.testlanguage.IndentationAwareUiTestLanguageStandaloneSetupGenerated;
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
@SuppressWarnings("all")
public class IndentationAwareUiTestLanguageStandaloneSetup extends IndentationAwareUiTestLanguageStandaloneSetupGenerated {
public static void doSetup() {
new IndentationAwareUiTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
public static void doSetup() {
new IndentationAwareUiTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
}

View file

@ -1,19 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class IndentationAwareUiTestLanguageStandaloneSetup extends IndentationAwareUiTestLanguageStandaloneSetupGenerated {
def static void doSetup() {
new IndentationAwareUiTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration()
}
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -7,11 +7,9 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage;
import org.eclipse.xtext.ide.tests.testlanguage.AbstractPartialContentAssistTestLanguageRuntimeModule;
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
@SuppressWarnings("all")
public class PartialContentAssistTestLanguageRuntimeModule extends AbstractPartialContentAssistTestLanguageRuntimeModule {
}

View file

@ -1,15 +0,0 @@
/*
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
class PartialContentAssistTestLanguageRuntimeModule extends AbstractPartialContentAssistTestLanguageRuntimeModule {
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -7,14 +7,12 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage;
import org.eclipse.xtext.ide.tests.testlanguage.PartialContentAssistTestLanguageStandaloneSetupGenerated;
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
@SuppressWarnings("all")
public class PartialContentAssistTestLanguageStandaloneSetup extends PartialContentAssistTestLanguageStandaloneSetupGenerated {
public static void doSetup() {
new PartialContentAssistTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
public static void doSetup() {
new PartialContentAssistTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
}

View file

@ -1,19 +0,0 @@
/*
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class PartialContentAssistTestLanguageStandaloneSetup extends PartialContentAssistTestLanguageStandaloneSetupGenerated {
def static void doSetup() {
new PartialContentAssistTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration()
}
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -9,32 +9,33 @@ package org.eclipse.xtext.ide.tests.testlanguage;
import com.google.inject.Binder;
import com.google.inject.name.Names;
import org.eclipse.xtext.conversion.IValueConverterService;
import org.eclipse.xtext.ide.serializer.hooks.IReferenceUpdater;
import org.eclipse.xtext.ide.tests.testlanguage.AbstractPartialSerializationTestLanguageRuntimeModule;
import org.eclipse.xtext.ide.tests.testlanguage.ide.serializer.PartialSerializationTestLanguageReferenceUpdater;
import org.eclipse.xtext.ide.tests.testlanguage.scoping.PartialSerializationTestLanguageValueConverter;
import org.eclipse.xtext.resource.IResourceDescriptions;
import org.eclipse.xtext.resource.impl.LiveShadowedResourceDescriptions;
import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider;
import org.eclipse.xtext.ide.tests.testlanguage.scoping.PartialSerializationTestLanguageValueConverter;
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
@SuppressWarnings("all")
public class PartialSerializationTestLanguageRuntimeModule extends AbstractPartialSerializationTestLanguageRuntimeModule {
@Override
public void configureIResourceDescriptionsLiveScope(final Binder binder) {
binder.<IResourceDescriptions>bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.LIVE_SCOPE)).to(
LiveShadowedResourceDescriptions.class);
}
public Class<? extends IReferenceUpdater> bindCleanupStrategy() {
return PartialSerializationTestLanguageReferenceUpdater.class;
}
@Override
public Class<? extends IValueConverterService> bindIValueConverterService() {
return PartialSerializationTestLanguageValueConverter.class;
}
@Override
public void configureIResourceDescriptionsLiveScope(Binder binder) {
binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.LIVE_SCOPE)).to(
LiveShadowedResourceDescriptions.class);
}
public Class<? extends IReferenceUpdater> bindCleanupStrategy() {
return PartialSerializationTestLanguageReferenceUpdater.class;
}
@Override
public Class<? extends IValueConverterService> bindIValueConverterService() {
return PartialSerializationTestLanguageValueConverter.class;
}
}

View file

@ -1,37 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage
import com.google.inject.Binder
import com.google.inject.name.Names
import org.eclipse.xtext.ide.serializer.hooks.IReferenceUpdater
import org.eclipse.xtext.ide.tests.testlanguage.ide.serializer.PartialSerializationTestLanguageReferenceUpdater
import org.eclipse.xtext.resource.IResourceDescriptions
import org.eclipse.xtext.resource.impl.LiveShadowedResourceDescriptions
import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider
import org.eclipse.xtext.ide.tests.testlanguage.scoping.PartialSerializationTestLanguageValueConverter
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
class PartialSerializationTestLanguageRuntimeModule extends AbstractPartialSerializationTestLanguageRuntimeModule {
override void configureIResourceDescriptionsLiveScope(Binder binder) {
binder.bind(IResourceDescriptions).annotatedWith(Names.named(ResourceDescriptionsProvider.LIVE_SCOPE)).to(
LiveShadowedResourceDescriptions)
}
def Class<? extends IReferenceUpdater> bindCleanupStrategy() {
return PartialSerializationTestLanguageReferenceUpdater
}
override bindIValueConverterService() {
PartialSerializationTestLanguageValueConverter
}
}

View file

@ -1,27 +1,28 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage
package org.eclipse.xtext.ide.tests.testlanguage;
import com.google.inject.Injector
import org.eclipse.emf.ecore.EPackage
import org.eclipse.xtext.ide.tests.testlanguage.withtransient.WithtransientPackage
import com.google.inject.Injector;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.xtext.ide.tests.testlanguage.withtransient.WithtransientPackage;
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class PartialSerializationTestLanguageStandaloneSetup extends PartialSerializationTestLanguageStandaloneSetupGenerated {
public class PartialSerializationTestLanguageStandaloneSetup extends PartialSerializationTestLanguageStandaloneSetupGenerated {
def static void doSetup() {
new PartialSerializationTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration()
public static void doSetup() {
new PartialSerializationTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
override register(Injector injector) {
super.register(injector)
@Override
public void register(Injector injector) {
super.register(injector);
if (!EPackage.Registry.INSTANCE.containsKey(
"http://www.eclipse.org/xtext/ide/tests/testlanguage/mm/withtransient")) {
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/xtext/ide/tests/testlanguage/mm/withtransient",

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -7,11 +7,9 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage;
import org.eclipse.xtext.ide.tests.testlanguage.AbstractRenameTestLanguageRuntimeModule;
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
@SuppressWarnings("all")
public class RenameTestLanguageRuntimeModule extends AbstractRenameTestLanguageRuntimeModule {
}

View file

@ -1,15 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
class RenameTestLanguageRuntimeModule extends AbstractRenameTestLanguageRuntimeModule {
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -7,14 +7,13 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage;
import org.eclipse.xtext.ide.tests.testlanguage.RenameTestLanguageStandaloneSetupGenerated;
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
@SuppressWarnings("all")
public class RenameTestLanguageStandaloneSetup extends RenameTestLanguageStandaloneSetupGenerated {
public static void doSetup() {
new RenameTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
public static void doSetup() {
new RenameTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
}

View file

@ -1,19 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class RenameTestLanguageStandaloneSetup extends RenameTestLanguageStandaloneSetupGenerated {
def static void doSetup() {
new RenameTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration()
}
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -10,11 +10,8 @@ package org.eclipse.xtext.ide.tests.testlanguage;
import org.eclipse.xtext.formatting2.IFormatter2;
import org.eclipse.xtext.ide.editor.syntaxcoloring.ISemanticHighlightingCalculator;
import org.eclipse.xtext.ide.serializer.hooks.IReferenceUpdater;
import org.eclipse.xtext.ide.server.coloring.IColoringService;
import org.eclipse.xtext.ide.server.semanticHighlight.ISemanticHighlightingStyleToTokenMapper;
import org.eclipse.xtext.ide.server.signatureHelp.ISignatureHelpService;
import org.eclipse.xtext.ide.tests.testlanguage.AbstractTestLanguageRuntimeModule;
import org.eclipse.xtext.ide.tests.testlanguage.coloring.ColoringServiceImpl;
import org.eclipse.xtext.ide.tests.testlanguage.editor.syntaxcoloring.SemanticHighlightingCalculatorImpl;
import org.eclipse.xtext.ide.tests.testlanguage.editor.syntaxcoloring.SemanticHighlightingStyleToTokenMapper;
import org.eclipse.xtext.ide.tests.testlanguage.formatting2.TestLanguageFormatter;
@ -24,30 +21,31 @@ import org.eclipse.xtext.ide.tests.testlanguage.signatureHelp.SignatureHelpServi
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
@SuppressWarnings("all")
public class TestLanguageRuntimeModule extends AbstractTestLanguageRuntimeModule {
public Class<? extends IFormatter2> bindIFormatter2() {
return TestLanguageFormatter.class;
}
public Class<? extends ISignatureHelpService> bindSignatureHelpService() {
return SignatureHelpServiceImpl.class;
}
@Deprecated
public Class<? extends IColoringService> bindIColoringService() {
return ColoringServiceImpl.class;
}
public Class<? extends ISemanticHighlightingCalculator> bindISemanticHighlightingCalculator() {
return SemanticHighlightingCalculatorImpl.class;
}
public Class<? extends ISemanticHighlightingStyleToTokenMapper> bindISemanticHighlightingStyleToTokenMapper() {
return SemanticHighlightingStyleToTokenMapper.class;
}
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
return TestLanguageReferenceUpdater.class;
}
public Class<? extends IFormatter2> bindIFormatter2() {
return TestLanguageFormatter.class;
}
public Class<? extends ISignatureHelpService> bindSignatureHelpService() {
return SignatureHelpServiceImpl.class;
}
@Deprecated
public Class<? extends org.eclipse.xtext.ide.server.coloring.IColoringService> bindIColoringService() {
return org.eclipse.xtext.ide.tests.testlanguage.coloring.ColoringServiceImpl.class;
}
public Class<? extends ISemanticHighlightingCalculator> bindISemanticHighlightingCalculator() {
return SemanticHighlightingCalculatorImpl.class;
}
public Class<? extends ISemanticHighlightingStyleToTokenMapper> bindISemanticHighlightingStyleToTokenMapper() {
return SemanticHighlightingStyleToTokenMapper.class;
}
public Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
return TestLanguageReferenceUpdater.class;
}
}

View file

@ -1,51 +0,0 @@
/*
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage
import org.eclipse.xtext.formatting2.IFormatter2
import org.eclipse.xtext.ide.editor.syntaxcoloring.ISemanticHighlightingCalculator
import org.eclipse.xtext.ide.serializer.hooks.IReferenceUpdater
import org.eclipse.xtext.ide.server.semanticHighlight.ISemanticHighlightingStyleToTokenMapper
import org.eclipse.xtext.ide.server.signatureHelp.ISignatureHelpService
import org.eclipse.xtext.ide.tests.testlanguage.editor.syntaxcoloring.SemanticHighlightingCalculatorImpl
import org.eclipse.xtext.ide.tests.testlanguage.editor.syntaxcoloring.SemanticHighlightingStyleToTokenMapper
import org.eclipse.xtext.ide.tests.testlanguage.formatting2.TestLanguageFormatter
import org.eclipse.xtext.ide.tests.testlanguage.ide.serializer.TestLanguageReferenceUpdater
import org.eclipse.xtext.ide.tests.testlanguage.signatureHelp.SignatureHelpServiceImpl
/**
* Use this class to register components to be used at runtime / without the Equinox extension registry.
*/
class TestLanguageRuntimeModule extends AbstractTestLanguageRuntimeModule {
def Class<? extends IFormatter2> bindIFormatter2() {
return TestLanguageFormatter;
}
def Class<? extends ISignatureHelpService> bindSignatureHelpService() {
return SignatureHelpServiceImpl;
}
@Deprecated
def Class<? extends org.eclipse.xtext.ide.server.coloring.IColoringService> bindIColoringService() {
return org.eclipse.xtext.ide.tests.testlanguage.coloring.ColoringServiceImpl;
}
def Class<? extends ISemanticHighlightingCalculator> bindISemanticHighlightingCalculator() {
return SemanticHighlightingCalculatorImpl;
}
def Class<? extends ISemanticHighlightingStyleToTokenMapper> bindISemanticHighlightingStyleToTokenMapper() {
return SemanticHighlightingStyleToTokenMapper;
}
def Class<? extends IReferenceUpdater> bindIReferenceUpdater() {
return TestLanguageReferenceUpdater;
}
}

View file

@ -1,19 +1,18 @@
/*
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) and others.
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage
package org.eclipse.xtext.ide.tests.testlanguage;
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class TestLanguageStandaloneSetup extends TestLanguageStandaloneSetupGenerated {
public class TestLanguageStandaloneSetup extends TestLanguageStandaloneSetupGenerated {
def static void doSetup() {
new TestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration()
public static void doSetup() {
new TestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -7,11 +7,9 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.ide;
import org.eclipse.xtext.ide.tests.testlanguage.ide.AbstractIndentationAwareUiTestLanguageIdeModule;
/**
* Use this class to register ide components.
*/
@SuppressWarnings("all")
public class IndentationAwareUiTestLanguageIdeModule extends AbstractIndentationAwareUiTestLanguageIdeModule {
}

View file

@ -1,15 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide
/**
* Use this class to register ide components.
*/
class IndentationAwareUiTestLanguageIdeModule extends AbstractIndentationAwareUiTestLanguageIdeModule {
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -8,21 +8,19 @@
package org.eclipse.xtext.ide.tests.testlanguage.ide;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.eclipse.xtext.ide.tests.testlanguage.IndentationAwareUiTestLanguageRuntimeModule;
import org.eclipse.xtext.ide.tests.testlanguage.IndentationAwareUiTestLanguageStandaloneSetup;
import org.eclipse.xtext.ide.tests.testlanguage.ide.IndentationAwareUiTestLanguageIdeModule;
import org.eclipse.xtext.util.Modules2;
import com.google.inject.Injector;
/**
* Initialization support for running Xtext languages as language servers.
*/
@SuppressWarnings("all")
public class IndentationAwareUiTestLanguageIdeSetup extends IndentationAwareUiTestLanguageStandaloneSetup {
@Override
public Injector createInjector() {
IndentationAwareUiTestLanguageRuntimeModule _indentationAwareUiTestLanguageRuntimeModule = new IndentationAwareUiTestLanguageRuntimeModule();
IndentationAwareUiTestLanguageIdeModule _indentationAwareUiTestLanguageIdeModule = new IndentationAwareUiTestLanguageIdeModule();
return Guice.createInjector(Modules2.mixin(_indentationAwareUiTestLanguageRuntimeModule, _indentationAwareUiTestLanguageIdeModule));
}
@Override
public Injector createInjector() {
return Guice.createInjector(Modules2.mixin(new IndentationAwareUiTestLanguageRuntimeModule(), new IndentationAwareUiTestLanguageIdeModule()));
}
}

View file

@ -1,24 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide
import com.google.inject.Guice
import org.eclipse.xtext.ide.tests.testlanguage.IndentationAwareUiTestLanguageRuntimeModule
import org.eclipse.xtext.ide.tests.testlanguage.IndentationAwareUiTestLanguageStandaloneSetup
import org.eclipse.xtext.util.Modules2
/**
* Initialization support for running Xtext languages as language servers.
*/
class IndentationAwareUiTestLanguageIdeSetup extends IndentationAwareUiTestLanguageStandaloneSetup {
override createInjector() {
Guice.createInjector(Modules2.mixin(new IndentationAwareUiTestLanguageRuntimeModule, new IndentationAwareUiTestLanguageIdeModule))
}
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -7,11 +7,9 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.ide;
import org.eclipse.xtext.ide.tests.testlanguage.ide.AbstractPartialContentAssistTestLanguageIdeModule;
/**
* Use this class to register ide components.
*/
@SuppressWarnings("all")
public class PartialContentAssistTestLanguageIdeModule extends AbstractPartialContentAssistTestLanguageIdeModule {
}

View file

@ -1,15 +0,0 @@
/*
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide
/**
* Use this class to register ide components.
*/
class PartialContentAssistTestLanguageIdeModule extends AbstractPartialContentAssistTestLanguageIdeModule {
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -8,21 +8,18 @@
package org.eclipse.xtext.ide.tests.testlanguage.ide;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.eclipse.xtext.ide.tests.testlanguage.PartialContentAssistTestLanguageRuntimeModule;
import org.eclipse.xtext.ide.tests.testlanguage.PartialContentAssistTestLanguageStandaloneSetup;
import org.eclipse.xtext.ide.tests.testlanguage.ide.PartialContentAssistTestLanguageIdeModule;
import org.eclipse.xtext.util.Modules2;
import com.google.inject.Injector;
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
@SuppressWarnings("all")
public class PartialContentAssistTestLanguageIdeSetup extends PartialContentAssistTestLanguageStandaloneSetup {
@Override
public Injector createInjector() {
PartialContentAssistTestLanguageRuntimeModule _partialContentAssistTestLanguageRuntimeModule = new PartialContentAssistTestLanguageRuntimeModule();
PartialContentAssistTestLanguageIdeModule _partialContentAssistTestLanguageIdeModule = new PartialContentAssistTestLanguageIdeModule();
return Guice.createInjector(Modules2.mixin(_partialContentAssistTestLanguageRuntimeModule, _partialContentAssistTestLanguageIdeModule));
}
@Override
public Injector createInjector() {
return Guice.createInjector(Modules2.mixin(new PartialContentAssistTestLanguageRuntimeModule(), new PartialContentAssistTestLanguageIdeModule()));
}
}

View file

@ -1,23 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide
import com.google.inject.Guice
import org.eclipse.xtext.ide.tests.testlanguage.PartialContentAssistTestLanguageRuntimeModule
import org.eclipse.xtext.ide.tests.testlanguage.PartialContentAssistTestLanguageStandaloneSetup
import org.eclipse.xtext.util.Modules2
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
class PartialContentAssistTestLanguageIdeSetup extends PartialContentAssistTestLanguageStandaloneSetup {
override createInjector() {
Guice.createInjector(Modules2.mixin(new PartialContentAssistTestLanguageRuntimeModule, new PartialContentAssistTestLanguageIdeModule))
}
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -7,11 +7,9 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.ide;
import org.eclipse.xtext.ide.tests.testlanguage.ide.AbstractPartialSerializationTestLanguageIdeModule;
/**
* Use this class to register ide components.
*/
@SuppressWarnings("all")
public class PartialSerializationTestLanguageIdeModule extends AbstractPartialSerializationTestLanguageIdeModule {
}

View file

@ -1,15 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide
/**
* Use this class to register ide components.
*/
class PartialSerializationTestLanguageIdeModule extends AbstractPartialSerializationTestLanguageIdeModule {
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -8,21 +8,19 @@
package org.eclipse.xtext.ide.tests.testlanguage.ide;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.eclipse.xtext.ide.tests.testlanguage.PartialSerializationTestLanguageRuntimeModule;
import org.eclipse.xtext.ide.tests.testlanguage.PartialSerializationTestLanguageStandaloneSetup;
import org.eclipse.xtext.ide.tests.testlanguage.ide.PartialSerializationTestLanguageIdeModule;
import org.eclipse.xtext.util.Modules2;
import com.google.inject.Injector;
/**
* Initialization support for running Xtext languages as language servers.
*/
@SuppressWarnings("all")
public class PartialSerializationTestLanguageIdeSetup extends PartialSerializationTestLanguageStandaloneSetup {
@Override
public Injector createInjector() {
PartialSerializationTestLanguageRuntimeModule _partialSerializationTestLanguageRuntimeModule = new PartialSerializationTestLanguageRuntimeModule();
PartialSerializationTestLanguageIdeModule _partialSerializationTestLanguageIdeModule = new PartialSerializationTestLanguageIdeModule();
return Guice.createInjector(Modules2.mixin(_partialSerializationTestLanguageRuntimeModule, _partialSerializationTestLanguageIdeModule));
}
@Override
public Injector createInjector() {
return Guice.createInjector(Modules2.mixin(new PartialSerializationTestLanguageRuntimeModule(), new PartialSerializationTestLanguageIdeModule()));
}
}

View file

@ -1,24 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide
import com.google.inject.Guice
import org.eclipse.xtext.ide.tests.testlanguage.PartialSerializationTestLanguageRuntimeModule
import org.eclipse.xtext.ide.tests.testlanguage.PartialSerializationTestLanguageStandaloneSetup
import org.eclipse.xtext.util.Modules2
/**
* Initialization support for running Xtext languages as language servers.
*/
class PartialSerializationTestLanguageIdeSetup extends PartialSerializationTestLanguageStandaloneSetup {
override createInjector() {
Guice.createInjector(Modules2.mixin(new PartialSerializationTestLanguageRuntimeModule, new PartialSerializationTestLanguageIdeModule))
}
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -7,11 +7,8 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.ide;
import org.eclipse.xtext.ide.tests.testlanguage.ide.AbstractRenameTestLanguageIdeModule;
/**
* Use this class to register ide components.
*/
@SuppressWarnings("all")
public class RenameTestLanguageIdeModule extends AbstractRenameTestLanguageIdeModule {
}

View file

@ -1,15 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide
/**
* Use this class to register ide components.
*/
class RenameTestLanguageIdeModule extends AbstractRenameTestLanguageIdeModule {
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -8,21 +8,19 @@
package org.eclipse.xtext.ide.tests.testlanguage.ide;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.eclipse.xtext.ide.tests.testlanguage.RenameTestLanguageRuntimeModule;
import org.eclipse.xtext.ide.tests.testlanguage.RenameTestLanguageStandaloneSetup;
import org.eclipse.xtext.ide.tests.testlanguage.ide.RenameTestLanguageIdeModule;
import org.eclipse.xtext.util.Modules2;
import com.google.inject.Injector;
/**
* Initialization support for running Xtext languages as language servers.
*/
@SuppressWarnings("all")
public class RenameTestLanguageIdeSetup extends RenameTestLanguageStandaloneSetup {
@Override
public Injector createInjector() {
RenameTestLanguageRuntimeModule _renameTestLanguageRuntimeModule = new RenameTestLanguageRuntimeModule();
RenameTestLanguageIdeModule _renameTestLanguageIdeModule = new RenameTestLanguageIdeModule();
return Guice.createInjector(Modules2.mixin(_renameTestLanguageRuntimeModule, _renameTestLanguageIdeModule));
}
@Override
public Injector createInjector() {
return Guice.createInjector(Modules2.mixin(new RenameTestLanguageRuntimeModule(), new RenameTestLanguageIdeModule()));
}
}

View file

@ -1,24 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide
import com.google.inject.Guice
import org.eclipse.xtext.ide.tests.testlanguage.RenameTestLanguageRuntimeModule
import org.eclipse.xtext.ide.tests.testlanguage.RenameTestLanguageStandaloneSetup
import org.eclipse.xtext.util.Modules2
/**
* Initialization support for running Xtext languages as language servers.
*/
class RenameTestLanguageIdeSetup extends RenameTestLanguageStandaloneSetup {
override createInjector() {
Guice.createInjector(Modules2.mixin(new RenameTestLanguageRuntimeModule, new RenameTestLanguageIdeModule))
}
}

View file

@ -0,0 +1,59 @@
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide;
import org.eclipse.xtext.ide.editor.contentassist.IdeContentProposalCreator;
import org.eclipse.xtext.ide.editor.contentassist.IdeContentProposalProvider;
import org.eclipse.xtext.ide.server.ILanguageServerExtension;
import org.eclipse.xtext.ide.server.codeActions.ICodeActionService2;
import org.eclipse.xtext.ide.server.codelens.ICodeLensResolver;
import org.eclipse.xtext.ide.server.codelens.ICodeLensService;
import org.eclipse.xtext.ide.server.commands.IExecutableCommandService;
import org.eclipse.xtext.ide.server.rename.IRenameService2;
import org.eclipse.xtext.ide.tests.testlanguage.ide.server.CodeActionService;
import org.eclipse.xtext.ide.tests.testlanguage.ide.server.CodeLensService;
import org.eclipse.xtext.ide.tests.testlanguage.rename.TestLanguageRenameService;
/**
* Use this class to register ide components.
*/
public class TestLanguageIdeModule extends AbstractTestLanguageIdeModule {
public Class<? extends ILanguageServerExtension> bindLanguageServerExtension() {
return TestLangLSPExtension.class;
}
public Class<? extends ICodeLensResolver> bindICodeLensResolver() {
return CodeLensService.class;
}
public Class<? extends ICodeLensService> bindICodeLensService() {
return CodeLensService.class;
}
public Class<? extends ICodeActionService2> bindICodeActionService2() {
return CodeActionService.class;
}
public Class<? extends IExecutableCommandService> bindIExecutableCommandService() {
return TestLanguageExecutableCommandService.class;
}
public Class<? extends IdeContentProposalCreator> bindIdeContentProposalCreator() {
return TestLanguageProposalCreator.class;
}
public Class<? extends IdeContentProposalProvider> bindIdeContentProposalProvider() {
return TestLanguageIdeContentProposalProvider.class;
}
@Override
public Class<? extends IRenameService2> bindIRenameService2() {
return TestLanguageRenameService.class;
}
}

View file

@ -1,58 +0,0 @@
/*
* Copyright (c) 2016, 2018 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide
import org.eclipse.xtext.ide.editor.contentassist.IdeContentProposalCreator
import org.eclipse.xtext.ide.editor.contentassist.IdeContentProposalProvider
import org.eclipse.xtext.ide.server.ILanguageServerExtension
import org.eclipse.xtext.ide.server.codeActions.ICodeActionService2
import org.eclipse.xtext.ide.server.codelens.ICodeLensResolver
import org.eclipse.xtext.ide.server.codelens.ICodeLensService
import org.eclipse.xtext.ide.server.commands.IExecutableCommandService
import org.eclipse.xtext.ide.server.rename.IRenameService2
import org.eclipse.xtext.ide.tests.testlanguage.ide.server.CodeActionService
import org.eclipse.xtext.ide.tests.testlanguage.ide.server.CodeLensService
import org.eclipse.xtext.ide.tests.testlanguage.rename.TestLanguageRenameService
/**
* Use this class to register ide components.
*/
class TestLanguageIdeModule extends AbstractTestLanguageIdeModule {
def Class<? extends ILanguageServerExtension> bindLanguageServerExtension() {
TestLangLSPExtension
}
def Class<? extends ICodeLensResolver> bindICodeLensResolver() {
CodeLensService
}
def Class<? extends ICodeLensService> bindICodeLensService() {
CodeLensService
}
def Class<? extends ICodeActionService2> bindICodeActionService2() {
CodeActionService
}
def Class<? extends IExecutableCommandService> bindIExecutableCommandService() {
return TestLanguageExecutableCommandService
}
def Class<? extends IdeContentProposalCreator> bindIdeContentProposalCreator() {
TestLanguageProposalCreator
}
def Class<? extends IdeContentProposalProvider> bindIdeContentProposalProvider() {
TestLanguageIdeContentProposalProvider
}
override Class<? extends IRenameService2> bindIRenameService2() {
return TestLanguageRenameService;
}
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2020 TypeFox GmbH (http://www.typefox.io) 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
@ -8,21 +8,19 @@
package org.eclipse.xtext.ide.tests.testlanguage.ide;
import com.google.inject.Guice;
import com.google.inject.Injector;
import org.eclipse.xtext.ide.tests.testlanguage.TestLanguageRuntimeModule;
import org.eclipse.xtext.ide.tests.testlanguage.TestLanguageStandaloneSetup;
import org.eclipse.xtext.ide.tests.testlanguage.ide.TestLanguageIdeModule;
import org.eclipse.xtext.util.Modules2;
import com.google.inject.Injector;
/**
* Initialization support for running Xtext languages as language servers.
*/
@SuppressWarnings("all")
public class TestLanguageIdeSetup extends TestLanguageStandaloneSetup {
@Override
public Injector createInjector() {
TestLanguageRuntimeModule _testLanguageRuntimeModule = new TestLanguageRuntimeModule();
TestLanguageIdeModule _testLanguageIdeModule = new TestLanguageIdeModule();
return Guice.createInjector(Modules2.mixin(_testLanguageRuntimeModule, _testLanguageIdeModule));
}
@Override
public Injector createInjector() {
return Guice.createInjector(Modules2.mixin(new TestLanguageRuntimeModule(), new TestLanguageIdeModule()));
}
}

View file

@ -1,24 +0,0 @@
/*
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide
import com.google.inject.Guice
import org.eclipse.xtext.ide.tests.testlanguage.TestLanguageRuntimeModule
import org.eclipse.xtext.ide.tests.testlanguage.TestLanguageStandaloneSetup
import org.eclipse.xtext.util.Modules2
/**
* Initialization support for running Xtext languages as language servers.
*/
class TestLanguageIdeSetup extends TestLanguageStandaloneSetup {
override createInjector() {
Guice.createInjector(Modules2.mixin(new TestLanguageRuntimeModule, new TestLanguageIdeModule))
}
}

View file

@ -1,4 +1,4 @@
/**
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@ -7,7 +7,6 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.scoping;
import org.eclipse.xtext.ide.tests.testlanguage.scoping.AbstractIndentationAwareUiTestLanguageScopeProvider;
/**
* This class contains custom scoping description.
@ -15,6 +14,6 @@ import org.eclipse.xtext.ide.tests.testlanguage.scoping.AbstractIndentationAware
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
@SuppressWarnings("all")
public class IndentationAwareUiTestLanguageScopeProvider extends AbstractIndentationAwareUiTestLanguageScopeProvider {
}

View file

@ -1,19 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.scoping
/**
* This class contains custom scoping description.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
class IndentationAwareUiTestLanguageScopeProvider extends AbstractIndentationAwareUiTestLanguageScopeProvider {
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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
@ -7,7 +7,6 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.scoping;
import org.eclipse.xtext.ide.tests.testlanguage.scoping.AbstractPartialContentAssistTestLanguageScopeProvider;
/**
* This class contains custom scoping description.
@ -15,6 +14,6 @@ import org.eclipse.xtext.ide.tests.testlanguage.scoping.AbstractPartialContentAs
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
@SuppressWarnings("all")
public class PartialContentAssistTestLanguageScopeProvider extends AbstractPartialContentAssistTestLanguageScopeProvider {
}

View file

@ -1,19 +0,0 @@
/*
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.scoping
/**
* This class contains custom scoping description.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
class PartialContentAssistTestLanguageScopeProvider extends AbstractPartialContentAssistTestLanguageScopeProvider {
}

View file

@ -1,4 +1,4 @@
/**
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@ -7,7 +7,6 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.scoping;
import org.eclipse.xtext.ide.tests.testlanguage.scoping.AbstractPartialSerializationTestLanguageScopeProvider;
/**
* This class contains custom scoping description.
@ -15,6 +14,6 @@ import org.eclipse.xtext.ide.tests.testlanguage.scoping.AbstractPartialSerializa
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
@SuppressWarnings("all")
public class PartialSerializationTestLanguageScopeProvider extends AbstractPartialSerializationTestLanguageScopeProvider {
}

View file

@ -1,19 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.scoping
/**
* This class contains custom scoping description.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
class PartialSerializationTestLanguageScopeProvider extends AbstractPartialSerializationTestLanguageScopeProvider {
}

View file

@ -1,4 +1,4 @@
/**
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@ -7,7 +7,6 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.scoping;
import org.eclipse.xtext.ide.tests.testlanguage.scoping.AbstractRenameTestLanguageScopeProvider;
/**
* This class contains custom scoping description.
@ -15,6 +14,6 @@ import org.eclipse.xtext.ide.tests.testlanguage.scoping.AbstractRenameTestLangua
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
@SuppressWarnings("all")
public class RenameTestLanguageScopeProvider extends AbstractRenameTestLanguageScopeProvider {
}

View file

@ -1,19 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.scoping
/**
* This class contains custom scoping description.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
class RenameTestLanguageScopeProvider extends AbstractRenameTestLanguageScopeProvider {
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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
@ -7,7 +7,6 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.scoping;
import org.eclipse.xtext.ide.tests.testlanguage.scoping.AbstractTestLanguageScopeProvider;
/**
* This class contains custom scoping description.
@ -15,6 +14,6 @@ import org.eclipse.xtext.ide.tests.testlanguage.scoping.AbstractTestLanguageScop
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
@SuppressWarnings("all")
public class TestLanguageScopeProvider extends AbstractTestLanguageScopeProvider {
}

View file

@ -1,19 +0,0 @@
/*
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.scoping
/**
* This class contains custom scoping description.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#scoping
* on how and when to use it.
*/
class TestLanguageScopeProvider extends AbstractTestLanguageScopeProvider {
}

View file

@ -1,4 +1,4 @@
/**
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@ -7,13 +7,23 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.validation;
import org.eclipse.xtext.ide.tests.testlanguage.validation.AbstractIndentationAwareUiTestLanguageValidator;
/**
* This class contains custom validation rules.
*
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
@SuppressWarnings("all")
public class IndentationAwareUiTestLanguageValidator extends AbstractIndentationAwareUiTestLanguageValidator {
// public static final String INVALID_NAME = "invalidName";
//
// @Check
// public void checkGreetingStartsWithCapital(Greeting greeting) {
// if (!Character.isUpperCase(greeting.getName().charAt(0))) {
// warning("Name should start with a capital",
// IndentationAwareUiTestLanguagePackage.Literals.GREETING__NAME,
// INVALID_NAME);
// }
// }
}

View file

@ -1,29 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.validation
/**
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
class IndentationAwareUiTestLanguageValidator extends AbstractIndentationAwareUiTestLanguageValidator {
// public static val INVALID_NAME = 'invalidName'
//
// @Check
// def checkGreetingStartsWithCapital(Greeting greeting) {
// if (!Character.isUpperCase(greeting.name.charAt(0))) {
// warning('Name should start with a capital',
// IndentationAwareUiTestLanguagePackage.Literals.GREETING__NAME,
// INVALID_NAME)
// }
// }
}

View file

@ -1,5 +1,5 @@
/**
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) and others.
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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
@ -7,13 +7,23 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.validation;
import org.eclipse.xtext.ide.tests.testlanguage.validation.AbstractPartialContentAssistTestLanguageValidator;
/**
* This class contains custom validation rules.
*
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
@SuppressWarnings("all")
public class PartialContentAssistTestLanguageValidator extends AbstractPartialContentAssistTestLanguageValidator {
// public static final String INVALID_NAME = "invalidName";
//
// @Check
// public void checkGreetingStartsWithCapital(Greeting greeting) {
// if (!Character.isUpperCase(greeting.getName().charAt(0))) {
// warning("Name should start with a capital",
// PartialContentAssistTestLanguagePackage.Literals.GREETING__NAME,
// INVALID_NAME);
// }
// }
}

View file

@ -1,29 +0,0 @@
/*
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.validation
/**
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
class PartialContentAssistTestLanguageValidator extends AbstractPartialContentAssistTestLanguageValidator {
// public static val INVALID_NAME = 'invalidName'
//
// @Check
// def checkGreetingStartsWithCapital(Greeting greeting) {
// if (!Character.isUpperCase(greeting.name.charAt(0))) {
// warning('Name should start with a capital',
// PartialContentAssistTestLanguagePackage.Literals.GREETING__NAME,
// INVALID_NAME)
// }
// }
}

View file

@ -1,4 +1,4 @@
/**
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@ -7,13 +7,23 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.validation;
import org.eclipse.xtext.ide.tests.testlanguage.validation.AbstractPartialSerializationTestLanguageValidator;
/**
* This class contains custom validation rules.
*
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
@SuppressWarnings("all")
public class PartialSerializationTestLanguageValidator extends AbstractPartialSerializationTestLanguageValidator {
// public static final String INVALID_NAME = "invalidName";
//
// @Check
// public void checkGreetingStartsWithCapital(Greeting greeting) {
// if (!Character.isUpperCase(greeting.getName().charAt(0))) {
// warning("Name should start with a capital",
// PartialSerializationTestLanguagePackage.Literals.GREETING__NAME,
// INVALID_NAME);
// }
// }
}

View file

@ -1,29 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.validation
/**
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
class PartialSerializationTestLanguageValidator extends AbstractPartialSerializationTestLanguageValidator {
// public static val INVALID_NAME = 'invalidName'
//
// @Check
// def checkGreetingStartsWithCapital(Greeting greeting) {
// if (!Character.isUpperCase(greeting.name.charAt(0))) {
// warning('Name should start with a capital',
// PartialSerializationTestLanguagePackage.Literals.GREETING__NAME,
// INVALID_NAME)
// }
// }
}

View file

@ -1,4 +1,4 @@
/**
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@ -7,13 +7,23 @@
*/
package org.eclipse.xtext.ide.tests.testlanguage.validation;
import org.eclipse.xtext.ide.tests.testlanguage.validation.AbstractRenameTestLanguageValidator;
/**
* This class contains custom validation rules.
*
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
@SuppressWarnings("all")
public class RenameTestLanguageValidator extends AbstractRenameTestLanguageValidator {
// public static final String INVALID_NAME = "invalidName";
//
// @Check
// public void checkGreetingStartsWithCapital(Greeting greeting) {
// if (!Character.isUpperCase(greeting.getName().charAt(0))) {
// warning("Name should start with a capital",
// RenameTestLanguagePackage.Literals.GREETING__NAME,
// INVALID_NAME);
// }
// }
}

View file

@ -1,29 +0,0 @@
/*
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.validation
/**
* This class contains custom validation rules.
*
* See https://www.eclipse.org/Xtext/documentation/303_runtime_concepts.html#validation
*/
class RenameTestLanguageValidator extends AbstractRenameTestLanguageValidator {
// public static val INVALID_NAME = 'invalidName'
//
// @Check
// def checkGreetingStartsWithCapital(Greeting greeting) {
// if (!Character.isUpperCase(greeting.name.charAt(0))) {
// warning('Name should start with a capital',
// RenameTestLanguagePackage.Literals.GREETING__NAME,
// INVALID_NAME)
// }
// }
}

View file

@ -1,35 +0,0 @@
/**
* Copyright (c) 2016, 2017 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage;
import com.google.inject.Injector;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.xtext.ide.tests.testlanguage.PartialSerializationTestLanguageStandaloneSetupGenerated;
import org.eclipse.xtext.ide.tests.testlanguage.withtransient.WithtransientPackage;
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
@SuppressWarnings("all")
public class PartialSerializationTestLanguageStandaloneSetup extends PartialSerializationTestLanguageStandaloneSetupGenerated {
public static void doSetup() {
new PartialSerializationTestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
@Override
public void register(final Injector injector) {
super.register(injector);
boolean _containsKey = EPackage.Registry.INSTANCE.containsKey(
"http://www.eclipse.org/xtext/ide/tests/testlanguage/mm/withtransient");
boolean _not = (!_containsKey);
if (_not) {
EPackage.Registry.INSTANCE.put("http://www.eclipse.org/xtext/ide/tests/testlanguage/mm/withtransient",
WithtransientPackage.eINSTANCE);
}
}
}

View file

@ -1,20 +0,0 @@
/**
* Copyright (c) 2016 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage;
import org.eclipse.xtext.ide.tests.testlanguage.TestLanguageStandaloneSetupGenerated;
/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
@SuppressWarnings("all")
public class TestLanguageStandaloneSetup extends TestLanguageStandaloneSetupGenerated {
public static void doSetup() {
new TestLanguageStandaloneSetup().createInjectorAndDoEMFRegistration();
}
}

View file

@ -1,64 +0,0 @@
/**
* Copyright (c) 2016, 2018 TypeFox GmbH (http://www.typefox.io) 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.ide.tests.testlanguage.ide;
import org.eclipse.xtext.ide.editor.contentassist.IdeContentProposalCreator;
import org.eclipse.xtext.ide.editor.contentassist.IdeContentProposalProvider;
import org.eclipse.xtext.ide.server.ILanguageServerExtension;
import org.eclipse.xtext.ide.server.codeActions.ICodeActionService2;
import org.eclipse.xtext.ide.server.codelens.ICodeLensResolver;
import org.eclipse.xtext.ide.server.codelens.ICodeLensService;
import org.eclipse.xtext.ide.server.commands.IExecutableCommandService;
import org.eclipse.xtext.ide.server.rename.IRenameService2;
import org.eclipse.xtext.ide.tests.testlanguage.ide.AbstractTestLanguageIdeModule;
import org.eclipse.xtext.ide.tests.testlanguage.ide.TestLangLSPExtension;
import org.eclipse.xtext.ide.tests.testlanguage.ide.TestLanguageExecutableCommandService;
import org.eclipse.xtext.ide.tests.testlanguage.ide.TestLanguageIdeContentProposalProvider;
import org.eclipse.xtext.ide.tests.testlanguage.ide.TestLanguageProposalCreator;
import org.eclipse.xtext.ide.tests.testlanguage.ide.server.CodeActionService;
import org.eclipse.xtext.ide.tests.testlanguage.ide.server.CodeLensService;
import org.eclipse.xtext.ide.tests.testlanguage.rename.TestLanguageRenameService;
/**
* Use this class to register ide components.
*/
@SuppressWarnings("all")
public class TestLanguageIdeModule extends AbstractTestLanguageIdeModule {
public Class<? extends ILanguageServerExtension> bindLanguageServerExtension() {
return TestLangLSPExtension.class;
}
public Class<? extends ICodeLensResolver> bindICodeLensResolver() {
return CodeLensService.class;
}
public Class<? extends ICodeLensService> bindICodeLensService() {
return CodeLensService.class;
}
public Class<? extends ICodeActionService2> bindICodeActionService2() {
return CodeActionService.class;
}
public Class<? extends IExecutableCommandService> bindIExecutableCommandService() {
return TestLanguageExecutableCommandService.class;
}
public Class<? extends IdeContentProposalCreator> bindIdeContentProposalCreator() {
return TestLanguageProposalCreator.class;
}
public Class<? extends IdeContentProposalProvider> bindIdeContentProposalProvider() {
return TestLanguageIdeContentProposalProvider.class;
}
@Override
public Class<? extends IRenameService2> bindIRenameService2() {
return TestLanguageRenameService.class;
}
}