private static Bundle[] getInitialBundles() { Bundle[] installed = context.getBundles(); ArrayList initial = new ArrayList(); for (int i = 0; i < installed.length; i++) { Bundle bundle = installed[i]; if (bundle.getLocation().startsWith(INITIAL_LOCATION)) initial.add(bundle);
private static InitialBundle[] getInitialBundles(String[] installEntries) throws MalformedURLException { InitialBundle[] result = new InitialBundle[installEntries.length]; int defaultStartLevel = Integer.parseInt(System.getProperty(PROP_BUNDLES_STARTLEVEL)); String syspath = getSysPath(); for (int i = 0; i < installEntries.length; i++) { String name = installEntries[i]; int level = defaultStartLevel; boolean start = false; int index = name.indexOf('@'); if (index >= 0) { String[] attributes = getArrayFromList(name.substring(index + 1, name.length()), ":"); name = name.substring(0, index); for (int j = 0; j < attributes.length; j++) { String attribute = attributes[j]; if (attribute.equals("start")) start = true; else level = Integer.parseInt(attribute); } } URL location = searchForBundle(name, syspath); if (location == null) throw new IllegalArgumentException(EclipseAdaptorMsg.formatter.getString("ECLIPSE_STARTUP_BUNDLE_NOT_FOUND", name));  String locationString = INITIAL_LOCATION + location.toExternalForm(); result[i] = new InitialBundle(locationString, location, level, start);
	private static Bundle[] getInitialBundles() {		Bundle[] installed = context.getBundles();		ArrayList initial = new ArrayList();		for (int i = 0; i < installed.length; i++) {			Bundle bundle = installed[i];			if (bundle.getLocation().startsWith(INITIAL_LOCATION))				initial.add(bundle);		}		return (Bundle[]) initial.toArray(new Bundle[initial.size()]);	}