Révision 3436
TXM/trunk/org.txm.rcp/src/main/java/org/txm/rcp/ApplicationWorkbenchWindowAdvisor.java (revision 3436) | ||
---|---|---|
201 | 201 |
HashMap<CorpusBuild, ArrayList<AnnotationEngine>> notSaved = aem.getEnginesWithSaveNeededPerCorpus(); |
202 | 202 |
if (notSaved.size() > 0) { |
203 | 203 |
StringBuilder mess = new StringBuilder(); |
204 |
mess.append( "Some annotations are not saved for corpus and engines:");
|
|
204 |
mess.append( "Some annotations are not saved and will be lost after TXM is closed:");
|
|
205 | 205 |
for (CorpusBuild corpus : notSaved.keySet()) { |
206 | 206 |
mess.append("\n- "+corpus.getName()+": "+corpus.getSimpleDetails()); |
207 | 207 |
for (AnnotationEngine a: notSaved.get(corpus)) { |
TXM/trunk/org.txm.core/src/java/org/txm/metadatas/Metadatas.java (revision 3436) | ||
---|---|---|
265 | 265 |
} |
266 | 266 |
// write the other attributes |
267 | 267 |
for (int j : indexes) { |
268 |
if (headers.get(j).equals("id") || headers.get(j).length() == 0) { |
|
268 |
if (headers.get(j).length() == 0 || headers.get(j).equals("id") || headers.get(j).length() == 0) {
|
|
269 | 269 |
continue; |
270 | 270 |
} |
271 | 271 |
writer.writeStartElement("entry"); |
... | ... | |
483 | 483 |
// println "headers : "+Arrays.toString(headers) |
484 | 484 |
for (int i = 1; i < headers.length; i++) { |
485 | 485 |
if (headers[i].length() == 0) { |
486 |
headers[i] = "noname"; |
|
487 |
System.out.println("Warning: the " + (i + 1) + "th column name is empty"); |
|
486 |
//headers[i] = "noname"; |
|
487 |
Log.finer("Warning: the " + (i + 1) + "th column name is empty"); |
|
488 |
continue; |
|
488 | 489 |
} |
489 | 490 |
// if(!headers[i].equals("id"))// the first |
490 | 491 |
// { |
... | ... | |
518 | 519 |
} |
519 | 520 |
|
520 | 521 |
for (int i = 0; i < headers.length; i++) |
521 |
if (!headers[i].equals("id") && !headers[i].equals("xpath")) { |
|
522 |
if (headers[i].length() > 0 && !headers[i].equals("id") && !headers[i].equals("xpath")) {
|
|
522 | 523 |
writer.writeEmptyElement("entry"); |
523 | 524 |
writer.writeAttribute("id", AsciiUtils.buildAttributeId(headers[i])); |
524 | 525 |
String value = reader.get(headers[i]); |
Formats disponibles : Unified diff