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.
Summary: | name conflict with addition of several classes/interfaces to a package | ||
---|---|---|---|
Product: | uml | Reporter: | Sergey Petrov <sj-nb> |
Component: | General Diagram | Assignee: | Yang Su <sherylsu> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | khu |
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Sergey Petrov
2007-02-21 12:44:47 UTC
low use case not currently impacting our installed user base. The issue affects Advanced UML Modeling with NetBeans HOL. I need to put two Use Case elements on the package. The information dialog taht says 'An element with this name already exists in the current namespace' appears. Historically, the newly created NamedElement is given a name "Unnamed", which is also an editable option in Options -> UML -> New Project -> Default Element Name. There is no other attribute to tell the unnamed from named. The obvious fallacy is that when default name is modified all previously unnamed become regular named elements, which causes error in logic where unnamed should be singled out, like code generation. The safest approach to address this issue is to ignore unnamed element naming conflict check and make this option hidden (remove from option list) so users won't be able to modify it, the distinct name can then be used to mark the unnamed status. This option was really unnecessary, it did not offer any benefits. A useful model should be clear and unambiguous, default name only provides convenience for initial creation and is expected to be changed later. I don't see such an option in other applications. Made changes in config file to remove it from option list, and add logic to skip validation if element is unnamed. verified in all-nbms-hydra-070409_14 should be also ported to 5.5 patch verified in all-nbms-griffin_fixes-070416_1-ml |