Bundle[] allBundles = EclipseAdaptor.getDefault().getContext().getBundles(); BundleDescription[] allToStop = selectBundlesToStop(allBundles);
BundleDescription[] allToStop = EclipseAdaptor.getDefault().getState().getResolvedBundles();
	public void stopBundles() {		Bundle[] allBundles = EclipseAdaptor.getDefault().getContext().getBundles();		BundleDescription[] allToStop = selectBundlesToStop(allBundles);		StateHelper stateHelper = EclipseAdaptor.getDefault().getPlatformAdmin().getStateHelper();		Object[][] cycles = stateHelper.sortBundles(allToStop);		logCycles(cycles);		stopBundles(allToStop);	}