SCL-compiler should activate installed bundles
[simantics/platform.git] / bundles / org.simantics.scl.osgi / src / org / simantics / scl / osgi / internal / BundleUtils.java
index c16545889425e4ffc0b7fd2d5dbbd6e41f4bab44..8c0bf43dc5421c1f8f3c1a6e9e722d07debb2366 100644 (file)
@@ -48,4 +48,16 @@ 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";
+               }
+       }
+
 }