/** Getter for Description property * @return localized description of the annotation type */ public String getDescription() { String desc = (String)getProp(PROP_DESCRIPTION); if (desc == null) { String localizer = (String)getProp(PROP_LOCALIZING_BUNDLE); String key = (String)getProp(PROP_DESCRIPTION_KEY); ResourceBundle bundle = ImplementationProvider.getDefault().getResourceBundle(localizer); desc = bundle.getString(key); setDescription(desc); // cache it } return desc; }
/** Getter for TooltipText property * @return localized TooltipText of the annotation type */ public String getTooltipText() { String text = (String)getProp(PROP_TOOLTIP_TEXT); if (text == null) { String localizer = (String)getProp(PROP_LOCALIZING_BUNDLE); String key = (String)getProp(PROP_COMBINATION_TOOLTIP_TEXT_KEY); ResourceBundle bundle = ImplementationProvider.getDefault().getResourceBundle(localizer); text = bundle.getString(key); setTooltipText(text); // cache it } return text; }
/** * Getter for Description property * * @return localized description of the annotation type */ public String getDescription() { String desc = (String) getProp(PROP_DESCRIPTION); if (desc == null) { String localizer = (String) getProp(PROP_LOCALIZING_BUNDLE); String key = (String) getProp(PROP_DESCRIPTION_KEY); ResourceBundle bundle = ImplementationProvider.getDefault().getResourceBundle(localizer); desc = bundle.getString(key); setDescription(desc); // cache it } return desc; }
/** * Getter for TooltipText property * * @return localized TooltipText of the annotation type */ public String getTooltipText() { String text = (String) getProp(PROP_TOOLTIP_TEXT); if (text == null) { String localizer = (String) getProp(PROP_LOCALIZING_BUNDLE); String key = (String) getProp(PROP_COMBINATION_TOOLTIP_TEXT_KEY); ResourceBundle bundle = ImplementationProvider.getDefault().getResourceBundle(localizer); text = bundle.getString(key); setTooltipText(text); // cache it } return text; }