Révision 1867
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditor.java (revision 1867) | ||
|---|---|---|
| 189 | 189 |
/** |
| 190 | 190 |
* To store or edit the dirty state of the editor from widget. |
| 191 | 191 |
*/ |
| 192 |
protected boolean dirty; |
|
| 193 |
private boolean locked; |
|
| 192 |
protected boolean dirty = true;
|
|
| 193 |
private boolean locked = false;
|
|
| 194 | 194 |
|
| 195 | 195 |
|
| 196 | 196 |
/** |
| ... | ... | |
| 471 | 471 |
createPartControlDoneSucessfully = false; |
| 472 | 472 |
} |
| 473 | 473 |
|
| 474 |
this.setDirty(false);
|
|
| 474 |
this.setDirty(this.dirty);
|
|
| 475 | 475 |
|
| 476 | 476 |
//this.getContainer().setRedraw(true); |
| 477 | 477 |
} |
| ... | ... | |
| 1046 | 1046 |
|
| 1047 | 1047 |
this.getContainer().setRedraw(true); |
| 1048 | 1048 |
|
| 1049 |
this.setDirty(false);
|
|
| 1049 |
this.setDirty(getResult().isDirty());
|
|
| 1050 | 1050 |
|
| 1051 | 1051 |
// FIXME: update all open editors of the children result but also of the result itself |
| 1052 | 1052 |
// FIXME: debug |
Formats disponibles : Unified diff