]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.osgi/src/org/simantics/scl/osgi/internal/BundleUtils.java
SCL-compiler should activate installed bundles
[simantics/platform.git] / bundles / org.simantics.scl.osgi / src / org / simantics / scl / osgi / internal / BundleUtils.java
index c16545889425e4ffc0b7fd2d5dbbd6e41f4bab44..0f3d9c7c7e7f45ac8a2ce5f8bf5bda266fa05993 100644 (file)
@@ -48,4 +48,23 @@ public class BundleUtils {
                }
        }
 
+    public static String resolveBundleState(Bundle bundle) {
+        switch (bundle.getState()) {
+        case Bundle.UNINSTALLED:
+            return "UNINSTALLED";
+        case Bundle.INSTALLED:
+            return "INSTALLED";
+        case Bundle.RESOLVED:
+            return "RESOLVED";
+        case Bundle.STARTING:
+            return "STARTING";
+        case Bundle.STOPPING:
+            return "STOPPING";
+        case Bundle.ACTIVE:
+            return "ACTIVE";
+        default:
+            return "UNKNOWN";
+        }
+    }
+
 }