summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/ApplicationPane.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/IceGridGUI/ApplicationPane.java')
-rwxr-xr-xjava/src/IceGridGUI/ApplicationPane.java17
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)