[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/attrview AttributeView.java,1.3,1.4
Status: Pre-Alpha
Brought to you by:
henryml
From: Jesper P. <je...@us...> - 2005-07-11 08:39:42
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21470 Modified Files: AttributeView.java Log Message: Added support for elements and parts Index: AttributeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/attrview/AttributeView.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AttributeView.java 5 Jul 2005 09:41:34 -0000 1.3 --- AttributeView.java 11 Jul 2005 08:39:32 -0000 1.4 *************** *** 11,15 **** --- 11,17 ---- import net.sourceforge.bprocessor.kernel.notification.Notifier; import net.sourceforge.bprocessor.model.ConstructionSpaceFacade; + import net.sourceforge.bprocessor.model.ElementFacade; import net.sourceforge.bprocessor.model.FunctionalSpaceFacade; + import net.sourceforge.bprocessor.model.PartFacade; import net.sourceforge.bprocessor.model.SurfaceFacade; *************** *** 79,82 **** --- 81,100 ---- repaint(); + } else if (type.equals(Notification.ELEMENT_SELECTED)) { + ElementFacade ef = ElementFacade.getInstance(); + + current = ef.findById(n.getObject()); + + ap.display(current); + + repaint(); + } else if (type.equals(Notification.PART_SELECTED)) { + PartFacade pf = PartFacade.getInstance(); + + current = pf.findById(n.getObject()); + + ap.display(current); + + repaint(); } else if (type.equals(Notification.SURFACE_SELECTED)) { SurfaceFacade sf = SurfaceFacade.getInstance(); *************** *** 98,101 **** --- 116,121 ---- if (type.equals(Notification.FUNCTIONAL_SPACE_SELECTED) || type.equals(Notification.CONSTRUCTION_SPACE_SELECTED) || + type.equals(Notification.ELEMENT_SELECTED) || + type.equals(Notification.PART_SELECTED) || type.equals(Notification.SURFACE_SELECTED)) { return true; |