Révision 2021
| tmp/org.txm.core/src/java/org/txm/objects/Edition.java (revision 2021) | ||
|---|---|---|
| 196 | 196 |
this.pPageNames.add(id); |
| 197 | 197 |
this.pPageFirstWordIds.add(wordid); |
| 198 | 198 |
} |
| 199 |
|
|
| 199 | 200 |
|
| 201 |
public void resetPages() {
|
|
| 202 |
this.pPageNames.clear(); |
|
| 203 |
this.pPageFirstWordIds.clear(); |
|
| 204 |
} |
|
| 205 |
|
|
| 200 | 206 |
/** |
| 201 | 207 |
* Gets the page for word id. |
| 202 | 208 |
* |
| tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/xtz/XTZPager.groovy (revision 2021) | ||
|---|---|---|
| 400 | 400 |
t.setTXMFile(txmFile) |
| 401 | 401 |
|
| 402 | 402 |
Edition edition = t.getEdition(editionName) |
| 403 |
if (edition == null) {
|
|
| 403 |
if (edition == null) { // new edition
|
|
| 404 | 404 |
edition = new Edition(t); |
| 405 |
} else { // replacing existing edition
|
|
| 406 |
edition.resetPages() |
|
| 405 | 407 |
} |
| 406 | 408 |
edition.setName(editionName); |
| 407 | 409 |
edition.setIndex(outputDirectory.getAbsolutePath()); |
| tmp/org.txm.groovy.core/.project (revision 2021) | ||
|---|---|---|
| 26 | 26 |
<nature>org.eclipse.pde.PluginNature</nature> |
| 27 | 27 |
<nature>org.eclipse.jdt.core.javanature</nature> |
| 28 | 28 |
</natures> |
| 29 |
<linkedResources> |
|
| 30 |
<link> |
|
| 31 |
<name>groovy</name> |
|
| 32 |
<type>2</type> |
|
| 33 |
<locationURI>PROJECT_LOC/src/groovy</locationURI> |
|
| 34 |
</link> |
|
| 35 |
</linkedResources> |
|
| 36 | 29 |
</projectDescription> |
Formats disponibles : Unified diff