Skip to content

Commit

Permalink
Update TP to 2023-12, tycho, jakarta...
Browse files Browse the repository at this point in the history
  • Loading branch information
opcoach committed Feb 7, 2024
1 parent d87e795 commit 9dcf501
Show file tree
Hide file tree
Showing 18 changed files with 156 additions and 137 deletions.
26 changes: 17 additions & 9 deletions com.opcoach.e4tester.core.test/E4Tester_Core_Tests_macosx.launch
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit5"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog -clean"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="com.opcoach.e4tester.core.test"/>
Expand All @@ -45,8 +46,8 @@
<setEntry value="com.ibm.icu@default:default"/>
<setEntry value="com.sun.jna.platform@default:default"/>
<setEntry value="com.sun.jna@default:default"/>
<setEntry value="jakarta.servlet-api@default:default"/>
<setEntry value="javax.annotation@default:default"/>
<setEntry value="jakarta.annotation-api@default:default"/>
<setEntry value="jakarta.inject.jakarta.inject-api@default:default"/>
<setEntry value="javax.inject@default:default"/>
<setEntry value="junit-jupiter-api@default:default"/>
<setEntry value="junit-jupiter-engine@default:default"/>
Expand All @@ -60,12 +61,14 @@
<setEntry value="junit-platform-suite-commons@default:default"/>
<setEntry value="junit-platform-suite-engine@default:default"/>
<setEntry value="junit-vintage-engine@default:default"/>
<setEntry value="org.apache.aries.spifly.dynamic.bundle@default:default"/>
<setEntry value="org.apache.batik.constants@default:default"/>
<setEntry value="org.apache.batik.css@default:default"/>
<setEntry value="org.apache.batik.i18n@default:default"/>
<setEntry value="org.apache.batik.util@default:default"/>
<setEntry value="org.apache.commons.codec@default:default"/>
<setEntry value="org.apache.commons.collections4@default:default"/>
<setEntry value="org.apache.commons.commons-codec@default:default"/>
<setEntry value="org.apache.commons.commons-io@default:default"/>
<setEntry value="org.apache.commons.jxpath@default:default"/>
<setEntry value="org.apache.commons.logging@default:default"/>
Expand Down Expand Up @@ -129,9 +132,10 @@
<setEntry value="org.eclipse.equinox.transforms.hook@default:false"/>
<setEntry value="org.eclipse.equinox.weaving.hook@default:false"/>
<setEntry value="org.eclipse.help@default:default"/>
<setEntry value="org.eclipse.jdt.annotation*2.2.700.v20220826-1026@default:default"/>
<setEntry value="org.eclipse.jdt.junit.runtime@default:default"/>
<setEntry value="org.eclipse.jdt.junit5.runtime@default:default"/>
<setEntry value="org.eclipse.jetty.logging@default:default"/>
<setEntry value="org.eclipse.jetty.servlet-api@default:default"/>
<setEntry value="org.eclipse.jface.databinding@default:default"/>
<setEntry value="org.eclipse.jface@default:default"/>
<setEntry value="org.eclipse.nebula.cwt@default:default"/>
Expand All @@ -142,20 +146,27 @@
<setEntry value="org.eclipse.nebula.widgets.nattable.extension.nebula@default:default"/>
<setEntry value="org.eclipse.nebula.widgets.nattable.extension.poi@default:default"/>
<setEntry value="org.eclipse.nebula.widgets.richtext@default:default"/>
<setEntry value="org.eclipse.orbit.xml-apis-ext@default:default"/>
<setEntry value="org.eclipse.osgi.compatibility.state@default:false"/>
<setEntry value="org.eclipse.osgi.services@default:default"/>
<setEntry value="org.eclipse.osgi.util@default:default"/>
<setEntry value="org.eclipse.osgi@-1:true"/>
<setEntry value="org.eclipse.pde.junit.runtime@default:default"/>
<setEntry value="org.eclipse.swt.cocoa.macosx.x86_64@default:false"/>
<setEntry value="org.eclipse.swt.cocoa.macosx.aarch64@default:default"/>
<setEntry value="org.eclipse.swt@default:default"/>
<setEntry value="org.eclipse.team.core@default:default"/>
<setEntry value="org.eclipse.ui.cocoa@default:false"/>
<setEntry value="org.eclipse.ui.workbench@default:default"/>
<setEntry value="org.eclipse.ui@default:default"/>
<setEntry value="org.eclipse.urischeme@default:default"/>
<setEntry value="org.hamcrest.core@default:default"/>
<setEntry value="org.hamcrest@default:default"/>
<setEntry value="org.junit@default:default"/>
<setEntry value="org.objectweb.asm.commons@default:default"/>
<setEntry value="org.objectweb.asm.tree.analysis@default:default"/>
<setEntry value="org.objectweb.asm.tree@default:default"/>
<setEntry value="org.objectweb.asm.util@default:default"/>
<setEntry value="org.objectweb.asm@default:default"/>
<setEntry value="org.opentest4j@default:default"/>
<setEntry value="org.osgi.service.cm@default:default"/>
<setEntry value="org.osgi.service.component.annotations@default:default"/>
Expand All @@ -173,11 +184,8 @@
<setEntry value="org.osgi.util.position@default:default"/>
<setEntry value="org.osgi.util.promise@default:default"/>
<setEntry value="org.osgi.util.xml@default:default"/>
<setEntry value="org.slf4j.api@default:default"/>
<setEntry value="org.w3c.css.sac@default:default"/>
<setEntry value="org.w3c.dom.events@default:default"/>
<setEntry value="org.w3c.dom.smil@default:default"/>
<setEntry value="org.w3c.dom.svg@default:default"/>
<setEntry value="slf4j.api@default:default"/>
</setAttribute>
<setAttribute key="selected_workspace_bundles">
<setEntry value="com.opcoach.e4tester.core.test@default:false"/>
Expand Down
2 changes: 1 addition & 1 deletion com.opcoach.e4tester.core/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@

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;
import org.eclipse.osgi.framework.log.FrameworkLogEntry;
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit5"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
Expand All @@ -39,7 +41,6 @@
<booleanAttribute key="run_in_ui_thread" value="true"/>
<setAttribute key="selected_target_bundles">
<setEntry value="com.ibm.icu@default:default"/>
<setEntry value="javax.annotation@default:default"/>
<setEntry value="javax.inject@default:default"/>
<setEntry value="org.apache.batik.constants@default:default"/>
<setEntry value="org.apache.batik.css@default:default"/>
Expand Down Expand Up @@ -117,34 +118,12 @@
<setEntry value="org.junit@default:default"/>
<setEntry value="org.opentest4j@default:default"/>
<setEntry value="org.w3c.css.sac@default:default"/>
<setEntry value="org.w3c.dom.events@default:default"/>
<setEntry value="org.w3c.dom.smil@default:default"/>
<setEntry value="org.w3c.dom.svg@default:default"/>
</setAttribute>
<setAttribute key="selected_workspace_bundles">
<setEntry value="com.opcoach.e34tools@default:default"/>
<setEntry value="com.opcoach.e4.preference.example.e3@default:false"/>
<setEntry value="com.opcoach.e4.preferences.example@default:default"/>
<setEntry value="com.opcoach.e4.preferences.mainmenu@default:default"/>
<setEntry value="com.opcoach.e4.preferences.provider.example@default:default"/>
<setEntry value="com.opcoach.e4.preferences@default:default"/>
<setEntry value="com.opcoach.e4tester.core.test@default:false"/>
<setEntry value="com.opcoach.e4tester.core@default:default"/>
<setEntry value="com.opcoach.e4tester.test.components.test@default:false"/>
<setEntry value="com.opcoach.e4tester.test.components@default:default"/>
<setEntry value="com.opcoach.generator.data@default:default"/>
<setEntry value="com.opcoach.generator.model.test@default:false"/>
<setEntry value="com.opcoach.generator.model@default:default"/>
<setEntry value="com.opcoach.genmodeladdon.core.test@default:false"/>
<setEntry value="com.opcoach.genmodeladdon.core@default:default"/>
<setEntry value="com.opcoach.genmodeladdon.sample@default:default"/>
<setEntry value="com.opcoach.genmodeladdon.ui@default:default"/>
<setEntry value="com.opcoach.project.test@default:default"/>
<setEntry value="org.lcx.robotframework.eclipselibrary@default:default"/>
<setEntry value="org.lcx.robotframework.eclipselibrary_interface@default:default"/>
<setEntry value="org.lcx.robotframework.rcp.part1@default:default"/>
<setEntry value="org.lcx.robotframework.swtbotplugin@default:default"/>
<setEntry value="robotframework-eclipselibrary@default:default"/>
</setAttribute>
<booleanAttribute key="show_selected_only" value="false"/>
<stringAttribute key="testApplication" value="com.opcoach.e4tester.core.application"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit5"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-9"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value=""/>
Expand All @@ -44,8 +45,8 @@
<setEntry value="com.ibm.icu@default:default"/>
<setEntry value="com.sun.jna.platform@default:default"/>
<setEntry value="com.sun.jna@default:default"/>
<setEntry value="jakarta.servlet-api@default:default"/>
<setEntry value="javax.annotation@default:default"/>
<setEntry value="jakarta.annotation-api@default:default"/>
<setEntry value="jakarta.inject.jakarta.inject-api@default:default"/>
<setEntry value="javax.inject@default:default"/>
<setEntry value="junit-jupiter-api@default:default"/>
<setEntry value="junit-jupiter-engine@default:default"/>
Expand All @@ -59,12 +60,14 @@
<setEntry value="junit-platform-suite-commons@default:default"/>
<setEntry value="junit-platform-suite-engine@default:default"/>
<setEntry value="junit-vintage-engine@default:default"/>
<setEntry value="org.apache.aries.spifly.dynamic.bundle@default:default"/>
<setEntry value="org.apache.batik.constants@default:default"/>
<setEntry value="org.apache.batik.css@default:default"/>
<setEntry value="org.apache.batik.i18n@default:default"/>
<setEntry value="org.apache.batik.util@default:default"/>
<setEntry value="org.apache.commons.codec@default:default"/>
<setEntry value="org.apache.commons.collections4@default:default"/>
<setEntry value="org.apache.commons.commons-codec@default:default"/>
<setEntry value="org.apache.commons.commons-io@default:default"/>
<setEntry value="org.apache.commons.jxpath@default:default"/>
<setEntry value="org.apache.commons.logging@default:default"/>
Expand Down Expand Up @@ -128,9 +131,10 @@
<setEntry value="org.eclipse.equinox.transforms.hook@default:false"/>
<setEntry value="org.eclipse.equinox.weaving.hook@default:false"/>
<setEntry value="org.eclipse.help@default:default"/>
<setEntry value="org.eclipse.jdt.annotation*2.2.700.v20220826-1026@default:default"/>
<setEntry value="org.eclipse.jdt.junit.runtime@default:default"/>
<setEntry value="org.eclipse.jdt.junit5.runtime@default:default"/>
<setEntry value="org.eclipse.jetty.logging@default:default"/>
<setEntry value="org.eclipse.jetty.servlet-api@default:default"/>
<setEntry value="org.eclipse.jface.databinding@default:default"/>
<setEntry value="org.eclipse.jface@default:default"/>
<setEntry value="org.eclipse.nebula.cwt@default:default"/>
Expand All @@ -141,20 +145,27 @@
<setEntry value="org.eclipse.nebula.widgets.nattable.extension.nebula@default:default"/>
<setEntry value="org.eclipse.nebula.widgets.nattable.extension.poi@default:default"/>
<setEntry value="org.eclipse.nebula.widgets.richtext@default:default"/>
<setEntry value="org.eclipse.orbit.xml-apis-ext@default:default"/>
<setEntry value="org.eclipse.osgi.compatibility.state@default:false"/>
<setEntry value="org.eclipse.osgi.services@default:default"/>
<setEntry value="org.eclipse.osgi.util@default:default"/>
<setEntry value="org.eclipse.osgi@-1:true"/>
<setEntry value="org.eclipse.pde.junit.runtime@default:default"/>
<setEntry value="org.eclipse.swt.cocoa.macosx.x86_64@default:false"/>
<setEntry value="org.eclipse.swt.cocoa.macosx.aarch64@default:false"/>
<setEntry value="org.eclipse.swt@default:default"/>
<setEntry value="org.eclipse.team.core@default:default"/>
<setEntry value="org.eclipse.ui.cocoa@default:false"/>
<setEntry value="org.eclipse.ui.workbench@default:default"/>
<setEntry value="org.eclipse.ui@default:default"/>
<setEntry value="org.eclipse.urischeme@default:default"/>
<setEntry value="org.hamcrest.core@default:default"/>
<setEntry value="org.hamcrest@default:default"/>
<setEntry value="org.junit@default:default"/>
<setEntry value="org.objectweb.asm.commons@default:default"/>
<setEntry value="org.objectweb.asm.tree.analysis@default:default"/>
<setEntry value="org.objectweb.asm.tree@default:default"/>
<setEntry value="org.objectweb.asm.util@default:default"/>
<setEntry value="org.objectweb.asm@default:default"/>
<setEntry value="org.opentest4j@default:default"/>
<setEntry value="org.osgi.service.cm@default:default"/>
<setEntry value="org.osgi.service.component.annotations@default:default"/>
Expand All @@ -172,11 +183,8 @@
<setEntry value="org.osgi.util.position@default:default"/>
<setEntry value="org.osgi.util.promise@default:default"/>
<setEntry value="org.osgi.util.xml@default:default"/>
<setEntry value="org.slf4j.api@default:default"/>
<setEntry value="org.w3c.css.sac@default:default"/>
<setEntry value="org.w3c.dom.events@default:default"/>
<setEntry value="org.w3c.dom.smil@default:default"/>
<setEntry value="org.w3c.dom.svg@default:default"/>
<setEntry value="slf4j.api@default:default"/>
</setAttribute>
<setAttribute key="selected_workspace_bundles">
<setEntry value="com.opcoach.e4tester.core.test@default:false"/>
Expand Down
4 changes: 2 additions & 2 deletions com.opcoach.e4tester.test.components/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 {

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down
Loading

0 comments on commit 9dcf501

Please sign in to comment.