@Override
public void onUserSettingsLoaded( UserSettingsLoadedEvent event ) {
JsArray<JsSetting> settings = event.getSettings();
if ( settings != null ) {
for ( int i = 0; i < settings.length(); i++ ) {
JsSetting setting = settings.get( i );
if ( IMantleUserSettingsConstants.MANTLE_SHOW_LOCALIZED_FILENAMES.equals( setting.getName() ) ) {
boolean showLocalizedFileNames = "true".equals( setting.getName() ); //$NON-NLS-1$
setShowLocalizedFileNames( showLocalizedFileNames );
} else if ( IMantleUserSettingsConstants.MANTLE_SHOW_DESCRIPTIONS_FOR_TOOLTIPS.equals( setting.getName() ) ) {
boolean useDescriptions = "true".equals( setting.getValue() ); //$NON-NLS-1$
setUseDescriptionsForTooltip( useDescriptions );
} else if ( IMantleUserSettingsConstants.MANTLE_SHOW_HIDDEN_FILES.equals( setting.getName() ) ) {
boolean showHiddenFiles = "true".equals( setting.getValue() ); //$NON-NLS-1$
setShowHiddenFiles( showHiddenFiles );
}
}
}
RepositoryFileTreeManager.getInstance().addRepositoryFileTreeListener( this, null, null, showHiddenFiles );