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.

Bug 135098 - Issue in adding template parameters to the class element
Summary: Issue in adding template parameters to the class element
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-14 23:14 UTC by Joanne Lau
Modified: 2008-05-31 00:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
template param label screenshot (112.24 KB, image/png)
2008-05-14 23:16 UTC, Joanne Lau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joanne Lau 2008-05-14 23:14:46 UTC
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
Comment 1 Joanne Lau 2008-05-14 23:16:25 UTC
Created attachment 61412 [details]
template param label screenshot
Comment 2 Peter Lam 2008-05-20 22:15:38 UTC
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.
Comment 3 Trey Spiva 2008-05-22 16:05:58 UTC
Fixed

http://hg.netbeans.org/uml-main/rev/e1a960597690
Comment 4 Peter Lam 2008-05-24 01:52:15 UTC
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)
Comment 5 Peter Lam 2008-05-31 00:45:36 UTC
the problem no longer exists in the latest build 20080529.
Comment 6 Peter Lam 2008-05-31 00:45:58 UTC
verified in build 20080529