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.java28
1 files changed, 17 insertions, 11 deletions
diff --git a/java/src/IceGridGUI/ApplicationPane.java b/java/src/IceGridGUI/ApplicationPane.java
index 3ef7710ab51..0b0abc2e540 100755
--- a/java/src/IceGridGUI/ApplicationPane.java
+++ b/java/src/IceGridGUI/ApplicationPane.java
@@ -70,6 +70,23 @@ public class ApplicationPane extends JSplitPane implements Tab
c.showActions(_currentNode);
}
+ public void refresh()
+ {
+ _root.cancelEdit();
+
+ if(_currentNode != null)
+ {
+ _currentEditor = _currentNode.getEditor();
+ if(_root.getCoordinator().getCurrentTab() == this)
+ {
+ //
+ // Refresh actions as well
+ //
+ _root.getCoordinator().showActions(_currentNode);
+ }
+ }
+ }
+
public void showNode(TreeNodeBase node)
{
TreeNode newNode = (TreeNode)node;
@@ -111,17 +128,6 @@ public class ApplicationPane extends JSplitPane implements Tab
}
}
- public void refresh()
- {
- _root.cancelEdit();
-
- if(_currentNode != null)
- {
- _root.getCoordinator().showActions(_currentNode);
- _currentEditor = _currentNode.getEditor();
- }
- }
-
public void back()
{
TreeNode previousNode = null;