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 123404

Summary: Changes to Templates options panel are not properly persisted
Product: uml Reporter: Craig Conover <conover>
Component: GeneralAssignee: Craig Conover <conover>
Status: VERIFIED FIXED    
Severity: blocker CC: mmirilovic, sustaining
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Craig Conover 2007-12-04 22:53:30 UTC
1) Open Tools|Options, UML, Templates: add a new domain template (Element Type:Class Stereotype:foo use any template file)
2) Create a class element with foo as stereotype. 
3) Generate Code - in dialog, enable the new template, click OK
Result: no template found for the new element with the foo stereotype.

Workaround:
After the new domain template is added, click the option OK button. Open options again and click OK. This second OK
seems to persist the change properly.
Comment 1 Craig Conover 2007-12-04 22:58:31 UTC
Upon further investigation, it is the Stereotype and Output Parameter properties that are not being persisted properly.
Comment 2 Craig Conover 2007-12-05 00:23:42 UTC
The problem was with Stereotype and Output Parameters fields. The changes were not being pushed into the DOM like the
Element Type field was.

The issues have been corrected and checkin of fix awaits approval for release 60 fix candidate.
Comment 3 Craig Conover 2007-12-05 00:26:21 UTC
Problem also with the Description field as well.
Comment 4 Craig Conover 2007-12-06 18:02:05 UTC
fix checked in to trunk and unstable_uml_visualcomponent branch
Comment 5 Petr Blaha 2008-02-01 12:32:14 UTC
The bug wasn't verified before cut-off date for 6.0.1patch1 and will be included in 6.0.1patch2.
Comment 6 Peter Lam 2008-02-22 23:32:31 UTC
verified in NB 6.1 build 200802191203.
Also verified in latest Meteora build (unstable_uml_visualcomponent branch).
Comment 7 Marian Mirilovic 2008-02-26 12:12:49 UTC
http://hg.netbeans.org/main/rev/a1a217c9c090
Comment 8 khu 2008-03-05 18:48:34 UTC
The fix has been ported into the release601_fixes branch

Checking in DomainTemplatesManagerPanel.form;
/cvs/uml/codegen/src/org/netbeans/modules/uml/codegen/ui/Attic/DomainTemplatesManagerPanel.form,v  <-- 
DomainTemplatesManagerPanel.form
new revision: 1.13.6.1; previous revision: 1.13
done
Checking in DomainTemplatesManagerPanel.java;
/cvs/uml/codegen/src/org/netbeans/modules/uml/codegen/ui/Attic/DomainTemplatesManagerPanel.java,v  <-- 
DomainTemplatesManagerPanel.java
new revision: 1.27.6.1; previous revision: 1.27
done
Checking in DomainTemplatesRetriever.java;
/cvs/uml/codegen/src/org/netbeans/modules/uml/codegen/dataaccess/Attic/DomainTemplatesRetriever.java,v  <-- 
DomainTemplatesRetriever.java
new revision: 1.7.6.1; previous revision: 1.7
done