Révision 1932
| tmp/org.txm.ca.core/src/org/txm/ca/core/functions/CA.java (revision 1932) | ||
|---|---|---|
| 41 | 41 |
import org.txm.ca.core.statsengine.r.functions.ICA; |
| 42 | 42 |
import org.txm.chartsengine.core.results.ChartResult; |
| 43 | 43 |
import org.txm.core.messages.TXMCoreMessages; |
| 44 |
import org.txm.core.preferences.TXMPreferences; |
|
| 44 | 45 |
import org.txm.core.results.Parameter; |
| 45 | 46 |
import org.txm.core.results.TXMParameters; |
| 47 |
import org.txm.core.results.TXMResult; |
|
| 46 | 48 |
import org.txm.lexicaltable.core.functions.LexicalTable; |
| 47 | 49 |
import org.txm.searchengine.cqp.corpus.Property; |
| 48 | 50 |
import org.txm.statsengine.core.StatException; |
| ... | ... | |
| 1019 | 1021 |
return (LexicalTable)this.parent; |
| 1020 | 1022 |
} |
| 1021 | 1023 |
|
| 1024 |
// FIXME: SJ: fix to save the eigenvalues when the CA is saved |
|
| 1025 |
// FIXME: SJ: temporary fix to save the Eignevalues. This method should be removed when the CAEditor will be managed in a better way |
|
| 1026 |
public void setUserPersistable(boolean userPersistable) {
|
|
| 1027 |
super.setUserPersistable(userPersistable); // can not call super method, lead to infinite loop |
|
| 1028 |
|
|
| 1029 |
// deep persistence |
|
| 1030 |
for (TXMResult child : getChildren()) {
|
|
| 1031 |
child.setUserPersistable(userPersistable); |
|
| 1032 |
} |
|
| 1033 |
} |
|
| 1022 | 1034 |
|
| 1023 | 1035 |
|
| 1024 | 1036 |
} |
| tmp/org.txm.ca.core/src/org/txm/ca/core/functions/Eigenvalues.java (revision 1932) | ||
|---|---|---|
| 7 | 7 |
|
| 8 | 8 |
import org.txm.ca.core.messages.CACoreMessages; |
| 9 | 9 |
import org.txm.chartsengine.core.results.ChartResult; |
| 10 |
import org.txm.core.preferences.TXMPreferences; |
|
| 10 | 11 |
import org.txm.core.results.TXMParameters; |
| 11 | 12 |
import org.txm.core.results.TXMResult; |
| 12 | 13 |
|
| ... | ... | |
| 114 | 115 |
return CACoreMessages.eigenvalues; |
| 115 | 116 |
} |
| 116 | 117 |
|
| 118 |
|
|
| 119 |
// FIXME: SJ: fix to save the eigenvalues when the CA is saved |
|
| 120 |
// FIXME: SJ: temporary fix to save the Eignevalues. This method should be removed when the CAEditor will be managed in a better way |
|
| 121 |
public void setUserPersistable(boolean userPersistable) {
|
|
| 122 |
this.userPersistable = userPersistable; |
|
| 123 |
|
|
| 124 |
// directly save and flush the preference |
|
| 125 |
try {
|
|
| 126 |
if (this.isUserPersistable()) {
|
|
| 127 |
this.autoSaveParametersFromAnnotations(); |
|
| 128 |
this.saveParameters(); |
|
| 129 |
TXMPreferences.flush(this); |
|
| 130 |
} |
|
| 131 |
} |
|
| 132 |
catch (Exception e) {
|
|
| 133 |
// TODO Auto-generated catch block |
|
| 134 |
e.printStackTrace(); |
|
| 135 |
} |
|
| 136 |
} |
|
| 137 |
|
|
| 117 | 138 |
} |
Formats disponibles : Unified diff