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 80973

Summary: There is no direct way to add DataTypes from standard java library
Product: uml Reporter: bugbridge <bugbridge>
Component: Diagram ClassAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker CC: sunflower
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: WorkerThread Design Pattern

Description bugbridge 2006-07-24 14:31:54 UTC
Original submitter: sunflower

User wants to create class which should extend class from standart java library
or should implement interface from standart java library. But there is no direct 
way to get necessary DataType from standart java library to implement it.

For example user wants to implement Runnable interface:
- Create a class diagram
- Add java.lang.Runnable from standart library interface to the class diagram 
- Add own Task class to the class diagram
- Draw implementation link between Task class and Runnable interface

It is necessary to add way to obtain DataTypes from standart java library.
Comment 1 Alexandr Scherbatiy 2007-01-12 14:05:23 UTC
email from the customer:

 -------- Original Message --------
 Subject: Feedback: NBEP 5.5 UML Modeling Developing Applications
 Date: Mon, 05 Jun 2006 09:00:56 -0400
 To: nbdocs_feedback@usersguide.netbeans.org

 Hello,
 thanks for your great tutorial.
 Can you please help me with the following problem: I want to create a class 
 model, where one (new) class uses an existing other class. In my example it's 
 java.sql.Connection. How can I generate an Aggregation to a standard java
 class ? I know how to do it with classes implemented by myself but not with
 existing classes.

 ---- 
Comment 2 Alexandr Scherbatiy 2007-01-12 14:07:50 UTC
The issue affects the Design Pattern Hands-On Lab.
See the attached image of WorkerThread Design Pattern.
The Task role should implement java.lang.Runnable class.
Comment 3 Alexandr Scherbatiy 2007-01-12 14:10:45 UTC
Created attachment 37319 [details]
WorkerThread Design Pattern