Skip to content
Merged
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
1 change: 0 additions & 1 deletion com.avaloq.tools.ddk.test.ui/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Bundle-ActivationPolicy: lazy
Require-Bundle: com.avaloq.tools.ddk.test.core,
org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.draw2d,
org.eclipse.swt,
org.eclipse.swtbot.eclipse.core,
org.eclipse.swtbot.eclipse.finder;visibility:=reexport,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,6 @@ public void dragAndDrop(final AbstractSWTBot<? extends Widget> source, final Abs
dragAndDrop(source, dropTarget);
}

/**
* Performs a drag and drop operation from this widget to the given target
* at the given location from target origin. The drag start location will be
* chosen depending on this widget's default implementation.
*
* @param source
* the source widget to drag
* @param target
* To perform the drop on
* @param locationOnTarget
* The target locations, from target origin, where the DND shall
* finish.
* @see #dragAndDrop(Point)
*/
public void dragAndDrop(final AbstractSWTBot<? extends Widget> source, final AbstractSWTBot<? extends Widget> target, final org.eclipse.draw2d.geometry.Point locationOnTarget) {
dragAndDrop(source, target, new Point(locationOnTarget.x, locationOnTarget.y));
}

/**
* Performs a DND operation to an arbitrary location. The drag start
* location will be chosen depending on this widget's default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Export-Package: com.avaloq.tools.ddk.xtext.format.ui;x-internal=true
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.ui.workbench;resolution:=optional,
org.eclipse.xtext.testing,
org.eclipse.xtext.xbase.junit,
org.eclipse.xtext.xbase.testing,
org.eclipse.xtext.ui.testing,
org.eclipse.xtext.xbase.ui.testing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*******************************************************************************/
package com.avaloq.tools.ddk.xtext.test.ui.quickfix;

import static org.hamcrest.Matchers.equalToIgnoringWhiteSpace;
import static org.junit.Assert.assertEquals;

import java.util.ArrayList;
Expand All @@ -23,6 +22,7 @@
import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider;
import org.eclipse.xtext.validation.Issue;
import org.hamcrest.MatcherAssert;
import org.hamcrest.text.IsEqualCompressingWhiteSpace;
import org.junit.Assert;

