Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/scripts/regenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ EXCLUDE=(

# Workflows whose committed output still differs from what they generate, with the issue that fixes each.
KNOWN_DRIFT=(
com.avaloq.tools.ddk.workflow/src/com/avaloq/tools/ddk/workflow/GenerateExport.mwe2 # #1671
com.avaloq.tools.ddk.workflow/src/com/avaloq/tools/ddk/workflow/GenerateFormat.mwe2 # #1671
com.avaloq.tools.ddk.workflow/src/com/avaloq/tools/ddk/workflow/GenerateFormatterTestLanguage.mwe2 # #1671
com.avaloq.tools.ddk.workflow/src/com/avaloq/tools/ddk/workflow/GenerateCheck.mwe2 # #1671
com.avaloq.tools.ddk.workflow/src/com/avaloq/tools/ddk/workflow/GenerateCheckCfg.mwe2 # #1671
com.avaloq.tools.ddk.sample.helloworld/src/com/avaloq/tools/ddk/sample/helloworld/GenerateHelloWorld.mwe2 # #1671
com.avaloq.tools.ddk.check.test.runtime/src/com/avaloq/tools/ddk/check/GenerateTestLanguage.mwe2 # #1672
)

Expand Down
5 changes: 0 additions & 5 deletions com.avaloq.tools.ddk.check.core.test/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
</accessrules>
</classpathentry>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="src-gen">
<attributes>
<attribute name="ignore_optional_problems" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="resource"/>
<classpathentry kind="output" path="bin"/>
</classpath>
1 change: 0 additions & 1 deletion com.avaloq.tools.ddk.check.core.test/build.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
source.. = src/,\
src-gen/,\
resource/
output.. = bin/
bin.includes = META-INF/,\
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
/*
* generated by Xtext
*/
/*******************************************************************************
* Copyright (c) 2017 Avaloq Group AG 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:
* Avaloq Group AG - initial API and implementation
*******************************************************************************/
package com.avaloq.tools.ddk.check;

import org.eclipse.xtext.testing.GlobalRegistries;
Expand All @@ -11,11 +18,14 @@
import com.google.inject.Injector;


/**
* Provides the injector of the Check language, created by {@link CheckStandaloneSetup}.
*/
public class CheckInjectorProvider implements IInjectorProvider, IRegistryConfigurator {

protected GlobalStateMemento stateBeforeInjectorCreation;
protected GlobalStateMemento stateAfterInjectorCreation;
protected Injector injector;
private GlobalStateMemento stateBeforeInjectorCreation;
private GlobalStateMemento stateAfterInjectorCreation;
private Injector injector;

static {
GlobalRegistries.initializeDefaults();
Expand All @@ -31,6 +41,11 @@ public Injector getInjector() {
return injector;
}

/**
* Creates the injector and registers the Check language with EMF.
*
* @return the {@link Injector}
*/
protected Injector internalCreateInjector() {
return new CheckStandaloneSetup().createInjectorAndDoEMFRegistration();
}
Expand Down
3 changes: 2 additions & 1 deletion com.avaloq.tools.ddk.check.core/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ Export-Package: com.avaloq.tools.ddk.check,
com.avaloq.tools.ddk.check.util,
com.avaloq.tools.ddk.check.validation
Import-Package: org.eclipse.jdt.internal.ui.text,
org.apache.logging.log4j
org.apache.logging.log4j,
org.apache.log4j
Automatic-Module-Name: com.avaloq.tools.ddk.check.core
2 changes: 1 addition & 1 deletion com.avaloq.tools.ddk.checkcfg.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: com.avaloq.tools.ddk.checkcfg.ui
Bundle-SymbolicName: com.avaloq.tools.ddk.checkcfg.ui;singleton:=true
Bundle-Version: 17.3.5.qualifier
Bundle-Version: 17.3.6.qualifier
Bundle-Vendor: Avaloq Group AG
Bundle-RequiredExecutionEnvironment: JavaSE-21
Bundle-Activator: com.avaloq.tools.ddk.checkcfg.ui.internal.Activator
Expand Down
2 changes: 1 addition & 1 deletion com.avaloq.tools.ddk.checkcfg.ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<version>18.0.1-SNAPSHOT</version>
<relativePath>../ddk-parent</relativePath>
</parent>
<version>17.3.5-SNAPSHOT</version>
<version>17.3.6-SNAPSHOT</version>
<groupId>com.avaloq.tools.ddk</groupId>
<artifactId>com.avaloq.tools.ddk.checkcfg.ui</artifactId>
<packaging>eclipse-plugin</packaging>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

import com.avaloq.tools.ddk.checkcfg.CheckCfgRuntimeModule;
import com.avaloq.tools.ddk.checkcfg.ui.CheckCfgUiModule;
import com.google.common.collect.Maps;
import com.google.inject.Guice;
import com.google.inject.Injector;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.eclipse.ui.plugin.AbstractUIPlugin;
Expand All @@ -29,7 +29,7 @@ public class CheckcfgActivator extends AbstractUIPlugin {

private static CheckcfgActivator INSTANCE;

private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1));
private Map<String, Injector> injectors = Collections.synchronizedMap(new HashMap<>(2));

@Override
public void start(BundleContext context) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

import com.avaloq.tools.ddk.sample.helloworld.HelloWorldRuntimeModule;
import com.avaloq.tools.ddk.sample.helloworld.ui.HelloWorldUiModule;
import com.google.common.collect.Maps;
import com.google.inject.Guice;
import com.google.inject.Injector;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.eclipse.ui.plugin.AbstractUIPlugin;
Expand All @@ -29,7 +29,7 @@ public class HelloworldActivator extends AbstractUIPlugin {

private static HelloworldActivator INSTANCE;

private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1));
private Map<String, Injector> injectors = Collections.synchronizedMap(new HashMap<>(2));

@Override
public void start(BundleContext context) throws Exception {
Expand Down
3 changes: 2 additions & 1 deletion com.avaloq.tools.ddk.sample.helloworld/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ Export-Package: com.avaloq.tools.ddk.sample.helloworld.helloWorld,
com.avaloq.tools.ddk.sample.helloworld.parser.antlr.internal,
com.avaloq.tools.ddk.sample.helloworld.validation,
com.avaloq.tools.ddk.sample.helloworld.grammar
Import-Package: org.apache.logging.log4j
Import-Package: org.apache.logging.log4j,
org.apache.log4j
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext" modelDirectory="/com.avaloq.tools.ddk.sample.helloworld/src-gen"
modelPluginID="com.avaloq.tools.ddk.sample.helloworld" forceOverwrite="true" modelName="HelloWorld"
updateClasspath="false" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
complianceLevel="11.0" copyrightFields="false" runtimeVersion="2.29">
complianceLevel="17.0" copyrightFields="false" runtimeVersion="2.36">
<genPackages prefix="HelloWorld" basePackage="com.avaloq.tools.ddk.sample.helloworld"
disposableProviderFactory="true" fileExtensions="helloworld" ecorePackage="HelloWorld.ecore#/">
<genClasses ecoreClass="HelloWorld.ecore#//Model">
Expand Down
2 changes: 1 addition & 1 deletion com.avaloq.tools.ddk.xtext.export/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: com.avaloq.tools.ddk.xtext.export
Bundle-SymbolicName: com.avaloq.tools.ddk.xtext.export;singleton:=true
Bundle-Version: 17.3.7.qualifier
Bundle-Version: 17.3.8.qualifier
Bundle-Vendor: Avaloq Group AG
Bundle-RequiredExecutionEnvironment: JavaSE-21
Bundle-ActivationPolicy: lazy
Expand Down
2 changes: 1 addition & 1 deletion com.avaloq.tools.ddk.xtext.export/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<version>18.0.1-SNAPSHOT</version>
<relativePath>../ddk-parent</relativePath>
</parent>
<version>17.3.7-SNAPSHOT</version>
<version>17.3.8-SNAPSHOT</version>
<groupId>com.avaloq.tools.ddk</groupId>
<artifactId>com.avaloq.tools.ddk.xtext.export</artifactId>
<packaging>eclipse-plugin</packaging>
Expand Down
Loading