FrameworkLog log = Activator.getFrameworkLog(); if (log != null) { String message = NLS.bind(Messages.application_error_stopping, handle.getInstanceId()); log.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.WARNING, 0, message, 0, t, null)); }
String message = NLS.bind(Messages.application_error_stopping, handle.getInstanceId()); Activator.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.WARNING, 0, message, 0, t, null));
	private void stopAllApps() {		// get a stapshot of running applications		try {			ServiceReference[] runningRefs = context.getServiceReferences(ApplicationHandle.class.getName(), "(!(application.state=STOPPING))"); //$NON-NLS-1$			if (runningRefs != null)				for (int i = 0; i < runningRefs.length; i++) {					ApplicationHandle handle = (ApplicationHandle) context.getService(runningRefs[i]);					try {						handle.destroy();					} catch (Throwable t) {						FrameworkLog log = Activator.getFrameworkLog();						if (log != null) {							String message = NLS.bind(Messages.application_error_stopping, handle.getInstanceId());							log.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.WARNING, 0, message, 0, t, null));						}					}				}		} catch (InvalidSyntaxException e) {			// do nothing; we already tested the filter string above		}	}