This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: 080513 - DnD a class element (c1) in the class diagram - Bring up the class properties window - Add a template parameter to the class via clicking "..." in the "Template Parameters" field set Name = tt Alias = tt Visibility = private Default Element = c1 Type Constraint = Class - Click OK - Notice the original class disappears from the editor, only the template label is visible (see attached screenshot) Remember the location of this label in the editor - Now Click any open space in the editor, the template label also disappears Now click empy space where the label uses to be The label re-appears Expect the class element with the attached template parameter label should be displayed in the editor
Created attachment 61412 [details] template param label screenshot
now after adding the template parameter, both the class and template parameter are not visible after deselecting the class element. This applies to interface, boundary class, etc. Raise to P1 since this bug blocks template parameter feature from being tested.
Fixed http://hg.netbeans.org/uml-main/rev/e1a960597690
verified in build 20080522. After adding the 1st template parameter, no problem. Add the 2nd template paramater, after pressing the ok button the class element became invisible again with the following exception popped up. java.lang.AssertionError at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:235) at org.netbeans.api.visual.widget.Widget.addChild(Widget.java:226) at org.netbeans.modules.uml.drawingarea.view.UMLNodeWidget.setCurrentView(UMLNodeWidget.java:188) at org.netbeans.modules.uml.diagrams.nodes.UMLClassWidget.propertyChange(UMLClassWidget.java:558) at org.netbeans.modules.uml.drawingarea.UMLDiagramTopComponent$ChangeHandler.elementChanged(UMLDiagramTopComponent.java:1383) [catch] at org.netbeans.modules.uml.drawingarea.DrawingAreaEventHandler$1ElementModified.run(DrawingAreaEventHandler.java:211) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:597) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160) at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
the problem no longer exists in the latest build 20080529.
verified in build 20080529