Révision 556
| tmp/org.txm.lexicaltable.rcp/src/org/txm/lexicaltable/rcp/editors/LexicalTableEditor.java (revision 556) | ||
|---|---|---|
| 482 | 482 |
// Refresh and pack the columns |
| 483 | 483 |
TXMEditorPart.packColumns(this.viewer); |
| 484 | 484 |
|
| 485 |
updateEditorFromResult(); |
|
| 485 |
updateEditorFromResult(false);
|
|
| 486 | 486 |
|
| 487 | 487 |
this.viewer.getTable().deselectAll(); |
| 488 | 488 |
this.viewer.getTable().setFocus(); |
| ... | ... | |
| 662 | 662 |
|
| 663 | 663 |
|
| 664 | 664 |
@Override |
| 665 |
public void updateEditorFromResult() {
|
|
| 666 |
super.updateEditorFromResult(); |
|
| 665 |
public void updateEditorFromResult(boolean update) {
|
|
| 666 |
super.updateEditorFromResult(update);
|
|
| 667 | 667 |
nLinesSpinner.setMinimum(1); |
| 668 | 668 |
nLinesSpinner.setMaximum(lexicalTable.getData().getNRows()); |
| 669 | 669 |
nLinesSpinner.setSelection(lexicalTable.getData().getNRows()); |
| tmp/org.txm.rcp/src/main/java/org/txm/rcp/editors/TXMEditorPart.java (revision 556) | ||
|---|---|---|
| 476 | 476 |
Log.info("TXMEditorPart.refresh(): update = " + update);
|
| 477 | 477 |
|
| 478 | 478 |
this.firePropertyChange(IEditorPart.PROP_DIRTY); |
| 479 |
this.updateEditorFromResult(); |
|
| 479 |
this.updateEditorFromResult(update);
|
|
| 480 | 480 |
CorporaView.refreshObject(this); |
| 481 | 481 |
} |
| 482 | 482 |
|
| ... | ... | |
| 490 | 490 |
* Synchronizes the editor with the result. |
| 491 | 491 |
* Dedicated to dynamically change the editor informations (as the part name) from the stored result. |
| 492 | 492 |
*/ |
| 493 |
public void updateEditorFromResult() {
|
|
| 493 |
public void updateEditorFromResult(boolean update) {
|
|
| 494 | 494 |
try {
|
| 495 | 495 |
if (this.getResultData() != null) {
|
| 496 | 496 |
this.setPartName(this.getResultData().getName()); |
Formats disponibles : Unified diff