public ICopyright getCopyright(String locale) { return TranslationSupport.getInstance().getCopyright(this, locale); }
public String getProperty(String key, String locale) { return TranslationSupport.getInstance().getIUProperty(this, key, locale); }
public Collection<ILicense> getLicenses(String locale) { return CollectionUtils.unmodifiableList(TranslationSupport.getInstance().getLicenses(this, locale)); }
/** * Creates a label provider. * * @param showVersion whether version information should be shown in labels * @param appendResolvedVariables whether locations with variables should be shown * with variables resolved, in addition to unresolved */ public StyledBundleLabelProvider(boolean showVersion, boolean appendResolvedVariables) { PDEPlugin.getDefault().getLabelProvider().connect(this); fShowVersion = showVersion; fAppendResolvedVariables = appendResolvedVariables; fTranslations = TranslationSupport.getInstance(); }
/** * 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); }