Changeset eab1f15


Ignore:
Timestamp:
Mar 14, 2010, 4:11:31 PM (11 years ago)
Author:
Michael Seifert <mseifert@…>
Branches:
master
Children:
c2d9fc8
Parents:
3670d47
Message:

Support saving and loading of the last opened replay directory

Location:
src/main/java/de/erichseifert/warp
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/erichseifert/warp/gui/ReplayParserGUI.java

    r3670d47 reab1f15  
    6464import de.erichseifert.warp.gui.ReplayRowFilter.FilterMode;
    6565import de.erichseifert.warp.gui.renderers.sc2replay.SC2ReplayRenderer;
     66import de.erichseifert.warp.io.Settings;
    6667import de.erichseifert.warp.replays.sc2replay.SC2Replay;
    6768
     
    277278                JScrollPane replayTableScroller = new JScrollPane(replayTable);
    278279                splitPane.add(replayTableScroller, JSplitPane.RIGHT);
     280
     281                String replayPath = Settings.getInstance().getReplayDir();
     282                if (replayPath != null) {
     283                        setReplayDir(new File(replayPath));
     284                }
    279285        }
    280286
     
    284290         */
    285291        private void setReplayDir(File replayDir) {
     292                // Store selected directory for the next startup
     293                Settings.getInstance().setReplayDir(replayDir.getPath());
    286294                // Refresh replay table
    287295                replayTableModel.setRowCount(0);
Note: See TracChangeset for help on using the changeset viewer.