Révision 1183
tmp/org.txm.index.core/src/org/txm/index/core/functions/Index.java (revision 1183) | ||
---|---|---|
171 | 171 |
protected boolean _compute() throws Exception { |
172 | 172 |
|
173 | 173 |
|
174 |
// lines.clear();
|
|
175 |
// counts.clear();
|
|
176 |
// currentpartid = 0;
|
|
177 |
// nTotalTokens = 0;
|
|
174 |
lines.clear(); |
|
175 |
counts.clear(); |
|
176 |
currentpartid = 0; |
|
177 |
nTotalTokens = 0; |
|
178 | 178 |
// FIXME: tests to not recompute all on fmax, vmax, etc. changes |
179 | 179 |
// It works but the problem is the cut() method that really cut the lines rather than doing getLines() that could filtering and returns only the lines between fmin/fmax |
180 | 180 |
// if(this.hasParameterChanged(TXMPreferences.QUERY) || this.hasParameterChanged(TXMPreferences.UNIT_PROPERTIES)) { |
tmp/org.txm.rcp/src/main/java/org/txm/rcp/handlers/results/SetTXMResultPersistentState.java (revision 1183) | ||
---|---|---|
72 | 72 |
TXMResult result = ((TXMResult)object); |
73 | 73 |
result.swapUserPersistableState(); |
74 | 74 |
|
75 |
try { |
|
76 |
if(result.isUserPersistable()) { |
|
77 |
result.autoSaveParametersFromAnnotations(); |
|
78 |
result.saveParameters(); |
|
79 |
TXMPreferences.flush(result); |
|
80 |
} |
|
81 |
} |
|
82 |
catch (Exception e) { |
|
83 |
// TODO Auto-generated catch block |
|
84 |
e.printStackTrace(); |
|
85 |
} |
|
86 |
|
|
75 | 87 |
CorporaView.refresh(); |
76 | 88 |
return null; |
77 | 89 |
} |
Formats disponibles : Unified diff