diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-09-09 03:02:53 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-09-09 03:02:53 +0000 |
commit | 357aa0d72c8a2f676fa5566fb6f5fe4faabcffc9 (patch) | |
tree | 9707946f26ea39a50e74a3c14e37c38122a3a1a9 /java/src/IceGrid/TreeNode/Root.java | |
parent | fixed another ubg. (diff) | |
download | ice-357aa0d72c8a2f676fa5566fb6f5fe4faabcffc9.tar.bz2 ice-357aa0d72c8a2f676fa5566fb6f5fe4faabcffc9.tar.xz ice-357aa0d72c8a2f676fa5566fb6f5fe4faabcffc9.zip |
First saving support
Diffstat (limited to 'java/src/IceGrid/TreeNode/Root.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/Root.java | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/java/src/IceGrid/TreeNode/Root.java b/java/src/IceGrid/TreeNode/Root.java index 1a5e8a970cd..5aad57b5880 100755 --- a/java/src/IceGrid/TreeNode/Root.java +++ b/java/src/IceGrid/TreeNode/Root.java @@ -18,7 +18,7 @@ import IceGrid.ServerState; import IceGrid.TreeModelI;
-public class Root extends EditableParent
+public class Root extends Parent
{
static class DynamicInfo
{
@@ -36,7 +36,7 @@ public class Root extends EditableParent public Root(Model model)
{
- super(false, "Applications", model, true);
+ super("Applications", model, true);
}
public void init(java.util.List descriptors)
@@ -49,7 +49,7 @@ public class Root extends EditableParent ApplicationDescriptor descriptor = (ApplicationDescriptor)p.next();
try
{
- Application child = new Application(descriptor, _model);
+ Application child = new Application(false, descriptor, _model);
addChild(child);
child.setParent(this);
}
@@ -78,7 +78,7 @@ public class Root extends EditableParent {
try
{
- Application child = new Application(desc, _model);
+ Application child = new Application(false, desc, _model);
child.setParent(this);
addChild(child, true);
}
@@ -217,13 +217,11 @@ public class Root extends EditableParent void restore(Application copy)
{
- //
- // TODO: fire event or not?
- //
removeChild(copy.getId(), true);
try
{
addChild(copy, true);
+ copy.setParent(this);
}
catch(DuplicateIdException e)
{
|