From d2ec523b0071d81bd5ad1bbdeb94532065a70424 Mon Sep 17 00:00:00 2001 From: Diego Ruiz Date: Thu, 24 Oct 2019 19:23:50 +0200 Subject: [PATCH] IDEMPIERE-3043 by synchronized. sometime, get list service will wrong --- .../src/org/adempiere/plugin/utils/AdempiereActivator.java | 2 +- .../org/adempiere/plugin/utils/Incremental2PackActivator.java | 2 +- .../org/adempiere/plugin/utils/PackInApplicationActivator.java | 2 +- .../src/org/adempiere/plugin/utils/Version2PackActivator.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/AdempiereActivator.java b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/AdempiereActivator.java index 2b3127ef70..3680b17b91 100644 --- a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/AdempiereActivator.java +++ b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/AdempiereActivator.java @@ -190,7 +190,7 @@ public class AdempiereActivator extends AbstractActivator implements FrameworkLi @Override public void frameworkEvent(FrameworkEvent event) { - if (event.getType() == FrameworkEvent.STARTED) { + if (event.getType() == FrameworkEvent.STARTLEVEL_CHANGED) { frameworkStarted(); } } diff --git a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Incremental2PackActivator.java b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Incremental2PackActivator.java index 9d246983a2..378b43acc3 100644 --- a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Incremental2PackActivator.java +++ b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Incremental2PackActivator.java @@ -315,7 +315,7 @@ public class Incremental2PackActivator extends AbstractActivator implements Fram @Override public void frameworkEvent(FrameworkEvent event) { - if (event.getType() == FrameworkEvent.STARTED) { + if (event.getType() == FrameworkEvent.STARTLEVEL_CHANGED) { frameworkStarted(); } } diff --git a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/PackInApplicationActivator.java b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/PackInApplicationActivator.java index d533d0bb82..c7dab23879 100644 --- a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/PackInApplicationActivator.java +++ b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/PackInApplicationActivator.java @@ -396,7 +396,7 @@ public class PackInApplicationActivator extends AbstractActivator implements Fra @Override public void frameworkEvent(FrameworkEvent event) { - if (event.getType() == FrameworkEvent.STARTED) { + if (event.getType() == FrameworkEvent.STARTLEVEL_CHANGED) { frameworkStarted(); } } diff --git a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Version2PackActivator.java b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Version2PackActivator.java index e88b420816..588923a29c 100644 --- a/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Version2PackActivator.java +++ b/org.adempiere.plugin.utils/src/org/adempiere/plugin/utils/Version2PackActivator.java @@ -283,7 +283,7 @@ public class Version2PackActivator extends AbstractActivator implements Framewor @Override public void frameworkEvent(FrameworkEvent event) { - if (event.getType() == FrameworkEvent.STARTED) { + if (event.getType() == FrameworkEvent.STARTLEVEL_CHANGED) { frameworkStarted(); } }