Révision 1139
tmp/org.txm.core/src/java/org/txm/objects/Edition.java (revision 1139) | ||
---|---|---|
321 | 321 |
*/ |
322 | 322 |
@Override |
323 | 323 |
public String toString() { |
324 |
return "Edition [name="+pName+" index=" + pIndex + ", \npages=" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
|
325 |
+ pages.size() + "]"; //$NON-NLS-1$ |
|
324 |
try { |
|
325 |
return "Edition [name="+pName+" index=" + pIndex + ", \npages=" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
|
326 |
+ pages.size() + "]"; //$NON-NLS-1$ |
|
327 |
} |
|
328 |
catch (Exception e) { |
|
329 |
return "Edition"; |
|
330 |
} |
|
326 | 331 |
} |
327 | 332 |
|
328 | 333 |
public static void main(String[] args) { |
tmp/org.txm.searchengine.cqp.rcp/src/org/txm/searchengine/cqp/rcp/adapters/CorpusAdapterFactory.java (revision 1139) | ||
---|---|---|
3 | 3 |
|
4 | 4 |
import java.util.ArrayList; |
5 | 5 |
import java.util.Collections; |
6 |
import java.util.List; |
|
6 | 7 |
|
7 | 8 |
import org.eclipse.jface.resource.ImageDescriptor; |
8 | 9 |
import org.eclipse.ui.model.IWorkbenchAdapter; |
... | ... | |
14 | 15 |
import org.txm.rcp.adapters.TXMResultAdapter; |
15 | 16 |
import org.txm.rcp.adapters.TXMResultAdapterFactory; |
16 | 17 |
import org.txm.searchengine.cqp.corpus.CQPCorpus; |
17 |
import org.txm.searchengine.cqp.corpus.CorpusManager; |
|
18 | 18 |
import org.txm.searchengine.cqp.corpus.Partition; |
19 |
import org.txm.searchengine.cqp.corpus.Subcorpus; |
|
20 | 19 |
|
21 | 20 |
|
22 | 21 |
/** |
... | ... | |
35 | 34 |
return new TXMResultAdapter() { |
36 | 35 |
@Override |
37 | 36 |
public Object[] getChildren(Object corpus) { |
38 |
ArrayList<TXMResult> allChildren = ((CQPCorpus) corpus).getChildren();
|
|
37 |
List<TXMResult> allChildren = ((CQPCorpus) corpus).getChildren(); |
|
39 | 38 |
|
40 | 39 |
ArrayList partitions = new ArrayList(); |
41 | 40 |
ArrayList subcorporas = new ArrayList(); |
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/CQPCorpus.java (revision 1139) | ||
---|---|---|
1053 | 1053 |
return cql_limit_query; |
1054 | 1054 |
} |
1055 | 1055 |
|
1056 |
public ArrayList<TXMResult> clearResults() {
|
|
1057 |
ArrayList<TXMResult> old = this.children;
|
|
1056 |
public List<TXMResult> clearResults() { |
|
1057 |
List<TXMResult> old = this.children; |
|
1058 | 1058 |
this.children = new ArrayList<TXMResult>(); |
1059 | 1059 |
return old; |
1060 | 1060 |
} |
tmp/org.txm.statsengine.r.rcp/src/org/txm/statsengine/r/rcp/views/RVariablesView.java (revision 1139) | ||
---|---|---|
198 | 198 |
* @param results the results |
199 | 199 |
* @return true, if successful |
200 | 200 |
*/ |
201 |
private boolean hasSymbol(ArrayList<TXMResult> results) {
|
|
201 |
private boolean hasSymbol(List<TXMResult> results) { |
|
202 | 202 |
String symbol = null; |
203 | 203 |
for(Object rez : results) |
204 | 204 |
{ |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/views/corpora/CorporaView.java (revision 1139) | ||
---|---|---|
27 | 27 |
// |
28 | 28 |
package org.txm.rcp.views.corpora; |
29 | 29 |
|
30 |
import java.util.ArrayList; |
|
31 | 30 |
import java.util.HashMap; |
32 | 31 |
import java.util.List; |
33 | 32 |
|
... | ... | |
53 | 52 |
import org.eclipse.swt.events.SelectionEvent; |
54 | 53 |
import org.eclipse.swt.events.SelectionListener; |
55 | 54 |
import org.eclipse.swt.graphics.Image; |
56 |
import org.eclipse.swt.graphics.ImageData; |
|
57 | 55 |
import org.eclipse.swt.widgets.Composite; |
58 | 56 |
import org.eclipse.swt.widgets.Display; |
59 | 57 |
import org.eclipse.swt.widgets.Event; |
... | ... | |
68 | 66 |
import org.eclipse.ui.contexts.IContextService; |
69 | 67 |
import org.eclipse.ui.model.WorkbenchLabelProvider; |
70 | 68 |
import org.eclipse.ui.part.ViewPart; |
71 |
import org.eclipse.ui.plugin.AbstractUIPlugin; |
|
72 | 69 |
import org.txm.Toolbox; |
73 | 70 |
import org.txm.core.results.TXMResult; |
74 | 71 |
import org.txm.objects.Project; |
... | ... | |
494 | 491 |
* Selects some items. |
495 | 492 |
* @param arrayList |
496 | 493 |
*/ |
497 |
public static void select(ArrayList<?> arrayList) {
|
|
494 |
public static void select(List<?> arrayList) { |
|
498 | 495 |
CorporaView corporaView = openView(); |
499 | 496 |
if (corporaView != null) { |
500 | 497 |
StructuredSelection selection = new StructuredSelection(arrayList); |
Formats disponibles : Unified diff