Révision 3826
TXM/trunk/bundles/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/messages/CooccurrenceUIMessages.java (revision 3826) | ||
---|---|---|
36 | 36 |
public static String cmin; |
37 | 37 |
public static String score_2; |
38 | 38 |
public static String cooccurrent; |
39 |
public static String meanDistance; |
|
39 |
public static String meanDistance; |
|
40 |
|
|
41 |
public static String MilestoneStructuresListCommandSeparated; |
|
40 | 42 |
|
41 | 43 |
public static String wordWindow; |
42 | 44 |
public static String structureWindow; |
TXM/trunk/bundles/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/messages/messages.properties (revision 3826) | ||
---|---|---|
9 | 9 |
maximumLeft=Maximum left |
10 | 10 |
maximumRight=Maximum right |
11 | 11 |
meanDistance=Mean distance |
12 |
MilestoneStructuresListCommandSeparated=Milestone structures list (comma separated) |
|
12 | 13 |
minimumCooccurrencyCountThreshold=Minimum co-frequency of cooccurrents |
13 | 14 |
minimumCooccurrencyScoreThreshold=Minimum score of cooccurrents |
14 | 15 |
minimumFrequencyThresholdOfTheCooccurrent=Minimum frequency of cooccurrents |
TXM/trunk/bundles/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/EmpantWidget.java (revision 3826) | ||
---|---|---|
329 | 329 |
private void loadStructs() { |
330 | 330 |
try { |
331 | 331 |
java.util.List<StructuralUnit> corpusstructuralunits = corpus.getOrderedStructuralUnits(); |
332 |
HashSet<String> suToIgnore = new HashSet<>(Arrays.asList(CooccurrencePreferences.getInstance().getString(CooccurrencePreferences.MILESTONE_STRUCTURES_TO_IGNORE).split(","))); |
|
332 |
HashSet<String> suToIgnore = new HashSet<>(Arrays.asList(CooccurrencePreferences.getInstance().getString(CooccurrencePreferences.MILESTONE_STRUCTURES_TO_IGNORE).split(","))); //$NON-NLS-1$
|
|
333 | 333 |
for (StructuralUnit su : corpusstructuralunits) { |
334 | 334 |
//if (!su.getName().equals("text") && !su.getName().equals("txmcorpus")) { //$NON-NLS-1$ $NON-NLS-2$ |
335 | 335 |
if (!suToIgnore.contains(su.getName())) { //$NON-NLS-1$ $NON-NLS-2$ |
... | ... | |
337 | 337 |
} |
338 | 338 |
} |
339 | 339 |
if (corpusstructuralunits.size() > 0) { |
340 |
int pi = Arrays.binarySearch(structs.getItems(), "p"); |
|
341 |
int si = Arrays.binarySearch(structs.getItems(), "s"); |
|
340 |
int pi = Arrays.binarySearch(structs.getItems(), "p"); //$NON-NLS-1$
|
|
341 |
int si = Arrays.binarySearch(structs.getItems(), "s"); //$NON-NLS-1$
|
|
342 | 342 |
if (pi > 0) { |
343 | 343 |
structs.select(pi); |
344 | 344 |
} else if (si > 0) { |
TXM/trunk/bundles/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/editors/CooccurrencesEditor.java (revision 3826) | ||
---|---|---|
347 | 347 |
|
348 | 348 |
viewer.setLabelProvider(new LineLabelProvider()); |
349 | 349 |
viewer.setContentProvider(new LineContentProvider()); |
350 |
viewer.getTable().setToolTipText(""); |
|
350 |
viewer.getTable().setToolTipText(""); //$NON-NLS-1$
|
|
351 | 351 |
viewer.addPostSelectionChangedListener(new ISelectionChangedListener() { |
352 | 352 |
|
353 | 353 |
@Override |
... | ... | |
554 | 554 |
|
555 | 555 |
Double minScore = 0.0; |
556 | 556 |
try { |
557 |
Double d = Double.parseDouble(this.minScore.getText().replace(",", ".")); |
|
557 |
Double d = Double.parseDouble(this.minScore.getText().replace(",", ".")); //$NON-NLS-1$ //$NON-NLS-2$
|
|
558 | 558 |
minScore = d; |
559 | 559 |
} |
560 | 560 |
catch (Exception e) { |
TXM/trunk/bundles/org.txm.cooccurrence.rcp/src/org/txm/cooccurrence/rcp/preferences/CooccurrencesPreferencePage.java (revision 3826) | ||
---|---|---|
80 | 80 |
IntegerFieldEditor maxrightfield = new IntegerFieldEditor(CooccurrencePreferences.MAX_RIGHT, CooccurrenceUIMessages.maximumRight, getFieldEditorParent()); |
81 | 81 |
maxrightfield.setValidRange(0, 99999); |
82 | 82 |
|
83 |
StringFieldEditor milestonesfield = new StringFieldEditor(CooccurrencePreferences.MILESTONE_STRUCTURES_TO_IGNORE, "Milestone structures list (comma separated)", getFieldEditorParent());
|
|
83 |
StringFieldEditor milestonesfield = new StringFieldEditor(CooccurrencePreferences.MILESTONE_STRUCTURES_TO_IGNORE, CooccurrenceUIMessages.MilestoneStructuresListCommandSeparated, getFieldEditorParent());
|
|
84 | 84 |
|
85 | 85 |
BooleanFieldEditor partiallexicaltablefield = new BooleanFieldEditor(CooccurrencePreferences.PARTIAL_LEXICAL_TABLE, CooccurrenceUIMessages.usePartialLexicalTable, getFieldEditorParent()); |
86 | 86 |
|
Formats disponibles : Unified diff