import com.avaloq.tools.ddk.check.runtime.quickfix.ICoreModificationContext;
Expand Down Expand Up @@ -386,7 +386,7 @@ private void assertQuickFixProducesExpectedOutput(final String expectedContent,
String expected = expectedContent.replaceAll(CR_LF, LF);
String actual = actualContent.replaceAll(CR_LF, LF);
if (ignoreFormatting) {
MatcherAssert.assertThat(message, actual, equalToIgnoringWhiteSpace(expected));
MatcherAssert.assertThat(message, actual, IsEqualCompressingWhiteSpace.equalToCompressingWhiteSpace(expected));
} else {
assertEquals(message, expected, actual);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
*******************************************************************************/
package com.avaloq.tools.ddk.xtext;

import org.eclipse.xtext.ui.testing.util.TargetPlatformUtil;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;

Expand Down Expand Up @@ -55,9 +53,4 @@
})
// @Format-On
public class AllTests {
@BeforeClass
public static void setUp() throws Exception {
// Make sure PDE can deal with plugin projects we may create in our tests.
TargetPlatformUtil.setTargetPlatform(AllTests.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

package com.avaloq.tools.ddk.xtext.modelinference;

import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.Set;

Expand All @@ -20,7 +21,6 @@
import org.eclipse.xtext.naming.IQualifiedNameProvider;
import org.eclipse.xtext.naming.QualifiedName;

import com.google.common.base.Charsets;
import com.google.common.collect.Maps;
import com.google.common.hash.HashCode;
import com.google.common.hash.HashFunction;
Expand Down Expand Up @@ -97,7 +97,7 @@ protected IQualifiedNameProvider getQualifiedNameProvider() {
protected HashCode computeHash(final EClass eClass, final QualifiedName name) {
byte[] eClassUriBytes = eClassToUriBytesMap.get(eClass);
if (eClassUriBytes == null) {
eClassUriBytes = EcoreUtil.getURI(eClass).toString().getBytes(Charsets.UTF_8);
eClassUriBytes = EcoreUtil.getURI(eClass).toString().getBytes(StandardCharsets.UTF_8);
eClassToUriBytesMap.put(eClass, eClassUriBytes);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*******************************************************************************/
package com.avaloq.tools.ddk.xtext.resource;

import java.nio.charset.StandardCharsets;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.Collections;
Expand All @@ -28,7 +29,6 @@
import org.eclipse.emf.ecore.util.InternalEList;
import org.eclipse.xtext.linking.lazy.LazyLinkingResource;

import com.google.common.base.Charsets;
import com.google.common.collect.Iterables;
import com.google.common.collect.Lists;
import com.google.common.collect.Ordering;
Expand Down Expand Up @@ -194,7 +194,7 @@ protected String computeFingerprint(final Iterable<? extends EObject> objects) {
protected final CharSequence encodeFingerprint(final ExportItem export) {
try {
final MessageDigest md5 = MessageDigest.getInstance("MD5"); //$NON-NLS-1$
final byte[] digest = md5.digest(export.getKeyAsString().getBytes(Charsets.UTF_8));
final byte[] digest = md5.digest(export.getKeyAsString().getBytes(StandardCharsets.UTF_8));
/* Now encode it as a string. */
final StringBuilder result = new StringBuilder();
for (byte element : digest) {
Expand Down
8 changes: 4 additions & 4 deletions ddk-target/ddk-antlr.target
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="DDK Target - ANTLR" sequenceNumber="4">
<target name="DDK Target - ANTLR" sequenceNumber="5">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://download.itemis.com/updates/releases/2.1.1/" />
Expand All @@ -9,12 +9,12 @@
<location type="Target" uri="file:${project_loc:/ddk-target}/ddk.target" />
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="http://download.eclipse.org/technology/swtbot/releases/4.0.0/" />
<repository location="https://download.eclipse.org/eclipse/updates/4.34/" />
<repository location="https://download.eclipse.org/releases/2022-12/202212071000/" />
<repository location="https://download.eclipse.org/modeling/m2t/xpand/updates/releases/R201605260315/" />
<repository location="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.20.0/" />
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.37.0/" />
<repository location="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.21.0/" />
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.38.0/" />
<repository location="https://download.eclipse.org/lsp4j/updates/releases/0.23.1/" />
<repository location="https://download.eclipse.org/tools/orbit/downloads/drops/R20200529191137/repository" />
<repository location="https://download.eclipse.org/tools/orbit/downloads/drops/R20220302172233/repository" />
</location>
</locations>
Expand Down
83 changes: 42 additions & 41 deletions ddk-target/ddk.target
Original file line number Diff line number Diff line change
@@ -1,56 +1,57 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="DDK Target" sequenceNumber="22">
<target name="DDK Target" sequenceNumber="23">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.swtbot.eclipse.feature.group" version="0.0.0"/>
<unit id="org.eclipse.swtbot.feature.group" version="0.0.0"/>
<unit id="org.eclipse.swtbot.ide.feature.group" version="0.0.0"/>
<unit id="org.eclipse.swtbot.eclipse.test.junit.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/technology/swtbot/releases/4.1.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.pde.source.feature.group" version="3.14.1400.v20221123-1800"/>
<unit id="org.eclipse.jdt.source.feature.group" version="3.18.1400.v20221123-1800"/>
<unit id="org.eclipse.platform.feature.group" version="4.26.0.v20221123-2302"/>
<unit id="org.eclipse.platform.source.feature.group" version="4.26.0.v20221123-2302"/>
<unit id="org.eclipse.emf.codegen.ecore.ui.feature.group" version="2.32.0.v20220925-1245"/>
<repository location="https://download.eclipse.org/releases/2022-12/202212071000/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xpand.sdk.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/m2t/xpand/updates/releases/R201605260315/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.emf.mwe2.runtime.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.emf.mwe2.launcher.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.20.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xtend.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.xtext.xtext.generator" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.37.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.swtbot.eclipse.feature.group" version="0.0.0"/>
<unit id="org.eclipse.swtbot.feature.group" version="0.0.0"/>
<unit id="org.eclipse.swtbot.ide.feature.group" version="0.0.0"/>
<unit id="org.eclipse.swtbot.eclipse.test.junit.feature.group" version="0.0.0"/>
<repository location="http://download.eclipse.org/technology/swtbot/releases/4.2.1/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.pde.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.jdt.source.feature.group" version="0.0.0"/>
<unit id="org.eclipse.platform.feature.group" version="0.0.0"/>
<unit id="org.eclipse.platform.source.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/eclipse/updates/4.34/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://download.eclipse.org/lsp4j/updates/releases/0.23.1/"/>
<unit id="org.eclipse.lsp4j.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.emf.sdk.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/emf/emf/builds/release/2.39.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://download.eclipse.org/tools/orbit/downloads/drops/R20200529191137/repository"/>
<unit id="org.hamcrest.core" version="1.3.0.v20180420-1519"/>
<unit id="org.hamcrest.core.source" version="1.3.0.v20180420-1519"/>
<unit id="org.hamcrest.library" version="1.3.0.v20180524-2246"/>
<unit id="org.hamcrest.library.source" version="1.3.0.v20180524-2246"/>
<unit id="org.mockito" version="2.23.0.v20200310-1642"/>
<unit id="org.mockito.source" version="2.23.0.v20200310-1642"/>
<unit id="org.slf4j.ext" version="1.7.30.v20200204-2150"/>
<unit id="org.eclipse.uml2.sdk.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/releases/2022-12/202212071000/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xpand.sdk.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/m2t/xpand/updates/releases/R201605260315/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.emf.mwe2.runtime.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.emf.mwe2.launcher.feature.group" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.21.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<unit id="org.eclipse.xtend.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.xtext.sdk.feature.group" version="0.0.0"/>
<unit id="org.eclipse.xtext.xtext.generator" version="0.0.0"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.38.0/"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://download.eclipse.org/lsp4j/updates/releases/0.23.1/"/>
<unit id="org.eclipse.lsp4j.sdk.feature.group" version="0.0.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://download.eclipse.org/tools/orbit/downloads/drops/R20220302172233/repository"/>
<unit id="org.apache.logging.log4j" version="2.17.1.v20220106-2156"/>
<unit id="org.apache.commons.lang" version="2.6.0.v201404270220"/>
<unit id="org.apache.log4j" version="1.2.15.v201012070815"/>
<unit id="org.slf4j.ext" version="1.7.30.v20200204-2150"/>
<unit id="org.mockito" version="2.23.0.v20200310-1642"/>
<unit id="org.hamcrest" version="2.2.0.v20210711-0821"/>
<unit id="org.junit" version="4.13.2.v20211018-1956"/>
</location>
</locations>
</target>