FrameworkStartLevel fsl = this.bundleContext.getBundle(0).adapt(FrameworkStartLevel.class);
if (fsl != null) {
System.out.println("START LEVEL " + fsl.getStartLevel() + " , List Threshold: " + bundleLevelThreshold);
}
ShellTable table = new ShellTable();
table.column("ID").alignRight();
table.column("State");
table.column("Lvl").alignRight();
table.column("Version");
table.column(getNameHeader());
for (Bundle bundle : bundles) {
BundleInfo info = this.bundleService.getInfo(bundle);
if (info.getStartLevel() >= bundleLevelThreshold) {
String name = getNameToShow(info) + printFragments(info) + printHosts(info);
String version = info.getVersion();
table.addRow().addContent(info.getBundleId(), getStateString(info.getState()),
info.getStartLevel(), version, name);
}
}
table.print(System.out, !noFormat);
return null;
}