@Override public List<String> getExports(long bundleId) { return packageService.getExports(bundleId); }
@Override public List<String> getImports(long bundleId) { return packageService.getImports(bundleId); }
@Override public List<String> getImports(long bundleId) { return packageService.getImports(bundleId); }
@Override public List<String> getExports(long bundleId) { return packageService.getExports(bundleId); }
TabularData table = new TabularDataSupport(tableType); List<PackageRequirement> imports = packageService.getImports();
TabularData table = new TabularDataSupport(tableType); List<PackageVersion> exports = packageService.getExports();
TabularData table = new TabularDataSupport(tableType); List<PackageRequirement> imports = packageService.getImports();
TabularData table = new TabularDataSupport(tableType); List<PackageVersion> exports = packageService.getExports();
protected Object doExecute() throws Exception { SortedMap<String, PackageRequirement> imports = packageService.getImports(); ShellTable table = new ShellTable(); table.column(new Col(onlyPackage ? "Package name" : "Filter")); table.column(new Col("Optional")); table.column(new Col("ID")); table.column(new Col("Bundle Name")); table.column(new Col("Resolveable")); for (String filter : imports.keySet()) { PackageRequirement req = imports.get(filter); Bundle bundle = req.getBundle(); String firstCol = onlyPackage ? req.getPackageName() : req.getFilter(); table.addRow().addContent(firstCol, req.isOptional() ? "optional" : "", bundle.getBundleId(), bundle.getSymbolicName(), req.isResolveable()); } table.print(System.out, !noFormat); return null; }
private void showExports() { SortedMap<String, PackageVersion> exports = packageService.getExports(); ShellTable table = new ShellTable(); table.column(new Col("Package Name")); table.column(new Col("Version")); table.column(new Col("ID")); table.column(new Col("Bundle Name")); for (String key : exports.keySet()) { PackageVersion pVer = exports.get(key); for (Bundle bundle : pVer.getBundles()) { table.addRow().addContent(pVer.getPackageName(),pVer.getVersion().toString(), bundle.getBundleId(), bundle.getSymbolicName()); } } table.print(System.out, !noFormat); }
@Override public Object execute() throws Exception { List<PackageRequirement> imports = packageService.getImports(); ShellTable table = new ShellTable(); if (showFilter) {
private void showExports() { List<PackageVersion> exports = packageService.getExports(); ShellTable table = new ShellTable(); table.column("Package Name"); if (!showOnlyName) { table.column("Version"); table.column("ID"); table.column("Bundle Name"); } for (PackageVersion pVer : exports) { for (Bundle bundle : pVer.getBundles()) { if (matchesFilter(pVer, bundle)) { if (!showOnlyName) { table.addRow().addContent(pVer.getPackageName(), pVer.getVersion().toString(), bundle.getBundleId(), bundle.getSymbolicName()); } else { table.addRow().addContent(pVer.getPackageName()); } } } } table.print(System.out, !noFormat); }
@Override public Object execute() throws Exception { List<PackageRequirement> imports = packageService.getImports(); ShellTable table = new ShellTable(); if (showFilter) {
private void showExports() { List<PackageVersion> exports = packageService.getExports(); ShellTable table = new ShellTable(); table.column("Package Name"); if (!showOnlyName) { table.column("Version"); table.column("ID"); table.column("Bundle Name"); } for (PackageVersion pVer : exports) { for (Bundle bundle : pVer.getBundles()) { if (matchesFilter(pVer, bundle)) { if (!showOnlyName) { table.addRow().addContent(pVer.getPackageName(), pVer.getVersion().toString(), bundle.getBundleId(), bundle.getSymbolicName()); } else { table.addRow().addContent(pVer.getPackageName()); } } } } table.print(System.out, !noFormat); }