Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv8867/src/net/sourceforge/bprocessor/gui/treeview
Modified Files:
GenericTreeView.java
Log Message:
Improved handling of globals
Index: GenericTreeView.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** GenericTreeView.java 24 May 2006 13:43:42 -0000 1.29
--- GenericTreeView.java 30 May 2006 09:29:02 -0000 1.30
***************
*** 38,41 ****
--- 38,42 ----
import org.apache.log4j.Logger;
+ import net.sourceforge.bprocessor.model.Attribute;
import net.sourceforge.bprocessor.model.Camera;
import net.sourceforge.bprocessor.model.Constraint;
***************
*** 837,841 ****
* ParameterBlockNode
*/
! public class ParameterBlockNode extends EntityNode {
/** */
private static final long serialVersionUID = 1L;
--- 838,842 ----
* ParameterBlockNode
*/
! public class ParameterBlockNode extends ContainerNode {
/** */
private static final long serialVersionUID = 1L;
***************
*** 852,855 ****
--- 853,861 ----
super(object);
this.name = name;
+ Iterator iter = object.getAttributes().iterator();
+ while (iter.hasNext()) {
+ Attribute current = (Attribute) iter.next();
+ add(new AttributeNode(current));
+ }
}
***************
*** 864,867 ****
--- 870,901 ----
/**
+ * AttributeNode
+ */
+ public class AttributeNode extends EntityNode {
+ /** */
+ private static final long serialVersionUID = 1L;
+
+ /** Attribute */
+ private Attribute attribute;
+
+ /**
+ * Constructor
+ * @param object Attribute
+ */
+ public AttributeNode(Attribute object) {
+ super(object);
+ attribute = object;
+ }
+
+ /**
+ * Name
+ * @return String
+ */
+ public String toString() {
+ return attribute.getName();
+ }
+ }
+
+ /**
* ConstraintContainer
*/
***************
*** 886,889 ****
--- 920,925 ----
}
}
+
+
/**
* Selection Listener
|