public static String createToolTipWithNameSpace ( final String namespace , final String fieldName , final ResourceBundle bundle , final String toolTipType ) { String toolTip = null ; try { try { /** Look for name-space + . + fieldName, e.g., Employee.firstName.toolTip. */ toolTip = bundle . getString ( namespace + ' ' + fieldName + ' ' + toolTipType ) ; } catch ( MissingResourceException mre ) { /** Look for fieldName only, e.g., firstName.toolTip. */ toolTip = bundle . getString ( fieldName + ' ' + toolTipType ) ; } } catch ( MissingResourceException mre ) { } return toolTip ; }
Get the tool tip .