Skip to content

Commit

Permalink
preferXtendStubs = false
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Nov 24, 2023
1 parent 4d7e677 commit bd83f69
Show file tree
Hide file tree
Showing 15 changed files with 144 additions and 167 deletions.
1 change: 0 additions & 1 deletion dsl/org.eclipse.emf.parsley.dsl.ide/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<attribute name="ignore_optional_problems" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="xtend-gen"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="target/classes"/>
Expand Down
3 changes: 1 addition & 2 deletions dsl/org.eclipse.emf.parsley.dsl.ide/build.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
source.. = src-gen/,\
src/,\
xtend-gen/
src/
bin.includes = .,\
about.html,\
META-INF/
Expand Down
8 changes: 0 additions & 8 deletions dsl/org.eclipse.emf.parsley.dsl.ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,4 @@
<artifactId>org.eclipse.emf.parsley.dsl.ide</artifactId>
<packaging>eclipse-plugin</packaging>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* generated by Xtext 2.33.0
*/
package org.eclipse.emf.parsley.dsl.ide;


/**
* Use this class to register ide components.
*/
public class EmfParsleyDslIdeModule extends AbstractEmfParsleyDslIdeModule {
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* generated by Xtext 2.33.0
*/
package org.eclipse.emf.parsley.dsl.ide;

import com.google.inject.Guice;
import com.google.inject.Injector;
import org.eclipse.emf.parsley.dsl.EmfParsleyDslRuntimeModule;
import org.eclipse.emf.parsley.dsl.EmfParsleyDslStandaloneSetup;
import org.eclipse.xtext.util.Modules2;

/**
* Initialization support for running Xtext languages as language servers.
*/
public class EmfParsleyDslIdeSetup extends EmfParsleyDslStandaloneSetup {

@Override
public Injector createInjector() {
return Guice.createInjector(Modules2.mixin(new EmfParsleyDslRuntimeModule(), new EmfParsleyDslIdeModule()));
}

}

This file was deleted.

2 changes: 0 additions & 2 deletions dsl/org.eclipse.emf.parsley.dsl.ide/xtend-gen/.gitignore

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/**
* Copyright (c) 2023 Lorenzo Bettini 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:
* Lorenzo Bettini - initial API and implementation
*/
package org.eclipse.emf.parsley.dsl.ui;

import org.eclipse.emf.parsley.dsl.ui.wizard.EmfParsleyDslNewProjectWithPredefinedViewWizard;
import org.eclipse.emf.parsley.dsl.ui.wizard.EmfParsleyDslNewProjectWizard;
import org.eclipse.emf.parsley.dsl.ui.wizard.EmfParsleyDslProjectCreatorCustom;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclipse.xtext.ui.wizard.IProjectCreator;

/**
* Use this class to register components to be used within the Eclipse IDE.
*/
public class EmfParsleyDslUiModule extends AbstractEmfParsleyDslUiModule {

public EmfParsleyDslUiModule(AbstractUIPlugin plugin) {
super(plugin);
}

@Override
public Class<? extends IProjectCreator> bindIProjectCreator() {
return EmfParsleyDslProjectCreatorCustom.class;
}

public Class<? extends EmfParsleyDslNewProjectWizard> bindEmfParsleyDslNewProjectWizard() {
return EmfParsleyDslNewProjectWithPredefinedViewWizard.class;
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
* Copyright (c) 2023 Lorenzo Bettini 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:
* Lorenzo Bettini - initial API and implementation
*/
package org.eclipse.emf.parsley.dsl;

import com.google.inject.Binder;
import com.google.inject.name.Names;
import org.eclipse.emf.parsley.dsl.generator.EmfParsleyDslGenerator;
import org.eclipse.emf.parsley.dsl.generator.EmfParsleyDslOutputConfigurationProvider;
import org.eclipse.emf.parsley.dsl.scoping.EmfParsleyDslImplicitlyImportedFeatures;
import org.eclipse.emf.parsley.dsl.scoping.EmfParsleyDslImportedNamespaceScopeProvider;
import org.eclipse.emf.parsley.dsl.scoping.EmfParsleyDslResourceDescriptionStrategy;
import org.eclipse.xtext.generator.IGenerator;
import org.eclipse.xtext.generator.IOutputConfigurationProvider;
import org.eclipse.xtext.resource.IDefaultResourceDescriptionStrategy;
import org.eclipse.xtext.scoping.IScopeProvider;
import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider;
import org.eclipse.xtext.xbase.scoping.batch.ImplicitlyImportedFeatures;

/**
* Use this class to register components to be used at runtime / without the
* Equinox extension registry.
*/
public class EmfParsleyDslRuntimeModule extends AbstractEmfParsleyDslRuntimeModule {
public Class<? extends IOutputConfigurationProvider> bindIOutputConfigurationProvider() {
return EmfParsleyDslOutputConfigurationProvider.class;
}

@Override
public Class<? extends IGenerator> bindIGenerator() {
return EmfParsleyDslGenerator.class;
}

public Class<? extends ImplicitlyImportedFeatures> bindImplicitlyImportedFeatures() {
return EmfParsleyDslImplicitlyImportedFeatures.class;
}

@Override
public Class<? extends IDefaultResourceDescriptionStrategy> bindIDefaultResourceDescriptionStrategy() {
return EmfParsleyDslResourceDescriptionStrategy.class;
}

@Override
public void configureIScopeProviderDelegate(final Binder binder) {
binder.bind(IScopeProvider.class)
.annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE))
.to(EmfParsleyDslImportedNamespaceScopeProvider.class);
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* generated by Xtext 2.33.0
*/
package org.eclipse.emf.parsley.dsl;


/**
* Initialization support for running Xtext languages without Equinox extension registry.
*/
public class EmfParsleyDslStandaloneSetup extends EmfParsleyDslStandaloneSetupGenerated {

public static void doSetup() {
new EmfParsleyDslStandaloneSetup().createInjectorAndDoEMFRegistration();
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Workflow {
encoding = "UTF-8"
lineDelimiter = "\n"
fileHeader = "/*\n * generated by Xtext \${version}\n */"
preferXtendStubs = false
}
}
language = StandardLanguage {
Expand All @@ -45,18 +46,10 @@ Workflow {
}
validator = {
// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
generateXtendStub = true
}
scopeProvider = {
generateXtendStub = false
}
labelProvider = {
generateXtendStub = false
}
outline = {
generateXtendStub = false
}
quickFixProvider = {
generateXtendStub = false
contentAssist = {
generateXtendStub = true
}
}
}
Expand Down

0 comments on commit bd83f69

Please sign in to comment.