for (int i = 0; i < bundles.length; i++) { if (bundles[i].getState() != Bundle.ACTIVE) { String message = NLS.bind(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_ACTIVE, bundles[i]); throw new IllegalStateException(message);
ServiceTracker tracker = null; try { for (int i = 0; i < bundles.length; i++) { if (bundles[i].getState() != Bundle.ACTIVE) {  if (tracker == null) { tracker = new ServiceTracker(context, StartLevel.class.getName(), null); tracker.open(); } StartLevel sl = (StartLevel) tracker.getService(); if (sl != null && (sl.getBundleStartLevel(bundles[i]) <= sl.getStartLevel())) { String message = NLS.bind(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_ACTIVE, bundles[i]); throw new IllegalStateException(message); } }
	private static void ensureBundlesActive(Bundle[] bundles) {		for (int i = 0; i < bundles.length; i++) {			if (bundles[i].getState() != Bundle.ACTIVE) {				String message = NLS.bind(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_ACTIVE, bundles[i]);				throw new IllegalStateException(message);			}		}	}