[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.71, 1.7
Status: Pre-Alpha
Brought to you by:
henryml
|
From: rimestad <rim...@us...> - 2007-02-08 12:24:34
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19391/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java Log Message: added connected geometry to a constructor in the tree... Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.71 retrieving revision 1.72 diff -C2 -d -r1.71 -r1.72 *** GenericTreeView.java 31 Jan 2007 21:01:42 -0000 1.71 --- GenericTreeView.java 8 Feb 2007 12:24:32 -0000 1.72 *************** *** 712,716 **** * ConstructorNode */ ! public class ConstructorNode extends EntityNode { /** * --- 712,716 ---- * ConstructorNode */ ! public class ConstructorNode extends ContainerNode { /** * *************** *** 723,727 **** */ public ConstructorNode(Constructor c) { ! super(c); } --- 723,727 ---- */ public ConstructorNode(Constructor c) { ! super(c, c.getConnectedGeometry()); } *************** *** 733,736 **** --- 733,749 ---- return constructoricon; } + + /** + * {@inheritDoc} + */ + public void update(Object o) { + if (o instanceof Constructor) { + if (updated == o) { + model.nodeChanged(this); + } + Constructor c = (Constructor) o; + super.update(c.getConnectedGeometry()); + } + } } |