Révision 2724
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/annotation/CQL2WordAnnotationsMacro.groovy (revision 2724) | ||
---|---|---|
23 | 23 |
|
24 | 24 |
KnowledgeRepository kr = null // the following code should be replaced with KnowledgeRepository.createSimpleKnowledgeRepository(mcorpus.getName()) |
25 | 25 |
if (KnowledgeRepositoryManager.getKnowledgeRepository(mcorpus.getName()) != null) { |
26 |
kr = getKnowledgeRepository(mcorpus.getName()); |
|
26 |
kr = KnowledgeRepositoryManager.getKnowledgeRepository(mcorpus.getName());
|
|
27 | 27 |
} else { |
28 | 28 |
HashMap<String, HashMap<String, ?>> conf = new HashMap<>(); |
29 | 29 |
HashMap<String, String> access = new HashMap<>(); |
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/annotation/CQLList2WordPropertiesMacro.groovy (revision 2724) | ||
---|---|---|
41 | 41 |
|
42 | 42 |
if (n > 0) { |
43 | 43 |
println "Saving annotations..." |
44 |
monitor.syncExec(new Runnable() { |
|
45 |
public void run() { |
|
44 |
// monitor.syncExec(new Runnable() {
|
|
45 |
// public void run() {
|
|
46 | 46 |
def saveJob = SaveAnnotations.save(mcorpus); |
47 | 47 |
if (saveJob == null || saveJob.getResult() == Status.CANCEL_STATUS) { |
48 | 48 |
// update editor corpus |
... | ... | |
51 | 51 |
} else { |
52 | 52 |
return; // something was saved |
53 | 53 |
} |
54 |
} |
|
55 |
}); |
|
54 |
// }
|
|
55 |
// });
|
|
56 | 56 |
} else { |
57 | 57 |
println "No annotation to save." |
58 | 58 |
return false |
Formats disponibles : Unified diff