net.sourceforge.squirrel_sql.plugins.dataimport.prefs
Class PreferencesManager

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.dataimport.prefs.PreferencesManager

public class PreferencesManager
extends Object

This class manages the preferences.

Author:
Thorsten Mürell

Constructor Summary
PreferencesManager()
           
 
Method Summary
static DataImportPreferenceBean getPreferences()
          Returns the preferences holder
static void initialize(IPlugin thePlugin)
          Initializes the PreferencesManager
static void savePrefs()
          Save preferences to disk.
static void setFileWrapperFactory(FileWrapperFactory fileWrapperFactory)
           
static void unload()
          Saves the preferences.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferencesManager

public PreferencesManager()
Method Detail

initialize

public static void initialize(IPlugin thePlugin)
                       throws PluginException
Initializes the PreferencesManager

Parameters:
thePlugin -
Throws:
PluginException

getPreferences

public static DataImportPreferenceBean getPreferences()
Returns the preferences holder

Returns:
The bean holding the preferences for the dataimport plugin.

unload

public static void unload()
Saves the preferences.


setFileWrapperFactory

public static void setFileWrapperFactory(FileWrapperFactory fileWrapperFactory)
Parameters:
fileWrapperFactory - the fileWrapperFactory to set

savePrefs

public static void savePrefs()
Save preferences to disk. Always write to the user settings folder, not the application settings folder.



Copyright © 2001-2011. All Rights Reserved.