Révision 1157
| tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 1157) | ||
|---|---|---|
| 162 | 162 |
* This string can be used, for example, to display some infos in UI even if the result has not yet been recomputed. |
| 163 | 163 |
*/ |
| 164 | 164 |
@Parameter(key=TXMPreferences.LAZY_NAME, type=Parameter.INTERNAL) |
| 165 |
protected String lazyName;
|
|
| 165 |
private String lazyName;
|
|
| 166 | 166 |
|
| 167 | 167 |
|
| 168 | 168 |
|
| ... | ... | |
| 900 | 900 |
this.saveParameter(TXMPreferences.PARENT_UUID, this.parent.getUUID()); |
| 901 | 901 |
} |
| 902 | 902 |
|
| 903 |
this.lazyName = this.getSimpleName(); |
|
| 903 | 904 |
|
| 904 | 905 |
List<Field> fields = this.getAllFields(); |
| 905 | 906 |
|
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/commands/function/RenameResult.java (revision 1157) | ||
|---|---|---|
| 29 | 29 |
TextDialog dialog = new TextDialog(window.getShell(), "Rename " + r, "Enter the new name to show in the Corpus view", r.getCurrentName()); |
| 30 | 30 |
if (dialog.open() == TextDialog.OK) {
|
| 31 | 31 |
String newName = dialog.getText(); |
| 32 |
if (newName.length() > 0) {
|
|
| 32 |
//if (newName.length() > 0) {
|
|
| 33 | 33 |
r.setUserName(newName); |
| 34 | 34 |
try {
|
| 35 | 35 |
r.autoSaveParametersFromAnnotations(); |
| ... | ... | |
| 47 | 47 |
CorporaView.refreshObject(r); |
| 48 | 48 |
} |
| 49 | 49 |
}); |
| 50 |
} |
|
| 50 |
//}
|
|
| 51 | 51 |
} |
| 52 | 52 |
} |
| 53 | 53 |
return null; |
Formats disponibles : Unified diff