diff options
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); |