diff options
| author | Andrew Branson <andrew.branson@cern.ch> | 2012-05-30 08:37:45 +0200 |
|---|---|---|
| committer | Andrew Branson <andrew.branson@cern.ch> | 2012-05-30 08:37:45 +0200 |
| commit | b086f57f56bf0eb9dab9cf321a0f69aaaae84347 (patch) | |
| tree | 8e6e26e8b7eed6abad7a17b093bdbb55c5e6b1ba /source/com/c2kernel/gui/data/NodeContext.java | |
| parent | 22088ae8d2d5ff390518dbe1c4372325ffb3a647 (diff) | |
Initial Maven Conversion
Diffstat (limited to 'source/com/c2kernel/gui/data/NodeContext.java')
| -rw-r--r-- | source/com/c2kernel/gui/data/NodeContext.java | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/source/com/c2kernel/gui/data/NodeContext.java b/source/com/c2kernel/gui/data/NodeContext.java deleted file mode 100644 index ded3dd4..0000000 --- a/source/com/c2kernel/gui/data/NodeContext.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.c2kernel.gui.data;
-
-import java.util.Enumeration;
-
-import com.c2kernel.entity.proxy.DomainPathSubscriber;
-import com.c2kernel.gui.EntityTabManager;
-import com.c2kernel.lookup.DomainPath;
-import com.c2kernel.lookup.Path;
-import com.c2kernel.process.Gateway;
-import com.c2kernel.utils.Logger;
-
-
-public class NodeContext extends Node implements DomainPathSubscriber {
- Enumeration<? extends Path> children;
-
- public NodeContext(Path path, EntityTabManager desktop) {
- super(path, desktop);
- this.sysKey=Path.INVALID;
- createTreeNode();
- this.makeExpandable();
- this.type = "Cristal Context";
- }
-
-
- @Override
- public void loadChildren() {
- if (children == null) {
- Gateway.getProxyManager().subscribeTree(this, (DomainPath)binding);
- children = binding.getChildren();
- }
-
- int batch = 75;
- while (children.hasMoreElements() && batch > 0) {
- Path newPath = children.nextElement();
- if (newPath == null) break;
- Logger.msg(2, "Subscription.run() - new node: " + newPath );
- add( newNode(newPath));
- batch--;
- }
- end(children.hasMoreElements());
- }
-
- @Override
- public void pathAdded(DomainPath path) {
- add(newNode(path));
- }
-
- @Override
- public void refresh() {
- children = null;
- super.refresh();
- }
- @Override
- public void pathRemoved(DomainPath path) {
- remove(path);
- }
-
-}
-
-
-
-
-
-
-
|
