public void stop() {
if (handleTracker == null)
return;
// force the default application to quit
ApplicationHandle handle =(ApplicationHandle) handleTracker.getService();
if (handle != null) {
try {
handle.destroy();
} catch (Throwable t) {
String message = NLS.bind(Messages.application_error_stopping, handle.getInstanceId());
Activator.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.WARNING, 0, message, 0, t, null));
}
}
}