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 116868 - composition link shown as aggregation link in project tree
Summary: composition link shown as aggregation link in project tree
Status: RESOLVED WONTFIX
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Craig Conover
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-26 19:20 UTC by Sherry Zhou
Modified: 2007-09-26 21:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sherry Zhou 2007-09-26 19:20:02 UTC
trunk build 20070924. Create a component diagram. 
. Add a component element and a class element
. Add a composition (or navigable composition )link from component to class.
 
-- In project tree the node name is  Aggregation, it should be composition (or navigable composition)
Comment 1 Craig Conover 2007-09-26 21:32:21 UTC
A composition is a special form of aggregation (according to UML spec), so technically, this is not wrong. It is the
default name for all aggregation links that don't have a named specified by the modeler. 

The default name is drawn from the model element type which is Aggregation if it an aggregation or the more specific
Composition. It is possible to derive the Composition type from the extended element type attribute of the element
(which is how the icon is selected, which is performed in a separate module from the name), but to conditionally
implement this for one specialized link type creates more risk from the change than reward.

At the very worst, this is just a P3 and will ultimately be resolved with the reimplementation of the UML project tree
in a future release.