summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Campo2008-01-22 05:39:22 (EST)
committerChristian Campo2008-01-22 05:39:22 (EST)
commit24cfbc92a8f0a2bcd58de028a57d8dd4e0654820 (patch)
tree7cd9dd47b8390131b0eeffedfecc8f42f2361aad
parentf6ac49e3d513f2fae8613d6cf0e039794f2f700b (diff)
downloadorg.eclipse.riena-24cfbc92a8f0a2bcd58de028a57d8dd4e0654820.zip
org.eclipse.riena-24cfbc92a8f0a2bcd58de028a57d8dd4e0654820.tar.gz
org.eclipse.riena-24cfbc92a8f0a2bcd58de028a57d8dd4e0654820.tar.bz2
also start bundles that are STARTING=LAZY
-rw-r--r--org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java b/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java
index 98f0c4b..c848afc 100644
--- a/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java
+++ b/org.eclipse.riena.core/src/org/eclipse/riena/internal/core/Activator.java
@@ -50,7 +50,8 @@ public class Activator extends Plugin {
for (Bundle bundle : bundles) {
String forceStart = (String) bundle.getHeaders().get("Riena-ForceStart");
if (forceStart != null && forceStart.equals("true")) {
- if (bundle.getState() == Bundle.RESOLVED) {
+ // STARTING == LAZY, so start that also
+ if (bundle.getState() == Bundle.RESOLVED || bundle.getState() == Bundle.STARTING) {
bundle.start();
System.out.println(bundle.getSymbolicName() + " forced autostart successfully");
} else {