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 |
71 |
public static final String KEY_ANNOTATION_FORMAT = "annotationFormat"; // NOI18N |
72 |
public static final String KEY_ANNOTATION_FORMAT = "annotationFormat"; // NOI18N |
72 |
public static final String SAVE_PASSWORD = "savePassword"; // NOI18N |
73 |
public static final String SAVE_PASSWORD = "savePassword"; // NOI18N |
73 |
public static final String KEY_BACKUP_ON_REVERTMODS = "backupOnRevert"; // NOI18N |
74 |
public static final String KEY_BACKUP_ON_REVERTMODS = "backupOnRevert"; // NOI18N |
Lines 83-89
Link Here
|
83 |
|
84 |
|
84 |
public static final String TEXT_ANNOTATIONS_FORMAT_DEFAULT = "{DEFAULT}"; // NOI18N |
85 |
public static final String TEXT_ANNOTATIONS_FORMAT_DEFAULT = "{DEFAULT}"; // NOI18N |
85 |
|
86 |
|
86 |
private static final String DEFAULT_EXPORT_FILENAME = "/tmp/%b_%r_%h"; // NOI18N |
87 |
private static final String DEFAULT_EXPORT_FILENAME = "%b_%r_%h"; // NOI18N |
87 |
private static final HgModuleConfig INSTANCE = new HgModuleConfig(); |
88 |
private static final HgModuleConfig INSTANCE = new HgModuleConfig(); |
88 |
|
89 |
|
89 |
private static String userName; |
90 |
private static String userName; |
Lines 151-156
Link Here
|
151 |
getPreferences().put(KEY_EXECUTABLE_BINARY, path); |
152 |
getPreferences().put(KEY_EXECUTABLE_BINARY, path); |
152 |
} |
153 |
} |
153 |
|
154 |
|
|
|
155 |
public String getExportFolder() { |
156 |
return (String) getPreferences().get(KEY_EXPORT_FOLDER, System.getProperty("user.home")); // NOI18N |
157 |
} |
158 |
|
159 |
public void setExportFolder(String path) { |
160 |
getPreferences().put(KEY_EXPORT_FOLDER, path); |
161 |
} |
162 |
|
154 |
public String getExportFilename() { |
163 |
public String getExportFilename() { |
155 |
String str = (String) getPreferences().get(KEY_EXPORT_FILENAME, ""); // NOI18N |
164 |
String str = (String) getPreferences().get(KEY_EXPORT_FILENAME, ""); // NOI18N |
156 |
if (str.trim().length() == 0) str = DEFAULT_EXPORT_FILENAME; |
165 |
if (str.trim().length() == 0) str = DEFAULT_EXPORT_FILENAME; |