/** * If the current profile for self is marked as a roaming profile, we need * to update its install and bundle pool locations. */ private void updateSelfProfile(Map<String, Profile> profileMap) { if (profileMap == null) return; Profile selfProfile = profileMap.get(self); if (selfProfile == null) return; //register default locale provider where metadata translations are found //TODO ideally this should not be hard-coded to the current profile TranslationSupport.getInstance().setTranslationSource(selfProfile); if (DebugHelper.DEBUG_PROFILE_REGISTRY) DebugHelper.debug(PROFILE_REGISTRY, "SimpleProfileRegistry.updateSelfProfile"); //$NON-NLS-1$ boolean changed = false; //only update if self is a roaming profile if (Boolean.parseBoolean(selfProfile.getProperty(IProfile.PROP_ROAMING))) changed = updateRoamingProfile(selfProfile); if (changed) saveProfile(selfProfile); }
/** * If the current profile for self is marked as a roaming profile, we need * to update its install and bundle pool locations. */ private void updateSelfProfile(Map<String, Profile> profileMap) { if (profileMap == null) return; Profile selfProfile = profileMap.get(self); if (selfProfile == null) return; //register default locale provider where metadata translations are found //TODO ideally this should not be hard-coded to the current profile TranslationSupport.getInstance().setTranslationSource(selfProfile); if (DebugHelper.DEBUG_PROFILE_REGISTRY) DebugHelper.debug(PROFILE_REGISTRY, "SimpleProfileRegistry.updateSelfProfile"); //$NON-NLS-1$ boolean changed = false; //only update if self is a roaming profile if (Boolean.parseBoolean(selfProfile.getProperty(IProfile.PROP_ROAMING))) changed = updateRoamingProfile(selfProfile); if (changed) saveProfile(selfProfile); }