mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-06-17 21:29:39 +00:00
Added compile directory.
This commit is contained in:
parent
c9a2b6035c
commit
d127416aab
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* AppleCommander - An Apple ][ image utility.
|
||||
* Copyright (C) 2002 by Robert Greene
|
||||
* Copyright (C) 2002-3 by Robert Greene
|
||||
* robgreene at users.sourceforge.net
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
|
@ -34,6 +34,7 @@ public class UserPreferences {
|
|||
private static final String FILENAME = "AppleCommander.preferences";
|
||||
private static final String IMAGE_DIRECTORY = "imageDirectory";
|
||||
private static final String EXPORT_DIRECTORY = "exportDirectory";
|
||||
private static final String COMPILE_DIRECTORY = "compileDirectory";
|
||||
private static UserPreferences instance;
|
||||
private Properties properties = new Properties();
|
||||
/**
|
||||
|
@ -85,6 +86,12 @@ public class UserPreferences {
|
|||
public String getExportDirectory() {
|
||||
return properties.getProperty(EXPORT_DIRECTORY);
|
||||
}
|
||||
/**
|
||||
* Get the compile directory.
|
||||
*/
|
||||
public String getCompileDirectory() {
|
||||
return properties.getProperty(COMPILE_DIRECTORY);
|
||||
}
|
||||
/**
|
||||
* Set the disk image directory.
|
||||
*/
|
||||
|
@ -97,4 +104,10 @@ public class UserPreferences {
|
|||
public void setExportDirectory(String exportDirectory) {
|
||||
properties.setProperty(EXPORT_DIRECTORY, exportDirectory);
|
||||
}
|
||||
/**
|
||||
* Set the compile directory.
|
||||
*/
|
||||
public void setCompileDirectory(String compileDirectory) {
|
||||
properties.setProperty(COMPILE_DIRECTORY, compileDirectory);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user