* @throws UnknownKeyException
* if the new language file doesn't support a needed key
*/
@Override
public void reloadLanguage() throws UnknownKeyException {
SwitchLanguage sl = SwitchLanguage.getInstance() ;
// Disable only the menu item of the current language
//TODO Add access to the previously selected language to boost efficiency
GuiLanguage currentLang = sl.getCurrentLanguage() ;
this.frenchLang.setEnabled(
!GuiLanguage.FRENCH.equals(currentLang)) ;
this.englishLang.setEnabled(
!GuiLanguage.ENGLISH.equals(currentLang)) ;
// Update displaeyd text
this.settings.setText(sl.getText(CONFIGURATION_MENU)) ;
this.settings.setToolTipText(
sl.getText(CONFIGURATION_MENU_TOOLTIP)) ;
this.languages.setText(sl.getText(LANGUAGE_SELECTION_MENU)) ;
this.languages.setToolTipText(
sl.getText(LANGUAGE_SELECTION_MENU_TOOLTIP)) ;
this.frenchLang.setText(
sl.getText(LANGUAGE_SELECTION_MENU_FR)) ;
this.englishLang.setText(
sl.getText(LANGUAGE_SELECTION_MENU_EN)) ;
this.lookAndFeel.setText(sl.getText(LOOK_AND_FEEL_MENU)) ;
this.plugIns.setText(sl.getText(TOOLS_MENU)) ;
this.plugIns.setToolTipText(sl.getText(TOOLS_MENU_TOOLTIP)) ;
this.deleteAnalyzer.setText(sl.getText(DELETE_ANALYZER_MENU)) ;
this.deleteAnalyzer.setToolTipText(
sl.getText(DELETE_ANALYZER_MENU_TOOLTIP)) ;
this.deleteGenerator.setText(sl.getText(DELETE_GENERATOR_MENU)) ;
this.deleteGenerator.setToolTipText(
sl.getText(DELETE_GENERATOR_MENU_TOOLTIP)) ;
}// reloadLanguage()