diff options
author | Bernard Normier <bernard@zeroc.com> | 2005-08-31 18:03:10 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2005-08-31 18:03:10 +0000 |
commit | 61522ec8348235db993a23ba9267c608dd64c965 (patch) | |
tree | 851b8fda0d17fc0fd34954f496a4fc049b6f8ba6 /java/src/IceGrid/TreeNode/CommonBaseI.java | |
parent | minor edits (diff) | |
download | ice-61522ec8348235db993a23ba9267c608dd64c965.tar.bz2 ice-61522ec8348235db993a23ba9267c608dd64c965.tar.xz ice-61522ec8348235db993a23ba9267c608dd64c965.zip |
Fixed build
Diffstat (limited to 'java/src/IceGrid/TreeNode/CommonBaseI.java')
-rwxr-xr-x | java/src/IceGrid/TreeNode/CommonBaseI.java | 44 |
1 files changed, 42 insertions, 2 deletions
diff --git a/java/src/IceGrid/TreeNode/CommonBaseI.java b/java/src/IceGrid/TreeNode/CommonBaseI.java index 8b601197a17..e6adbf13b5e 100755 --- a/java/src/IceGrid/TreeNode/CommonBaseI.java +++ b/java/src/IceGrid/TreeNode/CommonBaseI.java @@ -35,7 +35,7 @@ abstract class CommonBaseI implements CommonBase return _id;
}
- public void cleanup()
+ public void unregister()
{
//
// Nothing to do
@@ -72,7 +72,18 @@ abstract class CommonBaseI implements CommonBase {
return _parent;
}
-
+
+ public Editable getEditable()
+ {
+ if(_parent != null)
+ {
+ return _parent.getEditable();
+ }
+ else
+ {
+ return null;
+ }
+ }
public JPopupMenu getPopupMenu()
{
@@ -111,6 +122,11 @@ abstract class CommonBaseI implements CommonBase return null;
}
+ public PropertiesHolder getPropertiesHolder()
+ {
+ return null;
+ }
+
//
// Fires a nodesChanged event with this node
//
@@ -185,6 +201,30 @@ 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;
+ }
+
+ Application getApplication()
+ {
+ if(_path == null || _path.getPathCount() < 2)
+ {
+ return null;
+ }
+ else
+ {
+ return (Application)_path.getPath()[1];
+ }
+ }
+
public Model getModel()
{
return _model;
|