mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 12:00:04 +02:00
clean up OSGi state reporting and help page
This commit is contained in:
parent
fbd564caca
commit
a3320ef3ab
3 changed files with 24 additions and 17 deletions
|
@ -162,8 +162,16 @@
|
|||
<li> <span style="font-weight:bold;color:#009900">active</span> - the bundle is built and classes within
|
||||
can be loaded
|
||||
</ul>
|
||||
</p>
|
||||
<p>The normally hidden column "OSGi State" is also available.</p>
|
||||
|
||||
<p>The normally hidden column "OSGi State" is also available. In addition to the Bundle
|
||||
state, this column will report</p>
|
||||
<ul style="padding-left:8em">
|
||||
<li> (DISABLED) - if the bundle is disabled
|
||||
<li> (ENABLED) - if the bundle is enabled, but the bundle manager has no handle to it.
|
||||
If this state persists, there is likely an internal error
|
||||
<li> (UNINSTALLED) - if the bundle is enabled, but the framework has released its handle.
|
||||
This is typical for an inactive bundle
|
||||
</ul>
|
||||
|
||||
|
||||
<h2><a name="AddBundles"/><a name="RemoveBundles"/>Adding and removing bundles from the manager</h2>
|
||||
|
|
|
@ -881,7 +881,8 @@ public class BundleHost {
|
|||
String.format("not a GhidraBundle: %s\n", osgiBundle.getLocation()));
|
||||
}
|
||||
break;
|
||||
case BundleEvent.UNINSTALLED:
|
||||
// force "inactive" updates for all other states
|
||||
default:
|
||||
bundle = bundleLocationToBundleMap.get(osgiBundle.getLocation());
|
||||
if (bundle != null) {
|
||||
fireBundleActivationChange(bundle, false);
|
||||
|
@ -891,8 +892,6 @@ public class BundleHost {
|
|||
String.format("not a GhidraBundle: %s\n", osgiBundle.getLocation()));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -411,7 +411,7 @@ public class BundleStatusTableModel
|
|||
public String getValue(BundleStatus status, Settings settings, List<BundleStatus> data,
|
||||
ServiceProvider serviceProvider0) throws IllegalArgumentException {
|
||||
if (!status.isEnabled()) {
|
||||
return "(disabled)";
|
||||
return "(DISABLED)";
|
||||
}
|
||||
GhidraBundle bundle = bundleHost.getExistingGhidraBundle(status.getFile());
|
||||
if (bundle != null) {
|
||||
|
@ -419,9 +419,9 @@ public class BundleStatusTableModel
|
|||
if (osgiBundle != null) {
|
||||
return OSGiUtils.getStateString(osgiBundle);
|
||||
}
|
||||
return "uninstalled";
|
||||
return "(UNINSTALLED)";
|
||||
}
|
||||
return "(enabled)";
|
||||
return "(ENABLED)";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue