Skip to content

Commit

Permalink
TT
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjoy committed Dec 15, 2023
1 parent 01c0913 commit 9ac1c8c
Show file tree
Hide file tree
Showing 34 changed files with 68 additions and 87 deletions.
2 changes: 1 addition & 1 deletion cnf/ext/runtime.bnd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ bundles.console: \
org.eclipse.equinox.console

bundles.deps: \
javax.annotation,\
jakarta.annotation-api,\
jakarta.inject.jakarta.inject-api,\
javax.xml.jre,\
org.apache.commons.jxpath,\
Expand Down
8 changes: 6 additions & 2 deletions cnf/maven/runtime.maven
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ org.eclipse.platform:org.eclipse.e4.core.di.extensions.supplier:0.17.300
org.eclipse.platform:org.eclipse.e4.core.services:2.4.200
org.eclipse.platform:org.eclipse.e4.emf.xpath:0.4.100
org.eclipse.platform:org.eclipse.e4.ui.di:1.5.200
org.eclipse.platform:org.eclipse.e4.ui.model.workbench:2.4.100
org.eclipse.platform:org.eclipse.e4.ui.services:1.6.200
org.eclipse.platform:org.eclipse.e4.ui.workbench:1.15.200

# The following cannot be used as it uses jakarta.* annotations which cannot be parsed by e(fx)clipse now
# org.eclipse.platform:org.eclipse.e4.ui.model.workbench:2.4.100


# Eclipse Platform

org.eclipse.platform:org.eclipse.core.commands:3.11.200
Expand All @@ -91,4 +94,5 @@ org.apache.sling:org.apache.sling.commons.logservice:1.1.0

# Jakarta

jakarta.inject:jakarta.inject-api:2.0.1
jakarta.inject:jakarta.inject-api:2.0.1
jakarta.annotation:jakarta.annotation-api:2.1.1
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
import java.time.Duration;
import java.util.concurrent.ScheduledFuture;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.di.extensions.EventTopic;
import org.eclipse.e4.core.services.events.IEventBroker;
Expand All @@ -37,6 +34,8 @@
import com.osgifx.console.executor.Executor;
import com.osgifx.console.supervisor.Supervisor;

import jakarta.annotation.PostConstruct;
import jakarta.annotation.PreDestroy;
import jakarta.inject.Inject;

public final class AgentPingAddon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@
import java.util.Map;
import java.util.Set;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.fx.core.log.FluentLogger;
import org.eclipse.fx.core.log.Log;

import com.google.common.collect.Maps;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;

public final class ModifiablePropertyAddon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
import java.util.List;
import java.util.stream.IntStream;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.fx.core.log.FluentLogger;
Expand All @@ -34,6 +32,7 @@
import com.osgifx.console.application.dialog.MqttConnectionSettingDTO;
import com.osgifx.console.application.preference.ConnectionsProvider;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
import java.util.List;
import java.util.stream.IntStream;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.fx.core.log.FluentLogger;
Expand All @@ -34,6 +32,7 @@
import com.osgifx.console.application.dialog.SocketConnectionSettingDTO;
import com.osgifx.console.application.preference.ConnectionsProvider;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;

Expand Down
2 changes: 1 addition & 1 deletion com.osgifx.console.bnd.dp.packager/bnd.bnd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
Import-Package : \
com.google.errorprone.annotations;'resolution:'=optional,\
com.google.errorprone.annotations.concurrent;'resolution:'=optional,\
javax.annotation;'resolution:'=optional,\
jakarta.annotation;'resolution:'=optional,\
org.checkerframework.checker.nullness.qual;'resolution:'=optional,\
*
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

import java.util.Map;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.di.extensions.OSGiBundle;
import org.eclipse.e4.ui.di.Focus;
Expand All @@ -39,6 +37,7 @@
import com.osgifx.console.util.agent.ExtensionHelper;
import com.osgifx.console.util.fx.Fx;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import javafx.concurrent.Task;
Expand Down
47 changes: 26 additions & 21 deletions com.osgifx.console.product/osgifx.bndrun
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ startlevels : com.osgifx.console.agent;startlevel=1,\
-runproperties.name : launch.name=OSGi.fx
-runproperties.logging : org.apache.sling.commons.log.file=${storage.directory}/logs/fx.log,\
org.apache.sling.commons.log.pattern="{0,date,yyyy-MM-dd HH:mm:ss.SSSXXX} {4} [{2}] [{3}] {5}"
# Annotation classes from the 'javax.inject' or 'javax.annotation' package found in the binaries as they
# are used in e(fx)clipse internally. OSGi.fx doesn't use javax.* at all though.
-runproperties.javax.warning : eclipse.e4.inject.javax.warning=false

