Révision 3625
TXM/trunk/org.txm.internalview.core/src/org/txm/internalview/core/functions/InternalView.java (revision 3625) | ||
---|---|---|
127 | 127 |
} |
128 | 128 |
try { |
129 | 129 |
String str = this.getStringParameterValue(TXMPreferences.UNIT_PROPERTIES); |
130 |
this.pWordProperties = (List<WordProperty>) WordProperty.stringToProperties(this.getCorpus(), str); |
|
130 |
if ("*".equals(str)) { |
|
131 |
this.pWordProperties = new ArrayList<WordProperty>(); |
|
132 |
pWordProperties.add(this.getCorpus().getWordProperty()); |
|
133 |
|
|
134 |
for (WordProperty p : this.getCorpus().getOrderedProperties()) { |
|
135 |
if (!pWordProperties.contains(p) && (p.getName().endsWith("lemma") || p.getName().endsWith("pos"))) { |
|
136 |
pWordProperties.add(p); |
|
137 |
} |
|
138 |
} |
|
139 |
} else { |
|
140 |
this.pWordProperties = (List<WordProperty>) WordProperty.stringToProperties(this.getCorpus(), str); |
|
141 |
} |
|
131 | 142 |
} |
132 | 143 |
catch (Exception e2) { |
133 | 144 |
Log.printStackTrace(e2); |
TXM/trunk/org.txm.internalview.core/src/org/txm/internalview/core/preferences/InternalViewPreferences.java (revision 3625) | ||
---|---|---|
33 | 33 |
Preferences preferences = this.getDefaultPreferencesNode(); |
34 | 34 |
|
35 | 35 |
preferences.put(STRUCTURAL_UNIT, ""); |
36 |
preferences.put(UNIT_PROPERTIES, TBXPreferences.DEFAULT_UNIT_PROPERTY);
|
|
36 |
preferences.put(UNIT_PROPERTIES, "*");
|
|
37 | 37 |
preferences.put(STRUCTURAL_UNIT_PROPERTIES, ""); |
38 | 38 |
preferences.putInt(CURRENT_PAGE, 0); |
39 | 39 |
preferences.putInt(N_LINES_PER_PAGE, 100); |
Formats disponibles : Unified diff