summaryrefslogtreecommitdiff
path: root/java/src/IceGrid/TreeNode/CommonBaseI.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2005-08-31 18:03:10 +0000
committerBernard Normier <bernard@zeroc.com>2005-08-31 18:03:10 +0000
commit61522ec8348235db993a23ba9267c608dd64c965 (patch)
tree851b8fda0d17fc0fd34954f496a4fc049b6f8ba6 /java/src/IceGrid/TreeNode/CommonBaseI.java
parentminor edits (diff)
downloadice-61522ec8348235db993a23ba9267c608dd64c965.tar.bz2
ice-61522ec8348235db993a23ba9267c608dd64c965.tar.xz
ice-61522ec8348235db993a23ba9267c608dd64c965.zip
Fixed build
Diffstat (limited to 'java/src/IceGrid/TreeNode/CommonBaseI.java')
-rwxr-xr-xjava/src/IceGrid/TreeNode/CommonBaseI.java44
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;