Révision 1933
tmp/org.txm.core/src/java/org/txm/core/results/TXMResult.java (revision 1933) | ||
---|---|---|
2538 | 2538 |
|
2539 | 2539 |
/** |
2540 | 2540 |
* Sets the user defined persistable state of the result. |
2541 |
* Propagates persistence to parent and non-persistence to the children if needed. |
|
2541 | 2542 |
* |
2542 |
* propagate persistence to parent if necessary |
|
2543 |
* |
|
2544 | 2543 |
* @param userPersistable the state to set |
2545 | 2544 |
*/ |
2546 | 2545 |
public void setUserPersistable(boolean userPersistable) { |
... | ... | |
2555 | 2554 |
} |
2556 | 2555 |
|
2557 | 2556 |
// directly save and flush the preference |
2558 |
try {
|
|
2559 |
if (this.isUserPersistable()) {
|
|
2560 |
this.autoSaveParametersFromAnnotations();
|
|
2561 |
this.saveParameters();
|
|
2562 |
TXMPreferences.flush(this);
|
|
2563 |
}
|
|
2564 |
}
|
|
2565 |
catch (Exception e) {
|
|
2566 |
// TODO Auto-generated catch block
|
|
2567 |
e.printStackTrace();
|
|
2568 |
}
|
|
2557 |
try {
|
|
2558 |
if (this.isUserPersistable()) {
|
|
2559 |
this.autoSaveParametersFromAnnotations();
|
|
2560 |
this.saveParameters();
|
|
2561 |
TXMPreferences.flush(this);
|
|
2562 |
}
|
|
2563 |
}
|
|
2564 |
catch (Exception e) {
|
|
2565 |
// TODO Auto-generated catch block
|
|
2566 |
e.printStackTrace();
|
|
2567 |
}
|
|
2569 | 2568 |
// Debug |
2570 | 2569 |
// Log.finest("TXMResult.setUserPersistable(): " + userPersistable); |
2571 | 2570 |
} |
Formats disponibles : Unified diff