diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-12-05 21:41:56 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-12-05 21:41:56 +0000 |
commit | 32ce352f077d3be34105d4645bfd8ddc4572c45c (patch) | |
tree | 5854cc9d4bcdaf4c479eb85aa21d9e4656458e65 /java/src/IceGridGUI/ApplicationPane.java | |
parent | Fixed compile errors (diff) | |
download | ice-32ce352f077d3be34105d4645bfd8ddc4572c45c.tar.bz2 ice-32ce352f077d3be34105d4645bfd8ddc4572c45c.tar.xz ice-32ce352f077d3be34105d4645bfd8ddc4572c45c.zip |
Fix for bug #1574
Diffstat (limited to 'java/src/IceGridGUI/ApplicationPane.java')
-rwxr-xr-x | java/src/IceGridGUI/ApplicationPane.java | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/java/src/IceGridGUI/ApplicationPane.java b/java/src/IceGridGUI/ApplicationPane.java index 6827accb31e..bb57e18c2d1 100755 --- a/java/src/IceGridGUI/ApplicationPane.java +++ b/java/src/IceGridGUI/ApplicationPane.java @@ -71,10 +71,13 @@ public class ApplicationPane extends JSplitPane implements Tab public void refresh() { - _root.cancelEdit(); - if(_currentNode != null) { + if(_currentEditor != null) + { + _currentEditor.save(true); + } + _currentEditor = _currentNode.getEditor(); if(_root.getCoordinator().getCurrentTab() == this) { @@ -123,7 +126,14 @@ public class ApplicationPane extends JSplitPane implements Tab } else { - refresh(); + _currentEditor = _currentNode.getEditor(); + if(_root.getCoordinator().getCurrentTab() == this) + { + // + // Refresh actions as well + // + _root.getCoordinator().showActions(_currentNode); + } } } @@ -326,7 +336,6 @@ public class ApplicationPane extends JSplitPane implements Tab private void showCurrentNode() { - _root.cancelEdit(); _root.getCoordinator().showActions(_currentNode); if(_currentNode == null) |