Lines 68-73
Link Here
|
68 |
public static final String PROP_RUN_VERSION = "runVersion"; // NOI18N |
68 |
public static final String PROP_RUN_VERSION = "runVersion"; // NOI18N |
69 |
public static final String KEY_EXECUTABLE_BINARY = "hgExecBinary"; // NOI18N |
69 |
public static final String KEY_EXECUTABLE_BINARY = "hgExecBinary"; // NOI18N |
70 |
public static final String KEY_EXPORT_FILENAME = "hgExportFilename"; // NOI18N |
70 |
public static final String KEY_EXPORT_FILENAME = "hgExportFilename"; // NOI18N |
|
|
71 |
public static final String KEY_EXPORT_FOLDER = "hgExportFolder"; // NOI18N |
72 |
public static final String KEY_IMPORT_FOLDER = "hgImportFolder"; // NOI18N |
71 |
public static final String KEY_ANNOTATION_FORMAT = "annotationFormat"; // NOI18N |
73 |
public static final String KEY_ANNOTATION_FORMAT = "annotationFormat"; // NOI18N |
72 |
public static final String SAVE_PASSWORD = "savePassword"; // NOI18N |
74 |
public static final String SAVE_PASSWORD = "savePassword"; // NOI18N |
73 |
public static final String KEY_BACKUP_ON_REVERTMODS = "backupOnRevert"; // NOI18N |
75 |
public static final String KEY_BACKUP_ON_REVERTMODS = "backupOnRevert"; // NOI18N |
Lines 83-89
Link Here
|
83 |
|
85 |
|
84 |
public static final String TEXT_ANNOTATIONS_FORMAT_DEFAULT = "{DEFAULT}"; // NOI18N |
86 |
public static final String TEXT_ANNOTATIONS_FORMAT_DEFAULT = "{DEFAULT}"; // NOI18N |
85 |
|
87 |
|
86 |
private static final String DEFAULT_EXPORT_FILENAME = "/tmp/%b_%r_%h"; // NOI18N |
88 |
private static final String DEFAULT_EXPORT_FILENAME = "%b_%r_%h"; // NOI18N |
87 |
private static final HgModuleConfig INSTANCE = new HgModuleConfig(); |
89 |
private static final HgModuleConfig INSTANCE = new HgModuleConfig(); |
88 |
|
90 |
|
89 |
private static String userName; |
91 |
private static String userName; |
Lines 151-156
Link Here
|
151 |
getPreferences().put(KEY_EXECUTABLE_BINARY, path); |
153 |
getPreferences().put(KEY_EXECUTABLE_BINARY, path); |
152 |
} |
154 |
} |
153 |
|
155 |
|
|
|
156 |
public String getExportFolder() { |
157 |
return (String) getPreferences().get(KEY_EXPORT_FOLDER, System.getProperty("user.home")); // NOI18N |
158 |
} |
159 |
|
160 |
public void setExportFolder(String path) { |
161 |
getPreferences().put(KEY_EXPORT_FOLDER, path); |
162 |
} |
163 |
|
164 |
public String getImportFolder() { |
165 |
return (String) getPreferences().get(KEY_IMPORT_FOLDER, System.getProperty("user.home")); // NOI18N |
166 |
} |
167 |
|
168 |
public void setImportFolder(String path) { |
169 |
getPreferences().put(KEY_IMPORT_FOLDER, path); |
170 |
} |
171 |
|
154 |
public String getExportFilename() { |
172 |
public String getExportFilename() { |
155 |
String str = (String) getPreferences().get(KEY_EXPORT_FILENAME, ""); // NOI18N |
173 |
String str = (String) getPreferences().get(KEY_EXPORT_FILENAME, ""); // NOI18N |
156 |
if (str.trim().length() == 0) str = DEFAULT_EXPORT_FILENAME; |
174 |
if (str.trim().length() == 0) str = DEFAULT_EXPORT_FILENAME; |