From 9dcf501395012b08b52750ead4c5e7d53432fc94 Mon Sep 17 00:00:00 2001 From: Olivier Prouvost Date: Wed, 7 Feb 2024 16:34:06 +0100 Subject: [PATCH] Update TP to 2023-12, tycho, jakarta... --- .../E4Tester_Core_Tests_macosx.launch | 26 ++++++--- .../META-INF/MANIFEST.MF | 2 +- .../core/E4TesterUITestApplication.java | 6 +- .../e4tester/core/stubs/E4TesterLogger.java | 7 +-- .../E4Tester_Components_Tests_linux.launch | 25 +-------- .../E4Tester_Components_Tests_macosx.launch | 24 +++++--- .../META-INF/MANIFEST.MF | 4 +- .../e4tester/test/components/Part1.java | 8 +-- .../e4tester/test/components/Part2.java | 8 +-- .../nattable/components/NattablePart1.java | 8 +-- .../E4Tester_ComponentApplication.launch | 41 ++++++++------ ...4Tester_ComponentApplication_macosx.launch | 38 +++++++------ .../META-INF/MANIFEST.MF | 6 +- .../e4tester/test/eap/parts/SamplePart.java | 5 +- .../com.opcoach.e4tester.tp.target | 56 ++++++++++--------- .../com.opcoach.e4tester.tp.tpd | 23 ++++++-- com.opcoach.e4tester.tp/pom.xml | 2 +- pom.xml | 4 +- 18 files changed, 156 insertions(+), 137 deletions(-) diff --git a/com.opcoach.e4tester.core.test/E4Tester_Core_Tests_macosx.launch b/com.opcoach.e4tester.core.test/E4Tester_Core_Tests_macosx.launch index dc19e2b..da18a35 100644 --- a/com.opcoach.e4tester.core.test/E4Tester_Core_Tests_macosx.launch +++ b/com.opcoach.e4tester.core.test/E4Tester_Core_Tests_macosx.launch @@ -30,8 +30,9 @@ + - + @@ -45,8 +46,8 @@ - - + + @@ -60,12 +61,14 @@ + + @@ -129,9 +132,10 @@ - + + @@ -142,12 +146,13 @@ + - + @@ -155,7 +160,13 @@ + + + + + + @@ -173,11 +184,8 @@ - - - - + diff --git a/com.opcoach.e4tester.core/META-INF/MANIFEST.MF b/com.opcoach.e4tester.core/META-INF/MANIFEST.MF index 11c69a6..2c68120 100644 --- a/com.opcoach.e4tester.core/META-INF/MANIFEST.MF +++ b/com.opcoach.e4tester.core/META-INF/MANIFEST.MF @@ -20,6 +20,6 @@ Require-Bundle: org.eclipse.e4.core.contexts, org.eclipse.jdt.junit5.runtime, org.eclipse.e4.ui.di Bundle-RequiredExecutionEnvironment: JavaSE-11 -Import-Package: javax.inject;version="1.0.0", +Import-Package: jakarta.inject;version="2.0.1", org.junit.jupiter.api Automatic-Module-Name: com.opcoach.e4tester.core diff --git a/com.opcoach.e4tester.core/src/com/opcoach/e4tester/core/E4TesterUITestApplication.java b/com.opcoach.e4tester.core/src/com/opcoach/e4tester/core/E4TesterUITestApplication.java index 32b2b22..49711cd 100644 --- a/com.opcoach.e4tester.core/src/com/opcoach/e4tester/core/E4TesterUITestApplication.java +++ b/com.opcoach.e4tester.core/src/com/opcoach/e4tester/core/E4TesterUITestApplication.java @@ -1,15 +1,11 @@ package com.opcoach.e4tester.core; -import org.eclipse.equinox.app.IApplication; -import org.eclipse.equinox.app.IApplicationContext; -import org.eclipse.pde.internal.junit.runtime.PDEJUnitRuntimePlugin; -import org.eclipse.pde.internal.junit.runtime.PlatformUITestHarness; import org.eclipse.pde.internal.junit.runtime.UITestApplication; public class E4TesterUITestApplication extends UITestApplication { - + @Override protected Object runApp(IApplication app, IApplicationContext context) throws Exception { // Get the testable object from the service diff --git a/com.opcoach.e4tester.core/src/com/opcoach/e4tester/core/stubs/E4TesterLogger.java b/com.opcoach.e4tester.core/src/com/opcoach/e4tester/core/stubs/E4TesterLogger.java index 4399071..680eec6 100644 --- a/com.opcoach.e4tester.core/src/com/opcoach/e4tester/core/stubs/E4TesterLogger.java +++ b/com.opcoach.e4tester.core/src/com/opcoach/e4tester/core/stubs/E4TesterLogger.java @@ -2,15 +2,11 @@ import java.util.ArrayList; -import javax.inject.Inject; -import javax.inject.Named; - import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.e4.core.di.annotations.Optional; import org.eclipse.e4.core.services.log.Logger; -import org.eclipse.e4.ui.internal.workbench.Activator; import org.eclipse.e4.ui.internal.workbench.Policy; import org.eclipse.e4.ui.internal.workbench.WorkbenchLogger; import org.eclipse.osgi.framework.log.FrameworkLog; @@ -18,6 +14,9 @@ import org.eclipse.osgi.service.debug.DebugOptions; import org.eclipse.osgi.service.debug.DebugTrace; +import jakarta.inject.Inject; +import jakarta.inject.Named; + /** * Logger class duplicate from workbenchlogger diff --git a/com.opcoach.e4tester.test.components.test/E4Tester_Components_Tests_linux.launch b/com.opcoach.e4tester.test.components.test/E4Tester_Components_Tests_linux.launch index 8a87ebe..738df79 100644 --- a/com.opcoach.e4tester.test.components.test/E4Tester_Components_Tests_linux.launch +++ b/com.opcoach.e4tester.test.components.test/E4Tester_Components_Tests_linux.launch @@ -27,6 +27,8 @@ + + @@ -39,7 +41,6 @@ - @@ -117,34 +118,12 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/com.opcoach.e4tester.test.components.test/E4Tester_Components_Tests_macosx.launch b/com.opcoach.e4tester.test.components.test/E4Tester_Components_Tests_macosx.launch index d84d07e..75afc4a 100644 --- a/com.opcoach.e4tester.test.components.test/E4Tester_Components_Tests_macosx.launch +++ b/com.opcoach.e4tester.test.components.test/E4Tester_Components_Tests_macosx.launch @@ -30,6 +30,7 @@ + @@ -44,8 +45,8 @@ - - + + @@ -59,12 +60,14 @@ + + @@ -128,9 +131,10 @@ - + + @@ -141,12 +145,13 @@ + - + @@ -154,7 +159,13 @@ + + + + + + @@ -172,11 +183,8 @@ - - - - + diff --git a/com.opcoach.e4tester.test.components/META-INF/MANIFEST.MF b/com.opcoach.e4tester.test.components/META-INF/MANIFEST.MF index 9bc4f58..3c009ed 100644 --- a/com.opcoach.e4tester.test.components/META-INF/MANIFEST.MF +++ b/com.opcoach.e4tester.test.components/META-INF/MANIFEST.MF @@ -21,7 +21,7 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="3.13.0", org.eclipse.e4.ui.css.core;bundle-version="0.12.900" Export-Package: com.opcoach.e4tester.test.components, com.opcoach.e4tester.test.nattable.components -Import-Package: javax.annotation;version="1.2.0", - javax.inject;version="1.0.0" +Import-Package: jakarta.annotation, + jakarta.inject Bundle-ClassPath: ., lib/org.eclipse.nebula.widgets.nattable.dataset_2.0.0.201910081900.jar diff --git a/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/components/Part1.java b/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/components/Part1.java index 1bfebdc..260cdaa 100644 --- a/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/components/Part1.java +++ b/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/components/Part1.java @@ -1,10 +1,6 @@ package com.opcoach.e4tester.test.components; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.inject.Inject; - import org.eclipse.e4.core.di.annotations.Optional; import org.eclipse.e4.ui.di.UIEventTopic; import org.eclipse.e4.ui.model.application.ui.basic.MPart; @@ -21,6 +17,10 @@ import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.inject.Inject; + /** Create a sample part with label and treeviewer */ public class Part1 { diff --git a/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/components/Part2.java b/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/components/Part2.java index 7f19fe1..c380044 100644 --- a/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/components/Part2.java +++ b/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/components/Part2.java @@ -1,16 +1,16 @@ package com.opcoach.e4tester.test.components; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.inject.Named; - import org.eclipse.e4.core.di.annotations.Optional; import org.eclipse.e4.ui.services.IServiceConstants; import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.inject.Named; + /** * Create a sample part with a label updated when selection in tree of Part 1 * changes diff --git a/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/nattable/components/NattablePart1.java b/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/nattable/components/NattablePart1.java index a79abba..7cc6504 100644 --- a/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/nattable/components/NattablePart1.java +++ b/com.opcoach.e4tester.test.components/src/com/opcoach/e4tester/test/nattable/components/NattablePart1.java @@ -4,10 +4,6 @@ import java.util.List; import java.util.Map; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.inject.Named; - import org.eclipse.e4.core.di.annotations.Optional; import org.eclipse.e4.ui.services.IServiceConstants; import org.eclipse.e4.ui.workbench.modeling.ESelectionService; @@ -45,6 +41,10 @@ import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Text; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.inject.Named; + /** * NatTable Part * @author root diff --git a/com.opcoach.e4tester.test.eap/E4Tester_ComponentApplication.launch b/com.opcoach.e4tester.test.eap/E4Tester_ComponentApplication.launch index c2ec6c1..68692bb 100644 --- a/com.opcoach.e4tester.test.eap/E4Tester_ComponentApplication.launch +++ b/com.opcoach.e4tester.test.eap/E4Tester_ComponentApplication.launch @@ -20,20 +20,25 @@ + - + + + + + - - + + @@ -47,12 +52,14 @@ + + @@ -64,8 +71,6 @@ - - @@ -91,8 +96,6 @@ - - @@ -109,12 +112,9 @@ - - - @@ -147,14 +147,14 @@ - - - + + + @@ -166,6 +166,7 @@ + @@ -173,7 +174,7 @@ - + @@ -185,7 +186,13 @@ + + + + + + @@ -195,6 +202,7 @@ + @@ -205,12 +213,9 @@ - - - - + diff --git a/com.opcoach.e4tester.test.eap/E4Tester_ComponentApplication_macosx.launch b/com.opcoach.e4tester.test.eap/E4Tester_ComponentApplication_macosx.launch index 3b7b90d..ab97f15 100644 --- a/com.opcoach.e4tester.test.eap/E4Tester_ComponentApplication_macosx.launch +++ b/com.opcoach.e4tester.test.eap/E4Tester_ComponentApplication_macosx.launch @@ -29,12 +29,16 @@ + + + + - - + + @@ -48,12 +52,14 @@ + + @@ -65,8 +71,6 @@ - - @@ -92,8 +96,6 @@ - - @@ -110,12 +112,9 @@ - - - @@ -148,14 +147,14 @@ - - - + + + @@ -168,6 +167,7 @@ + @@ -175,7 +175,7 @@ - + @@ -186,7 +186,13 @@ + + + + + + @@ -196,6 +202,7 @@ + @@ -206,12 +213,9 @@ - - - - + diff --git a/com.opcoach.e4tester.test.eap/META-INF/MANIFEST.MF b/com.opcoach.e4tester.test.eap/META-INF/MANIFEST.MF index 25fd3e2..f334401 100644 --- a/com.opcoach.e4tester.test.eap/META-INF/MANIFEST.MF +++ b/com.opcoach.e4tester.test.eap/META-INF/MANIFEST.MF @@ -4,8 +4,7 @@ Bundle-Name: Eap Bundle-SymbolicName: com.opcoach.e4tester.test.eap;singleton:=true Bundle-Version: 1.0.0.qualifier Bundle-Vendor: OPCOACH -Require-Bundle: javax.inject;bundle-version="0.0.0", - org.eclipse.core.runtime;bundle-version="0.0.0", +Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0", org.eclipse.swt;bundle-version="0.0.0", org.eclipse.e4.ui.model.workbench;bundle-version="0.0.0", org.eclipse.jface;bundle-version="0.0.0", @@ -17,5 +16,6 @@ Require-Bundle: javax.inject;bundle-version="0.0.0", com.opcoach.e4tester.test.components;bundle-version="1.0.0", org.eclipse.e4.ui.workbench.renderers.swt Bundle-RequiredExecutionEnvironment: JavaSE-11 -Import-Package: javax.annotation;version="0.0.0" +Import-Package: jakarta.annotation;version="2.1.1", + jakarta.inject;version="2.0.1" Automatic-Module-Name: com.opcoach.e4tester.core.test.eap diff --git a/com.opcoach.e4tester.test.eap/src/com/opcoach/e4tester/test/eap/parts/SamplePart.java b/com.opcoach.e4tester.test.eap/src/com/opcoach/e4tester/test/eap/parts/SamplePart.java index a1b546e..429c5d1 100644 --- a/com.opcoach.e4tester.test.eap/src/com/opcoach/e4tester/test/eap/parts/SamplePart.java +++ b/com.opcoach.e4tester.test.eap/src/com/opcoach/e4tester/test/eap/parts/SamplePart.java @@ -2,8 +2,6 @@ import java.util.Arrays; import java.util.List; -import javax.annotation.PostConstruct; -import javax.inject.Inject; import org.eclipse.e4.ui.di.Focus; import org.eclipse.e4.ui.di.Persist; @@ -16,6 +14,9 @@ import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Text; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; + public class SamplePart { private TableViewer tableViewer; diff --git a/com.opcoach.e4tester.tp/com.opcoach.e4tester.tp.target b/com.opcoach.e4tester.tp/com.opcoach.e4tester.tp.target index 7f5eafc..12deb1f 100644 --- a/com.opcoach.e4tester.tp/com.opcoach.e4tester.tp.target +++ b/com.opcoach.e4tester.tp/com.opcoach.e4tester.tp.target @@ -1,35 +1,41 @@ - + - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/com.opcoach.e4tester.tp/com.opcoach.e4tester.tp.tpd b/com.opcoach.e4tester.tp/com.opcoach.e4tester.tp.tpd index 72851e7..fc2901a 100644 --- a/com.opcoach.e4tester.tp/com.opcoach.e4tester.tp.tpd +++ b/com.opcoach.e4tester.tp/com.opcoach.e4tester.tp.tpd @@ -1,6 +1,10 @@ -target "E4 Tester 2022-12" with source requirements +target "E4 Tester 2023-12" with source requirements -location "https://download.eclipse.org/releases/2023-06" { + + + + +location "https://download.eclipse.org/releases/2023-12" { // org.eclipse.rcp.feature.group org.eclipse.platform.feature.group org.eclipse.e4.rcp.feature.group @@ -20,14 +24,22 @@ location "https://download.eclipse.org/releases/2023-06" { // Delta pack org.eclipse.equinox.sdk.feature.group + jakarta.inject.jakarta.inject-api + jakarta.annotation-api - javax.annotation - + // org.eclipse.orbit.xml-apis-ext + +} + +// Nebula is not totally updated with its dependencies... Must still get sac (legacy) from 2023-09 + +location "https://download.eclipse.org/releases/2023-09" { + org.w3c.css.sac } // Add nebula nattable -location "https://download.eclipse.org/nattable/releases/2.2.0/repository" { +location "https://download.eclipse.org/nattable/releases/2.2.1/repository" { org.eclipse.nebula.widgets.nattable.core.feature.feature.group org.eclipse.nebula.widgets.nattable.core.source.feature.feature.group @@ -39,6 +51,7 @@ location "https://download.eclipse.org/nattable/releases/2.2.0/repository" { org.eclipse.nebula.widgets.nattable.extension.nebula.source.feature.feature.group org.eclipse.nebula.widgets.nattable.extension.poi.feature.feature.group org.eclipse.nebula.widgets.nattable.extension.poi.source.feature.feature.group + org.eclipse.nebula.widgets.nattable.extension.e4.feature.feature.jar } diff --git a/com.opcoach.e4tester.tp/pom.xml b/com.opcoach.e4tester.tp/pom.xml index 13c39d0..8a6f239 100644 --- a/com.opcoach.e4tester.tp/pom.xml +++ b/com.opcoach.e4tester.tp/pom.xml @@ -10,7 +10,7 @@ com.opcoach.e4tester.tp - 4.28.0 + 4.30.0 eclipse-target-definition \ No newline at end of file diff --git a/pom.xml b/pom.xml index 86bd441..a8d36c9 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ - 4.0.1 + 4.0.5 @@ -81,7 +81,7 @@ com.opcoach.e4tester com.opcoach.e4tester.tp - 4.28.0 + 4.30.0