diff options
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;
|