Révision 1947
tmp/org.txm.analec.rcp/src/org/txm/annotation/urs/toolbar/UnitToolbar.java (revision 1947) | ||
---|---|---|
620 | 620 |
String id = page.getWordId(); |
621 | 621 |
if (id == null || id.length() == 0) return; |
622 | 622 |
|
623 |
int first_ids[] = CQPSearchEngine.getCqiClient().str2Id(maincorpus.getProperty("id").getQualifiedName(), new String[] {id}); //$NON-NLS-1$ |
|
623 |
String qid = maincorpus.getProperty("id").getQualifiedName(); |
|
624 |
int first_ids[] = CQPSearchEngine.getCqiClient().str2Id(qid, new String[] {id}); //$NON-NLS-1$ |
|
624 | 625 |
|
625 | 626 |
if (first_ids.length == 0) return; |
626 | 627 |
int first_id = first_ids[0]; |
... | ... | |
629 | 630 |
int last_ids[] = null; |
630 | 631 |
if (next != null && next != page) { |
631 | 632 |
String next_id = next.getWordId(); |
632 |
last_ids = CQPSearchEngine.getCqiClient().str2Id(maincorpus.getProperty("id").getQualifiedName(), new String[] {next_id}); //$NON-NLS-1$
|
|
633 |
last_ids = CQPSearchEngine.getCqiClient().str2Id(qid, new String[] {next_id}); //$NON-NLS-1$
|
|
633 | 634 |
} |
634 | 635 |
|
635 |
int first_pos = CQPSearchEngine.getCqiClient().id2Cpos(maincorpus.getProperty("id").getQualifiedName(), first_id)[0];
|
|
636 |
int first_pos = CQPSearchEngine.getCqiClient().id2Cpos(qid, first_id)[0];
|
|
636 | 637 |
int last_pos = Integer.MAX_VALUE; |
637 | 638 |
if (last_ids != null && last_ids.length > 0) { |
638 |
last_pos = CQPSearchEngine.getCqiClient().id2Cpos(maincorpus.getProperty("id").getQualifiedName(), last_ids[0])[0];
|
|
639 |
last_pos = CQPSearchEngine.getCqiClient().id2Cpos(qid, last_ids[0])[0];
|
|
639 | 640 |
} |
640 | 641 |
|
641 | 642 |
int n2 = 0; |
Formats disponibles : Unified diff