} else if (description.getSymbolicName() != null) { BundleDescription[] homonyms = state.getBundles(description.getSymbolicName()); for (int j = 0; j < homonyms.length; j++) if (homonyms[j].isResolved()) { logChildren = new FrameworkLogEntry[1]; logChildren[0] = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, NLS.bind(EclipseAdaptorMsg.ECLIPSE_CONSOLE_OTHER_VERSION, homonyms[j].getLocation()), 0, null, null); }
} else { ResolverError[] resolverErrors = state.getResolverErrors(description); if (resolverErrors.length > 0) { logChildren = new FrameworkLogEntry[resolverErrors.length]; for (int j = 0; j < resolverErrors.length; j++) logChildren[j] = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, resolverErrors[j].toString(), 0, null, null); }
	private static void logUnresolvedBundles(Bundle[] bundles) {		State state = adaptor.getState();		FrameworkLog logService = adaptor.getFrameworkLog();		StateHelper stateHelper = adaptor.getPlatformAdmin().getStateHelper();		for (int i = 0; i < bundles.length; i++)			if (bundles[i].getState() == Bundle.INSTALLED) {				String generalMessage = NLS.bind(EclipseAdaptorMsg.ECLIPSE_STARTUP_ERROR_BUNDLE_NOT_RESOLVED, bundles[i]);				BundleDescription description = state.getBundle(bundles[i].getBundleId());				// for some reason, the state does not know about that bundle				if (description == null)					continue;				FrameworkLogEntry[] logChildren = null;				VersionConstraint[] unsatisfied = stateHelper.getUnsatisfiedConstraints(description);				if (unsatisfied.length > 0) {					// the bundle wasn't resolved due to some of its constraints were unsatisfiable					logChildren = new FrameworkLogEntry[unsatisfied.length];					for (int j = 0; j < unsatisfied.length; j++)						logChildren[j] = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, EclipseAdaptorMsg.getResolutionFailureMessage(unsatisfied[j]), 0, null, null);				} else if (description.getSymbolicName() != null) {					BundleDescription[] homonyms = state.getBundles(description.getSymbolicName());					for (int j = 0; j < homonyms.length; j++)						if (homonyms[j].isResolved()) {							logChildren = new FrameworkLogEntry[1];							logChildren[0] = new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, NLS.bind(EclipseAdaptorMsg.ECLIPSE_CONSOLE_OTHER_VERSION, homonyms[j].getLocation()), 0, null, null); 						}				}				logService.log(new FrameworkLogEntry(FrameworkAdaptor.FRAMEWORK_SYMBOLICNAME, generalMessage, 0, null, logChildren));			}	}