Révision 3390
TXM/trunk/org.txm.edition.rcp/src/org/txm/edition/rcp/handlers/BackToText.java (revision 3390) | ||
---|---|---|
95 | 95 |
@Override |
96 | 96 |
public Object execute(ExecutionEvent event) throws ExecutionException { |
97 | 97 |
|
98 |
String wordid = event |
|
99 |
.getParameter("org.txm.edition.rcp.handlers.BackToText.wordid"); |
|
100 |
String textid = event |
|
101 |
.getParameter("org.txm.edition.rcp.handlers.BackToText.textid"); |
|
102 |
String editionid = event |
|
103 |
.getParameter("org.txm.edition.rcp.handlers.BackToText.editionid"); |
|
104 |
String corpusid = event |
|
105 |
.getParameter("org.txm.edition.rcp.handlers.BackToText.corpusid"); |
|
98 |
String wordid = event.getParameter("org.txm.edition.rcp.handlers.BackToText.wordid"); |
|
99 |
String textid = event.getParameter("org.txm.edition.rcp.handlers.BackToText.textid"); |
|
100 |
String editionid = event.getParameter("org.txm.edition.rcp.handlers.BackToText.editionid"); |
|
101 |
String corpusid = event.getParameter("org.txm.edition.rcp.handlers.BackToText.corpusid"); |
|
106 | 102 |
if (corpusid != null) { // minimal parameter is the corpus id |
107 | 103 |
try { |
108 | 104 |
IWorkbenchWindow wb = HandlerUtil.getActiveWorkbenchWindow(event); |
... | ... | |
318 | 314 |
org.txm.utils.logger.Log.printStackTrace(e1); |
319 | 315 |
return false; |
320 | 316 |
} |
321 |
Log.fine(NLS.bind("Project id {0} Corpus (Base) id {1} Text id {2}", //$NON-NLS-1$ |
|
322 |
new Object[] { projectid, baseid, textid })); |
|
317 |
Log.fine(NLS.bind("Project id {0} Corpus (Base) id {1} Text id {2}", new Object[] { projectid, baseid, textid })); //$NON-NLS-1$ |
|
323 | 318 |
|
324 | 319 |
otherWordIDs.removeAll(lineids); // remove the pivot from others words |
325 | 320 |
|
TXM/trunk/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/query/Match.java (revision 3390) | ||
---|---|---|
187 | 187 |
* the cqi client exception |
188 | 188 |
*/ |
189 | 189 |
public static List<String> getValuesForProperty(Property property, org.txm.objects.Match match) throws CqiClientException { |
190 |
int[] starts = new int[1]; |
|
191 |
starts[0] = match.getStart(); |
|
190 |
int[] starts = new int[match.size()]; |
|
191 |
for (int i = 0 ; i < match.size() ; i++) starts[i] = match.getStart()+i; |
|
192 |
|
|
192 | 193 |
return getValuesForProperty(property, starts); |
193 | 194 |
} |
194 | 195 |
|
Formats disponibles : Unified diff