diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-10-11 22:07:52 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-10-11 22:07:52 +0000 |
commit | 3498de4cc662bf616f1e9c55fc93a66820555f0f (patch) | |
tree | f10979e753877b27e4e8b1fc20ab459e92cf020f /java/src/IceGrid/TreeNode/CommonBaseI.java | |
parent | Ability to edit/copy applications (diff) | |
download | ice-3498de4cc662bf616f1e9c55fc93a66820555f0f.tar.bz2 ice-3498de4cc662bf616f1e9c55fc93a66820555f0f.tar.xz ice-3498de4cc662bf616f1e9c55fc93a66820555f0f.zip |
Cleanup + application destruction
Diffstat (limited to 'java/src/IceGrid/TreeNode/CommonBaseI.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/CommonBaseI.java | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/java/src/IceGrid/TreeNode/CommonBaseI.java b/java/src/IceGrid/TreeNode/CommonBaseI.java index 07c24dcf767..19ad6087228 100755 --- a/java/src/IceGrid/TreeNode/CommonBaseI.java +++ b/java/src/IceGrid/TreeNode/CommonBaseI.java @@ -230,7 +230,14 @@ abstract class CommonBaseI implements CommonBase TreePath parentPath = getParent().getPath();
if(destroy())
{
- _model.setSelectionPath(parentPath);
+ if(parentPath.getPathCount() > 1)
+ {
+ _model.setSelectionPath(parentPath);
+ }
+ else
+ {
+ // TODO: show splash
+ }
}
}
public void substituteVars()
@@ -365,18 +372,6 @@ abstract class CommonBaseI implements CommonBase }
}
- protected CommonBaseI(CommonBaseI o)
- {
- //
- // Not attached to any tree yet
- //
- _path = null;
- _parent = null;
-
- _id = o._id;
- _model = o._model;
- }
-
public Application getApplication()
{
if(_path == null || _path.getPathCount() < 2)
|