Révision 577
tmp/org.txm.ca.core/src/org/txm/ca/core/functions/CA.java (revision 577) | ||
---|---|---|
673 | 673 |
|
674 | 674 |
@Override |
675 | 675 |
public String getDetails() { |
676 |
return "Fmin = " + this.getLexicalTable().getFmin();
|
|
676 |
return "Fmin = " + this.getLexicalTable().getFMin();
|
|
677 | 677 |
} |
678 | 678 |
|
679 | 679 |
@Override |
tmp/org.txm.lexicaltable.rcp/src/org/txm/lexicaltable/rcp/editors/LexicalTableEditor.java (revision 577) | ||
---|---|---|
426 | 426 |
public void refreshInfos() { |
427 | 427 |
try { |
428 | 428 |
this.setContentDescription(TXMCoreMessages.T + lexicalTable.getData().getTotal() + TXMCoreMessages.V + lexicalTable.getData().getNRows() |
429 |
+ TXMCoreMessages.FMIN_2 + lexicalTable.getData().getFmin() + TXMCoreMessages.FMAX_2 + lexicalTable.getData().getFmax());
|
|
429 |
+ TXMCoreMessages.FMIN_2 + lexicalTable.getData().getFMin() + TXMCoreMessages.FMAX_2 + lexicalTable.getData().getFMax());
|
|
430 | 430 |
} catch (Exception e3) { |
431 | 431 |
// TODO Auto-generated catch block |
432 | 432 |
org.txm.rcp.utils.Logger.printStackTrace(e3); |
... | ... | |
618 | 618 |
nLinesSpinner.setMinimum(1); |
619 | 619 |
nLinesSpinner.setMaximum(lexicalTable.getData().getNRows()); |
620 | 620 |
nLinesSpinner.setSelection(lexicalTable.getData().getNRows()); |
621 |
minFreqSpinner.setMinimum(lexicalTable.getData().getFmin());
|
|
622 |
minFreqSpinner.setMaximum(lexicalTable.getData().getFmax());
|
|
621 |
minFreqSpinner.setMinimum(lexicalTable.getData().getFMin());
|
|
622 |
minFreqSpinner.setMaximum(lexicalTable.getData().getFMax());
|
|
623 | 623 |
|
624 | 624 |
this.refreshTable(); |
625 | 625 |
this.refreshInfos(); |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditorPart.java (revision 577) | ||
---|---|---|
385 | 385 |
IWorkbenchWindow window = TXMWindows.getActiveWindow(); |
386 | 386 |
IWorkbenchPage page = window.getActivePage(); |
387 | 387 |
currentEditor = (TXMEditorPart) page.openEditor(editorInput, editorId, true, IWorkbenchPage.MATCH_INPUT | IWorkbenchPage.MATCH_ID); |
388 |
} catch (Exception e) { |
|
388 |
} |
|
389 |
catch (Exception e) { |
|
389 | 390 |
System.err.println("TXMEditorPart.compute(): could not open editor: " + e.getLocalizedMessage()); |
390 | 391 |
Log.printStackTrace(e); |
391 | 392 |
} |
tmp/org.txm.lexicaltable.core/src/org/txm/lexicaltable/core/functions/LexicalTable.java (revision 577) | ||
---|---|---|
8 | 8 |
import java.util.List; |
9 | 9 |
import java.util.Map; |
10 | 10 |
|
11 |
import org.txm.core.preferences.TXMPreferences; |
|
12 | 11 |
import org.txm.core.results.Parameter; |
13 | 12 |
import org.txm.core.results.TXMParameters; |
14 | 13 |
import org.txm.core.results.TXMResult; |
... | ... | |
43 | 42 |
/** the statengine data object */ |
44 | 43 |
protected ILexicalTable statsData; |
45 | 44 |
|
46 |
|
|
45 |
|
|
47 | 46 |
/** |
48 | 47 |
* The property. |
49 | 48 |
*/ |
... | ... | |
424 | 423 |
* @return the corpus or null if the LexicalTable was build without a Corpus or thiout a Partition (built with a Corpus) |
425 | 424 |
*/ |
426 | 425 |
public Corpus getCorpus() { |
427 |
if (parent instanceof Corpus) return (Corpus)parent; |
|
428 |
if (parent instanceof Partition) return ((Partition)parent).getCorpus(); |
|
429 |
if (parent instanceof Index) return ((Index)parent).getCorpus(); |
|
430 |
else return null; |
|
431 |
// FIXME: prove this above method, it should work, but.... |
|
426 |
if (parent instanceof Corpus) { |
|
427 |
return (Corpus)parent; |
|
428 |
} |
|
429 |
if (parent instanceof Partition) { |
|
430 |
return ((Partition)parent).getCorpus(); |
|
431 |
} |
|
432 |
if (parent instanceof Index) { |
|
433 |
return ((Index)parent).getCorpus(); |
|
434 |
} |
|
435 |
else { |
|
436 |
return null; |
|
437 |
} |
|
438 |
// FIXME: prove and use this above method, it should work, but.... |
|
432 | 439 |
//return this.getFirstCorpusParent(); |
433 | 440 |
} |
434 | 441 |
|
... | ... | |
441 | 448 |
return ""; |
442 | 449 |
} |
443 | 450 |
|
444 |
public int getFmin() {
|
|
445 |
return pfMinFilter;
|
|
451 |
public int getFMin() {
|
|
452 |
return statsData.getFMin();
|
|
446 | 453 |
} |
447 | 454 |
|
448 | 455 |
@Override |
... | ... | |
459 | 466 |
return statsData.getNColumns(); |
460 | 467 |
} |
461 | 468 |
|
469 |
/** |
|
470 |
* Gets the rows count. |
|
471 |
* @return |
|
472 |
*/ |
|
462 | 473 |
public int getNRows() { |
463 | 474 |
return statsData.getNRows(); |
464 | 475 |
} |
... | ... | |
508 | 519 |
strb.append(pProperty.getName()+" "); |
509 | 520 |
} |
510 | 521 |
if (statsData != null) { |
511 |
strb.append(statsData.getFmin() + " / " + this.getNRows());
|
|
522 |
strb.append(this.getFMin() + " / " + this.getNRows());
|
|
512 | 523 |
} |
513 | 524 |
return strb.toString(); |
514 | 525 |
} |
tmp/org.txm.lexicaltable.core/src/org/txm/lexicaltable/core/statsengine/r/data/LexicalTableImpl.java (revision 577) | ||
---|---|---|
359 | 359 |
* @see org.txm.stat.data.LexicalTable#getFmax() |
360 | 360 |
*/ |
361 | 361 |
@Override |
362 |
public int getFmax() {
|
|
362 |
public int getFMax() {
|
|
363 | 363 |
List<Integer> freqs = getFreqs(); |
364 | 364 |
int max = 0; |
365 | 365 |
for (int i : freqs) |
... | ... | |
372 | 372 |
* @see org.txm.stat.data.LexicalTable#getFmin() |
373 | 373 |
*/ |
374 | 374 |
@Override |
375 |
public int getFmin() {
|
|
375 |
public int getFMin() {
|
|
376 | 376 |
List<Integer> freqs = getFreqs(); |
377 | 377 |
int min = 999999; |
378 | 378 |
for (int i : freqs) |
tmp/org.txm.lexicaltable.core/src/org/txm/lexicaltable/core/statsengine/data/ILexicalTable.java (revision 577) | ||
---|---|---|
139 | 139 |
* |
140 | 140 |
* @return the fmin |
141 | 141 |
*/ |
142 |
public abstract int getFmin();
|
|
142 |
public abstract int getFMin();
|
|
143 | 143 |
|
144 | 144 |
/** |
145 | 145 |
* Gets the fmax. |
146 | 146 |
* |
147 | 147 |
* @return the fmax |
148 | 148 |
*/ |
149 |
public abstract int getFmax();
|
|
149 |
public abstract int getFMax();
|
|
150 | 150 |
|
151 | 151 |
/** |
152 | 152 |
* Removes the rows. |
tmp/org.txm.specificities.rcp/src/org/txm/specificities/rcp/editors/SpecificitiesSelectionEditor.java (revision 577) | ||
---|---|---|
75 | 75 |
}); |
76 | 76 |
|
77 | 77 |
|
78 |
|
|
79 |
|
|
80 |
|
|
81 | 78 |
} |
82 | 79 |
|
83 | 80 |
|
Formats disponibles : Unified diff