# the following configuration is used to ensure that MQTT client will not be automatically enabled
-runproperties.mqtt.init.config : configurator.initial='{\
Expand Down Expand Up @@ -129,6 +132,8 @@ install.order : \
com.osgifx.console.wrapper.toolboxfx;version=snapshot;startlevel=10,\
controlsfx;version='[11.1.3,11.1.4)';startlevel=10,\
in.bytehue.messaging.mqtt5.provider;version='[1.0.0,1.0.1)';startlevel=10,\
jakarta.annotation-api;version='[2.1.1,2.1.2)';startlevel=10,\
jakarta.inject.jakarta.inject-api;version='[2.0.1,2.0.2)';startlevel=10,\
jakarta.xml.bind;version='[2.3.3,2.3.4)';startlevel=10,\
javax.activation;version='[1.2.2,1.2.3)';startlevel=10,\
javax.annotation;version='[1.3.5,1.3.6)';startlevel=10,\
Expand All @@ -153,35 +158,35 @@ install.order : \
org.apache.felix.scr;version='[2.2.6,2.2.7)';startlevel=10,\
org.apache.sling.commons.log;version='[5.4.2,5.4.3)';startlevel=10,\
org.apache.sling.commons.logservice;version='[1.1.0,1.1.1)';startlevel=10,\
org.eclipse.core.commands;version='[3.11.100,3.11.101)';startlevel=10,\
org.eclipse.core.contenttype;version='[3.9.100,3.9.101)';startlevel=10,\
org.eclipse.core.commands;version='[3.11.200,3.11.201)';startlevel=10,\
org.eclipse.core.contenttype;version='[3.9.200,3.9.201)';startlevel=10,\
org.eclipse.core.databinding.observable;version='[1.13.100,1.13.101)';startlevel=10,\
org.eclipse.core.databinding.property;version='[1.10.100,1.10.101)';startlevel=10,\
org.eclipse.core.expressions;version='[3.8.200,3.8.201)';startlevel=10,\
org.eclipse.core.jobs;version='[3.15.0,3.15.1)';startlevel=10,\
org.eclipse.core.runtime;version='[3.29.0,3.29.1)';startlevel=10,\
org.eclipse.e4.core.commands;version='[1.1.100,1.1.101)';startlevel=10,\
org.eclipse.e4.core.contexts;version='[1.12.100,1.12.101)';startlevel=10,\
org.eclipse.e4.core.di;version='[1.9.100,1.9.101)';startlevel=10,\
org.eclipse.e4.core.di.annotations;version='[1.8.100,1.8.101)';startlevel=10,\
org.eclipse.e4.core.di.extensions;version='[0.18.0,0.18.1)';startlevel=10,\
org.eclipse.e4.core.di.extensions.supplier;version='[0.17.100,0.17.101)';startlevel=10,\
org.eclipse.e4.core.services;version='[2.4.100,2.4.101)';startlevel=10,\
org.eclipse.core.jobs;version='[3.15.100,3.15.101)';startlevel=10,\
org.eclipse.core.runtime;version='[3.30.0,3.30.1)';startlevel=10,\
org.eclipse.e4.core.commands;version='[1.1.200,1.1.201)';startlevel=10,\
org.eclipse.e4.core.contexts;version='[1.12.400,1.12.401)';startlevel=10,\
org.eclipse.e4.core.di;version='[1.9.200,1.9.201)';startlevel=10,\
org.eclipse.e4.core.di.annotations;version='[1.8.200,1.8.201)';startlevel=10,\
org.eclipse.e4.core.di.extensions;version='[0.18.100,0.18.101)';startlevel=10,\
org.eclipse.e4.core.di.extensions.supplier;version='[0.17.300,0.17.301)';startlevel=10,\
org.eclipse.e4.core.services;version='[2.4.200,2.4.201)';startlevel=10,\
org.eclipse.e4.emf.xpath;version='[0.3.0,0.3.1)';startlevel=10,\
org.eclipse.e4.ui.di;version='[1.5.100,1.5.101)';startlevel=10,\
org.eclipse.e4.ui.di;version='[1.5.200,1.5.201)';startlevel=10,\
org.eclipse.e4.ui.model.workbench;version='[2.2.200,2.2.201)';startlevel=10,\
org.eclipse.e4.ui.services;version='[1.6.100,1.6.101)';startlevel=10,\
org.eclipse.e4.ui.workbench;version='[1.15.100,1.15.101)';startlevel=10,\
org.eclipse.e4.ui.services;version='[1.6.200,1.6.201)';startlevel=10,\
org.eclipse.e4.ui.workbench;version='[1.15.200,1.15.201)';startlevel=10,\
org.eclipse.emf.common;version='[2.26.0,2.26.1)';startlevel=10,\
org.eclipse.emf.ecore;version='[2.28.0,2.28.1)';startlevel=10,\
org.eclipse.emf.ecore.change;version='[2.14.0,2.14.1)';startlevel=10,\
org.eclipse.emf.ecore.xmi;version='[2.17.0,2.17.1)';startlevel=10,\
org.eclipse.equinox.app;version='[1.6.300,1.6.301)';startlevel=10,\
org.eclipse.equinox.common;version='[3.18.100,3.18.101)';startlevel=10,\
org.eclipse.equinox.console;version='[1.4.500,1.4.501)';startlevel=10,\
org.eclipse.equinox.event;version='[1.6.200,1.6.201)';startlevel=10,\
org.eclipse.equinox.preferences;version='[3.10.300,3.10.301)';startlevel=10,\
org.eclipse.equinox.registry;version='[3.11.300,3.11.301)';startlevel=10,\
org.eclipse.equinox.app;version='[1.6.400,1.6.401)';startlevel=10,\
org.eclipse.equinox.common;version='[3.18.200,3.18.201)';startlevel=10,\
org.eclipse.equinox.console;version='[1.4.600,1.4.601)';startlevel=10,\
org.eclipse.equinox.event;version='[1.6.300,1.6.301)';startlevel=10,\
org.eclipse.equinox.preferences;version='[3.10.400,3.10.401)';startlevel=10,\
org.eclipse.equinox.registry;version='[3.11.400,3.11.401)';startlevel=10,\
org.eclipse.fx.core;version='[3.9.0,3.9.1)';startlevel=10,\
org.eclipse.fx.core.databinding;version='[3.9.0,3.9.1)';startlevel=10,\
org.eclipse.fx.core.di;version='[3.9.0,3.9.1)';startlevel=10,\
Expand All @@ -205,7 +210,7 @@ install.order : \
org.eclipse.fx.ui.workbench.renderers.fx;version='[3.9.0,3.9.1)';startlevel=10,\
org.eclipse.fx.ui.workbench.services;version='[3.9.0,3.9.1)';startlevel=10,\
org.eclipse.jdt.annotation;version='[2.2.700,2.2.701)';startlevel=10,\
org.eclipse.osgi.services;version='[3.11.100,3.11.101)';startlevel=10,\
org.eclipse.osgi.services;version='[3.11.200,3.11.201)';startlevel=10,\
org.glassfish.jakarta.json;version='[2.0.1,2.0.2)';startlevel=10,\
org.osgi.service.cm;version='[1.6.1,1.6.2)';startlevel=10,\
org.osgi.service.component;version='[1.5.1,1.5.2)';startlevel=10,\
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package $basePackageName$;

