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 83794 - Template parameter changing renames the template class name
Summary: Template parameter changing renames the template class name
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 5.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Trey Spiva
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-30 14:39 UTC by bugbridge
Modified: 2007-02-17 05:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The template parameter is still incorrectly editable (79.53 KB, image/png)
2007-02-12 11:23 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2006-08-30 14:39:31 UTC
Original submitter: sergeyp

Description:
User can edit text in template parameters field of template class on the diagram
But changes in the field affect class name but do no affect parametes.
This field isn't editable in initial version
Steps to reproduce:
1. create class diagram
2. place template class on the diagram and name it
3. add some template parameters by UML Properties tab
parametes shoul appear in upper rectange of the template class
4. double click on rectangle with template parametes (on the diagram)
template parametes replaced with class name (It's wrong)
5. enter some value in field
name changed to the value and parameters remain old

Field should be disabled or allow to enters new comma separated parameters.
xxx@xxxx 10/8/04 10:59 GMT
Comment 1 Peter Lam 2007-02-07 22:16:47 UTC
this one should be a P2 bug.
Comment 2 Trey Spiva 2007-02-08 20:29:24 UTC
You are no longer able to edit the temlate parameters. 
Comment 3 Alexandr Scherbatiy 2007-02-12 10:14:48 UTC
The issue is still reproduced in ide_uml-griffin-070207_9-ml.zip 
Note that the fix makes worse  usability of template parameters so the 
another issue should be filled. I think it is better to fix the root
issue rather to produce another issues.

Comment 4 Alexandr Scherbatiy 2007-02-12 11:23:57 UTC
Created attachment 38352 [details]
The template parameter is still incorrectly editable
Comment 5 Trey Spiva 2007-02-12 14:41:00 UTC
2 questions.  How does it make a worse usablilty problem, since the user was not able to change the 
template parameters via the edit control before the fix?  Since the user was not able to change the 
parameters via the property editor, but they where given the illusion that they would be able to change 
the parameters via the property editor.  I think that is a worse usability issue than having to use the 
property editor to modify the template parameters.  Also this approach is similar to the rest of the class 
diagram.  You are not able to change the stereotypes or tagged values via the diagram.  You have to 
use the property editor.

Second question is in the issue it states "Field should be disabled or allow to enter new comma 
seperated parameters".  I choose to implement the disabled approach.  

If a new issue is created, then it should be an enhancment request not an issue.  Because this approach 
seems to fit the rest of the class element.

I am marking this issue fixed, because I was not able to reproduce this issue.  I am not able to enter 
edit mode for the template parameter.  Please put more information in if you reopen the issue.
Comment 6 Sergey Petrov 2007-02-12 15:26:47 UTC
isn't committed yet
Comment 7 Trey Spiva 2007-02-12 22:25:59 UTC
This issue is fixed.
Comment 8 Sergey Petrov 2007-02-16 11:34:33 UTC
I can navigate to template parameters compartment with Shift-Arrow(right/left)
button and press enter/or f2 and edit it the same way as before
Comment 9 Thuy.d Nguyen 2007-02-16 21:37:04 UTC
Disabled the ability to select a Template Parameter Compartment for editing.
Comment 10 Peter Lam 2007-02-17 05:27:17 UTC
verified in build 070216_4.