Révision 1034
tmp/org.txm.internalview.core/src/org/txm/internalview/core/functions/InternalView.java (revision 1034) | ||
---|---|---|
9 | 9 |
import java.util.List; |
10 | 10 |
|
11 | 11 |
import org.apache.commons.lang.StringUtils; |
12 |
import org.txm.core.preferences.TXMPreferences; |
|
12 | 13 |
import org.txm.core.results.Parameter; |
13 | 14 |
import org.txm.core.results.TXMParameters; |
14 | 15 |
import org.txm.core.results.TXMResult; |
... | ... | |
48 | 49 |
/** |
49 | 50 |
* Structural unit to explore. |
50 | 51 |
*/ |
51 |
@Parameter(key=InternalViewPreferences.STRUCTURAL_UNIT)
|
|
52 |
@Parameter(key=TXMPreferences.STRUCTURAL_UNIT)
|
|
52 | 53 |
protected StructuralUnit structuralUnit; |
53 | 54 |
|
54 | 55 |
/** |
55 | 56 |
* Word properties to display. |
56 | 57 |
*/ |
57 |
@Parameter(key=InternalViewPreferences.UNIT_PROPERTIES)
|
|
58 |
@Parameter(key=TXMPreferences.UNIT_PROPERTIES)
|
|
58 | 59 |
protected List<WordProperty> wordProperties; |
59 | 60 |
|
60 | 61 |
/** |
61 | 62 |
* Structural units to display. |
62 | 63 |
*/ |
63 |
@Parameter(key=InternalViewPreferences.STRUCTURAL_UNIT_PROPERTIES)
|
|
64 |
@Parameter(key=TXMPreferences.STRUCTURAL_UNIT_PROPERTIES)
|
|
64 | 65 |
protected List<StructuralUnitProperty> structuralUnitsProperties; |
65 | 66 |
|
66 | 67 |
|
... | ... | |
85 | 86 |
@Override |
86 | 87 |
public boolean loadParameters() throws Exception { |
87 | 88 |
try { |
88 |
this.structuralUnit = this.getCorpus().getStructuralUnit(this.getStringParameterValue(InternalViewPreferences.STRUCTURAL_UNIT));
|
|
89 |
this.wordProperties = (List<WordProperty>) Property.stringToProperties(this.getCorpus(), this.getStringParameterValue(InternalViewPreferences.UNIT_PROPERTIES));
|
|
90 |
this.structuralUnitsProperties = StructuralUnitProperty.stringToProperties(this.getCorpus(), this.getStringParameterValue(InternalViewPreferences.STRUCTURAL_UNIT_PROPERTIES));
|
|
89 |
this.structuralUnit = this.getCorpus().getStructuralUnit(this.getStringParameterValue(TXMPreferences.STRUCTURAL_UNIT));
|
|
90 |
this.wordProperties = (List<WordProperty>) Property.stringToProperties(this.getCorpus(), this.getStringParameterValue(TXMPreferences.UNIT_PROPERTIES));
|
|
91 |
this.structuralUnitsProperties = StructuralUnitProperty.stringToProperties(this.getCorpus(), this.getStringParameterValue(TXMPreferences.STRUCTURAL_UNIT_PROPERTIES));
|
|
91 | 92 |
} catch (CqiClientException e) { |
92 | 93 |
Log.printStackTrace(e); |
93 | 94 |
return false; |
Formats disponibles : Unified diff