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 82999 - user requests that codes get generated for association that is similar to navigable association
Summary: user requests that codes get generated for association that is similar to nav...
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-18 15:53 UTC by Andrew Korostelev
Modified: 2007-02-01 14:56 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Korostelev 2006-08-18 15:53:10 UTC
From software forum posting: 
http://swforum.sun.com/jive/thread.jspa?threadID=63173

There's a preference for Assocition that is set to Yes as defalt for processed
during Round Trip Engineering (Tools->Options->UML->Round Trip
Engineering->Elements->Associations). However, setting this preference to Yes or
No doesn't do anything because code is not generated for Associations. 

Once user manually adds the attributes in the source to make it look like
navigable association but still wants just the association link on the diagram,
a Navigable Aggregation link is created on the diagram. This is not what user wants.

Repro steps:
- create an empty java project
- create a java-platform uml project and associate with the java project
- create a class diagram
- create and name 2 classes as "c1" and "c2"
- create an Association link between the 2 classes
- Navigate to Source for class "c1"
- add the following attribute to "c1" source
  private c2 cc2;
Result: the getter/setter are generated in the source and an extra Navigable
Aggregation link is created between classes "c1" and "c2" in the diagram.