Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv7512/src/net/sourceforge/bprocessor/gui/treeview
Modified Files:
GenericTreeView.java
Log Message:
Index: GenericTreeView.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v
retrieving revision 1.146
retrieving revision 1.147
diff -C2 -d -r1.146 -r1.147
*** GenericTreeView.java 13 Jan 2010 10:58:37 -0000 1.146
--- GenericTreeView.java 9 Mar 2010 13:01:56 -0000 1.147
***************
*** 610,618 ****
*/
public JPopupMenu menu() {
- System.out.println("menu..");
JPopupMenu pm = GUI.getInstance().menuFactory().menuFor(Selection.primary());
if (pm == null) {
Object object = this.getUserObject();
- System.out.println("menu: " + object);
if (object instanceof Attribute) {
pm = GUI.getInstance().menuFactory().menuFor((Attribute)object);
--- 610,616 ----
***************
*** 678,684 ****
Set surfaces = space.getEnvelope();
add(new SurfaceContainer("Envelope", surfaces, false));
! SpaceNode proto = new ContainerNode(space.getProto());
! add(proto);
! CoordinateSystem cs = space.getTransformation();
if (cs != null) {
add(new ConstructorNode(cs));
--- 676,680 ----
Set surfaces = space.getEnvelope();
add(new SurfaceContainer("Envelope", surfaces, false));
! CoordinateSystem cs = space.getAnchor();
if (cs != null) {
add(new ConstructorNode(cs));
***************
*** 693,700 ****
if (o instanceof Instance) {
Instance instance = (Instance) o;
! if (this.getChildCount() == 3) {
((GenericNode)getChildAt(0)).update(instance.getEnvelope());
! ((GenericNode)getChildAt(1)).update(instance.getProto());
! ((GenericNode)getChildAt(2)).update(instance.getTransformation());
} else {
removeAllChildren();
--- 689,695 ----
if (o instanceof Instance) {
Instance instance = (Instance) o;
! if (this.getChildCount() == 2) {
((GenericNode)getChildAt(0)).update(instance.getEnvelope());
! ((GenericNode)getChildAt(1)).update(instance.getTransformation());
} else {
removeAllChildren();
|