diff options
author | hseeberger | 2008-08-06 12:07:08 +0000 |
---|---|---|
committer | hseeberger | 2008-08-06 12:07:08 +0000 |
commit | 3e831c7efa41da4073cf895358eb9e52070bd1ce (patch) | |
tree | 6673f7c804f93652300399de0d990aa6b740b0d4 | |
parent | b021c231440d49aebef87cd2a5f01b9f95f795ab (diff) | |
download | rt.equinox.bundles-3e831c7efa41da4073cf895358eb9e52070bd1ce.tar.gz rt.equinox.bundles-3e831c7efa41da4073cf895358eb9e52070bd1ce.tar.xz rt.equinox.bundles-3e831c7efa41da4073cf895358eb9e52070bd1ce.zip |
Enhancements for service dynamics.v200808061839
-rw-r--r-- | bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/service/weaving/SupplementerRegistry.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/service/weaving/SupplementerRegistry.java b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/service/weaving/SupplementerRegistry.java index cd21e49e4..213da49ac 100644 --- a/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/service/weaving/SupplementerRegistry.java +++ b/bundles/org.eclipse.equinox.weaving.hook/src/org/eclipse/equinox/service/weaving/SupplementerRegistry.java @@ -252,17 +252,7 @@ public class SupplementerRegistry { + bundle.getSymbolicName()); try { - final int initialstate = (bundle.getState() & (Bundle.ACTIVE | Bundle.STARTING)); - // TODO Why stop? Shouldn't start again? - boolean wasStopped = false; - if (initialstate != 0 - && packageAdmin != null - && packageAdmin.getBundleType(bundle) != PackageAdmin.BUNDLE_TYPE_FRAGMENT) { - wasStopped = true; - bundle.stop(Bundle.STOP_TRANSIENT); - } bundle.update(); - if (wasStopped) bundle.start(Bundle.START_TRANSIENT); } catch (final BundleException e) { e.printStackTrace(); } |