8 |
|
import java.io.Serializable; |
9 |
|
import java.util.HashMap; |
10 |
|
|
11 |
– |
|
11 |
|
import com.thoughtworks.xstream.XStream; |
12 |
|
import com.thoughtworks.xstream.io.xml.StaxDriver; |
13 |
|
|
23 |
|
private static SettingsManager instance = new SettingsManager(); |
24 |
|
|
25 |
|
private static boolean debugRun = false; |
26 |
+ |
private static boolean useWorkingDir = false; |
27 |
|
|
28 |
|
private HashMap<String, Object> prefs = new HashMap<String, Object>(); |
29 |
|
|
57 |
|
} |
58 |
|
|
59 |
|
/** |
60 |
+ |
* @param useWd |
61 |
+ |
* Use working directory instead of jar path |
62 |
+ |
*/ |
63 |
+ |
public static void setUseWorkingDir(boolean useWd) { |
64 |
+ |
useWorkingDir = useWd; |
65 |
+ |
} |
66 |
+ |
|
67 |
+ |
/** |
68 |
+ |
* @return Do we want to use working directory |
69 |
+ |
*/ |
70 |
+ |
public static boolean getUseWorkingDir() { |
71 |
+ |
return useWorkingDir; |
72 |
+ |
} |
73 |
+ |
|
74 |
+ |
/** |
75 |
|
* @return Is offline? |
76 |
|
*/ |
77 |
|
public boolean isOfflineMode() { |