Révision 1970
| tmp/org.txm.core/src/java/org/txm/objects/BaseOldParameters.java (revision 1970) | ||
|---|---|---|
| 112 | 112 |
|
| 113 | 113 |
public String author; |
| 114 | 114 |
String AVOIDXMLSTEPSDEFAULT = FALSE; |
| 115 |
String CLEANTEMPDIRSDEFAULT = FALSE;
|
|
| 115 |
String CLEANTEMPDIRSDEFAULT = TRUE;
|
|
| 116 | 116 |
public HashMap<String, Element> corpora = new HashMap<String, Element>(); |
| 117 | 117 |
public Element corporaElement; |
| 118 | 118 |
public Date date; |
| ... | ... | |
| 471 | 471 |
} |
| 472 | 472 |
|
| 473 | 473 |
public boolean getCleanTEMPDirectories(Element corpusElem) {
|
| 474 |
String str = corpusElem.getAttribute(CorpusBuild.CLEANTEMPDIRS);
|
|
| 474 |
String str = ""+this.getKeyValueParameters().get("clean.directories");
|
|
| 475 | 475 |
if (str == null || str.length() == 0) str = CLEANTEMPDIRSDEFAULT; |
| 476 | 476 |
return TRUE.equals(str); |
| 477 | 477 |
} |
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/imports/sections/OptionsSection.java (revision 1970) | ||
|---|---|---|
| 53 | 53 |
|
| 54 | 54 |
@Override |
| 55 | 55 |
public void update(Project project) {
|
| 56 |
// String value = (String) params.getKeyValueParameters().get(ImportKeys.CLEAN); |
|
| 57 |
// if (value == null) value = "true"; |
|
| 58 |
// cleanButton.setSelection(Boolean.parseBoolean(value)); |
|
| 56 |
cleanButton.setSelection(project.getCleanAfterBuild()); |
|
| 59 | 57 |
// |
| 60 | 58 |
//// value = (String) params.getKeyValueParameters().get(ImportKeys.MULTITHREAD); |
| 61 | 59 |
//// if (value == null) value = "false"; |
| ... | ... | |
| 64 | 62 |
|
| 65 | 63 |
@Override |
| 66 | 64 |
public boolean save(Project project) {
|
| 67 |
// if (this.section != null && !section.isDisposed()) {
|
|
| 65 |
if (this.section != null && !section.isDisposed()) {
|
|
| 68 | 66 |
// |
| 69 |
// project.setCleanAfterBuild(cleanButton.getSelection());
|
|
| 67 |
project.setCleanAfterBuild(cleanButton.getSelection()); |
|
| 70 | 68 |
// |
| 71 | 69 |
//// value = Boolean.toString(multithreadButton.getSelection()); |
| 72 | 70 |
//// params.getKeyValueParameters().put(ImportKeys.MULTITHREAD, value); |
| 73 | 71 |
// return true; |
| 74 |
// }
|
|
| 72 |
} |
|
| 75 | 73 |
|
| 76 | 74 |
return true; |
| 77 | 75 |
} |
Formats disponibles : Unified diff