diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-12-13 15:50:27 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-12-13 15:50:27 +0000 |
commit | 85ab37aed400243314801028e6a7b32a52d53670 (patch) | |
tree | f3d6f941a95c0cd4443f1db910390e58f2bee8be /java/src/IceGridGUI/ApplicationPane.java | |
parent | - Updating makewindist.py and component files to sync with changes in (diff) | |
download | ice-85ab37aed400243314801028e6a7b32a52d53670.tar.bz2 ice-85ab37aed400243314801028e6a7b32a52d53670.tar.xz ice-85ab37aed400243314801028e6a7b32a52d53670.zip |
Fixed bug #1611
Diffstat (limited to 'java/src/IceGridGUI/ApplicationPane.java')
-rwxr-xr-x | java/src/IceGridGUI/ApplicationPane.java | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/java/src/IceGridGUI/ApplicationPane.java b/java/src/IceGridGUI/ApplicationPane.java index bb57e18c2d1..21762f500f7 100755 --- a/java/src/IceGridGUI/ApplicationPane.java +++ b/java/src/IceGridGUI/ApplicationPane.java @@ -73,11 +73,6 @@ public class ApplicationPane extends JSplitPane implements Tab { if(_currentNode != null) { - if(_currentEditor != null) - { - _currentEditor.save(true); - } - _currentEditor = _currentNode.getEditor(); if(_root.getCoordinator().getCurrentTab() == this) { @@ -231,6 +226,7 @@ public class ApplicationPane extends JSplitPane implements Tab } _root = newRoot; + _root.setPane(this); // // Tree display @@ -299,6 +295,18 @@ public class ApplicationPane extends JSplitPane implements Tab return true; } + public boolean applyUpdates(boolean refresh) + { + if(_currentEditor == null) + { + return true; + } + else + { + return _currentEditor.save(refresh); + } + } + private void registerAction(Coordinator c, int index) { Action action = c.getActionsForMenu().get(index); |