// can be created while in the process of creating
// a triggering action delegate (if UI events are processed during startup).
// Also, if the start throws an exception, the bundle will be shut down.
// We don't want to have created any delegates if this happens.
// See bug 63324 for more details.
bundleListener = new BundleListener() {
public void bundleChanged(BundleEvent event) {
if (event.getBundle() == getBundle()) {
if (event.getType() == BundleEvent.STARTED) {
// We're getting notified that the bundle has been started.
// Make sure it's still active. It may have been shut down between