properties.put("type", LocationManager.PROP_INSTANCE_AREA); context.registerService(Location.class.getName(), location, properties);
locationProperties.put("type", LocationManager.PROP_INSTANCE_AREA); aContext.registerService(Location.class.getName(), location, locationProperties);
	public void frameworkStart(BundleContext context) throws BundleException {		// must register the xml parser and initialize the plugin converter		// instance first because we may need it when creating the statemanager		// in super.frameworkStart(context)		registerEndorsedXMLParser(context);		PluginConverter converter = new PluginConverterImpl(context);		super.frameworkStart(context);		Bundle bundle = context.getBundle();		Location location;		// Less than optimal reference to EclipseStarter here. Not sure how we		// can make the location		// objects available. They are needed very early in EclipseStarter but		// these references tie		// the adaptor to that starter.		location = LocationManager.getUserLocation();		Hashtable properties = new Hashtable(1);		if (location != null) {			properties.put("type", LocationManager.PROP_USER_AREA); //$NON-NLS-1$			context.registerService(Location.class.getName(), location, properties);		}		location = LocationManager.getInstanceLocation();		if (location != null) {			properties.put("type", LocationManager.PROP_INSTANCE_AREA); //$NON-NLS-1$			context.registerService(Location.class.getName(), location, properties);		}		location = LocationManager.getConfigurationLocation();		if (location != null) {			properties.put("type", LocationManager.PROP_CONFIG_AREA); //$NON-NLS-1$			context.registerService(Location.class.getName(), location, properties);		}		location = LocationManager.getInstallLocation();		if (location != null) {			properties.put("type", LocationManager.PROP_INSTALL_AREA); //$NON-NLS-1$			context.registerService(Location.class.getName(), location, properties);		}		register(org.eclipse.osgi.service.environment.EnvironmentInfo.class.getName(), EnvironmentInfo.getDefault(), bundle);		register(PlatformAdmin.class.getName(), stateManager, bundle);		register(PluginConverter.class.getName(), converter, bundle);		register(URLConverter.class.getName(), new URLConverterImpl(), bundle);		register(CommandProvider.class.getName(), new EclipseCommandProvider(context), bundle);		register(FrameworkLog.class.getName(), getFrameworkLog(), bundle);		register(org.eclipse.osgi.service.localization.BundleLocalization.class.getName(), new BundleLocalizationImpl(), bundle);	}