Example #1
0
 /**
  * Loads saved preferences for this plugin. If this is the first time through, default values will
  * be returned.
  *
  * @return The preferences.
  */
 private MacroPrefs loadPrefs() {
   MacroPrefs prefs = new MacroPrefs();
   File prefsFile = getPrefsFile();
   if (prefsFile.isFile()) {
     try {
       prefs.load(prefsFile);
     } catch (IOException ioe) {
       app.displayException(ioe);
       // (Some) defaults will be used
     }
   }
   return prefs;
 }