-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d7e677
commit bd83f69
Showing
15 changed files
with
144 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...lipse.emf.parsley.dsl.ide/src/org/eclipse/emf/parsley/dsl/ide/EmfParsleyDslIdeModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |
11 changes: 0 additions & 11 deletions
11
...ipse.emf.parsley.dsl.ide/src/org/eclipse/emf/parsley/dsl/ide/EmfParsleyDslIdeModule.xtend
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...clipse.emf.parsley.dsl.ide/src/org/eclipse/emf/parsley/dsl/ide/EmfParsleyDslIdeSetup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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())); | ||
} | ||
|
||
} |
20 changes: 0 additions & 20 deletions
20
...lipse.emf.parsley.dsl.ide/src/org/eclipse/emf/parsley/dsl/ide/EmfParsleyDslIdeSetup.xtend
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
....eclipse.emf.parsley.dsl.ui/src/org/eclipse/emf/parsley/dsl/ui/EmfParsleyDslUiModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
34 changes: 0 additions & 34 deletions
34
...eclipse.emf.parsley.dsl.ui/src/org/eclipse/emf/parsley/dsl/ui/EmfParsleyDslUiModule.xtend
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
...g.eclipse.emf.parsley.dsl/src/org/eclipse/emf/parsley/dsl/EmfParsleyDslRuntimeModule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
58 changes: 0 additions & 58 deletions
58
....eclipse.emf.parsley.dsl/src/org/eclipse/emf/parsley/dsl/EmfParsleyDslRuntimeModule.xtend
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
...eclipse.emf.parsley.dsl/src/org/eclipse/emf/parsley/dsl/EmfParsleyDslStandaloneSetup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
20 changes: 0 additions & 20 deletions
20
...clipse.emf.parsley.dsl/src/org/eclipse/emf/parsley/dsl/EmfParsleyDslStandaloneSetup.xtend
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters