Changeset 58

Show
Ignore:
Timestamp:
05/11/07 23:18:08 (2 years ago)
Author:
chris
Message:

minor cleanups

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/org/lastpod/LastPod.java

    r57 r58  
    4848        + "username and password."; 
    4949 
    50     private static void Load() { 
     50    /** 
     51     * Loads the recent played information from the iPod and constructs the 
     52     * GUI to display it. 
     53     */ 
     54    private static void load() { 
    5155        LastPod.recentplayed = new ArrayList(); 
    5256        LastPod.UI = new UI(); 
     
    5761        logger.addHandler(new LogHandler()); 
    5862 
    59         LastPod.ParsePlayCounts(); 
     63        LastPod.parsePlayCounts(); 
    6064 
    6165        LastPod.UI.makeVisable(); 
    6266    } 
    6367 
    64     public static void ParsePlayCounts() { 
     68    /** 
     69     * Parses the play counts and track information from the iPod. 
     70     */ 
     71    public static void parsePlayCounts() { 
    6572        Preferences fPrefs = Preferences.userRoot().node("ws/afterglo/audioPod"); 
    6673        String iTunesPath = fPrefs.get("iTunes Path", "default"); 
     
    93100    } 
    94101 
    95     public static Object SubmitTracks() { 
     102    /** 
     103     * Submits the tracks to Last.fm 
     104     * @return  A status message upon completion. 
     105     */ 
     106    public static Object submitTracks() { 
    96107        Preferences fPrefs = Preferences.userRoot().node("ws/afterglo/audioPod"); 
    97108        String username = fPrefs.get("Username", "default"); 
     
    194205        javax.swing.SwingUtilities.invokeLater(new Runnable() { 
    195206                public void run() { 
    196                     LastPod.Load(); 
     207                    LastPod.load(); 
    197208                } 
    198209            }); 
  • trunk/src/main/org/lastpod/PreferencesEditor.java

    r56 r58  
    396396        if (!oldItunesPath.equals(newItunesPath)) { 
    397397            LastPod.recentplayed = new ArrayList(); 
    398             LastPod.ParsePlayCounts(); 
     398            LastPod.parsePlayCounts(); 
    399399            LastPod.UI.newTrackListAvailable(); 
    400400        } 
  • trunk/src/main/org/lastpod/UI.java

    r52 r58  
    194194                        new SwingWorker() { 
    195195                                public Object construct() { 
    196                                     return LastPod.SubmitTracks(); 
     196                                    return LastPod.submitTracks(); 
    197197                                } 
    198198