import javax.inject.Inject;
import jakarta.inject.Inject;

import org.eclipse.fx.core.log.FluentLogger;
import org.eclipse.fx.core.log.Log;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import java.util.Map;

import javax.annotation.PostConstruct;
import javax.inject.Inject;
import javax.inject.Named;
import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;

import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.di.extensions.OSGiBundle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import static com.osgifx.console.supervisor.Supervisor.AGENT_DISCONNECTED_EVENT_TOPIC;
import static javafx.geometry.Orientation.VERTICAL;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.di.extensions.OSGiBundle;
import org.eclipse.e4.core.services.events.IEventBroker;
Expand All @@ -41,6 +39,7 @@
import com.osgifx.console.util.fx.Fx;
import com.osgifx.console.util.fx.FxDialog;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import javafx.concurrent.Task;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import static com.osgifx.console.supervisor.Supervisor.AGENT_DISCONNECTED_EVENT_TOPIC;
import static javafx.geometry.Orientation.VERTICAL;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.di.extensions.OSGiBundle;
import org.eclipse.e4.core.services.events.IEventBroker;
Expand All @@ -41,6 +39,7 @@
import com.osgifx.console.util.fx.Fx;
import com.osgifx.console.util.fx.FxDialog;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import javafx.concurrent.Task;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import static com.osgifx.console.supervisor.Supervisor.AGENT_DISCONNECTED_EVENT_TOPIC;
import static javafx.geometry.Orientation.VERTICAL;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.di.extensions.OSGiBundle;
import org.eclipse.e4.core.services.events.IEventBroker;
Expand All @@ -41,6 +39,7 @@
import com.osgifx.console.util.fx.Fx;
import com.osgifx.console.util.fx.FxDialog;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import javafx.concurrent.Task;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
import static com.osgifx.console.supervisor.Supervisor.AGENT_CONNECTED_EVENT_TOPIC;
import static com.osgifx.console.supervisor.Supervisor.AGENT_DISCONNECTED_EVENT_TOPIC;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.ui.di.UIEventTopic;
import org.eclipse.fx.core.log.FluentLogger;
Expand All @@ -36,6 +34,7 @@
import com.osgifx.console.ui.ConsoleStatusBar;
import com.osgifx.console.util.fx.Fx;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import javafx.concurrent.Task;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import static com.osgifx.console.supervisor.Supervisor.AGENT_CONNECTED_EVENT_TOPIC;
import static com.osgifx.console.supervisor.Supervisor.AGENT_DISCONNECTED_EVENT_TOPIC;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.ui.di.UIEventTopic;
import org.eclipse.fx.core.log.FluentLogger;
Expand All @@ -35,6 +33,7 @@
import com.osgifx.console.ui.ConsoleStatusBar;
import com.osgifx.console.util.fx.Fx;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import javafx.concurrent.Task;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import static com.osgifx.console.supervisor.Supervisor.AGENT_CONNECTED_EVENT_TOPIC;
import static com.osgifx.console.supervisor.Supervisor.AGENT_DISCONNECTED_EVENT_TOPIC;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.contexts.ContextInjectionFactory;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.di.annotations.Optional;
Expand All @@ -39,6 +37,7 @@
import com.osgifx.console.ui.events.dialog.SubscribedEventsDialog;
import com.osgifx.console.util.fx.Fx;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import javafx.concurrent.Task;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import static com.osgifx.console.supervisor.Supervisor.AGENT_CONNECTED_EVENT_TOPIC;
import static com.osgifx.console.supervisor.Supervisor.AGENT_DISCONNECTED_EVENT_TOPIC;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.di.extensions.OSGiBundle;
import org.eclipse.e4.ui.di.UIEventTopic;
Expand All @@ -34,6 +32,7 @@
import com.osgifx.console.ui.ConsoleStatusBar;
import com.osgifx.console.util.fx.Fx;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import javafx.concurrent.Task;
import javafx.fxml.FXMLLoader;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
import static com.osgifx.console.supervisor.Supervisor.AGENT_CONNECTED_EVENT_TOPIC;
import static com.osgifx.console.supervisor.Supervisor.AGENT_DISCONNECTED_EVENT_TOPIC;

import javax.annotation.PostConstruct;

import org.apache.commons.lang3.EnumUtils;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.di.extensions.OSGiBundle;
Expand All @@ -43,6 +41,7 @@
import com.osgifx.console.util.fx.Fx;
import com.osgifx.console.util.fx.FxDialog;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;
import jakarta.inject.Named;
import javafx.concurrent.Task;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
import java.util.Map;
import java.util.Set;

import javax.annotation.PostConstruct;

import org.eclipse.e4.core.di.annotations.Creatable;
import org.eclipse.e4.core.di.annotations.Optional;
import org.eclipse.e4.core.di.extensions.EventTopic;
Expand All @@ -41,6 +39,7 @@
import com.osgifx.console.agent.dto.XBundleInfoDTO;
import com.osgifx.console.data.provider.DataProvider;

import jakarta.annotation.PostConstruct;
import jakarta.inject.Inject;

@Creatable
Expand Down
Loading

0 comments on commit 9ac1c8c

Please sign in to comment.