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 90194 - It should be possible to mark some classes as not valid for code generation
Summary: It should be possible to mark some classes as not valid for code generation
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-28 14:35 UTC by Sergey Petrov
Modified: 2007-01-10 11:06 UTC (History)
1 user (show)

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 Sergey Petrov 2006-11-28 14:35:24 UTC
reproducible with 061127_12

user may want to use some classes from java library of from his own library, but
all classes are valid for code generation regardless of user wish.
there should be possibility to mark classes as not valid for code generation
(for example special attribute for classes/interfaces).
Comment 1 Kris Richards 2007-01-03 20:58:54 UTC
this is not a defect, changed to rfe p3.
Comment 2 Sergey Petrov 2007-01-04 10:25:47 UTC
ok, let it be enhancement, but it affects big area and should be at least P2
Comment 3 Trey Spiva 2007-01-04 14:15:32 UTC
Why not just use a datatype.  Datatypes are not generated during code generation.
Comment 4 Sergey Petrov 2007-01-09 11:30:32 UTC
Hi Trey, there was a discussion between us about "interface datatypes" before,
see some reasons:
1) I didn't get clearly difference between datatypes and classes from uml2.0
spec but datatypes are more simple classifiers then classes and looks good for
int and may not looks good for JFrame for example.
2) I may want to see members of library classes on diagram (I can't see members
for daatypes)
3) there is no way to use datatypes as interfaces (for examp-le Runnable)
4) classes are used in patterns
Comment 5 Trey Spiva 2007-01-09 15:47:16 UTC
> 1) I didn't get clearly difference between datatypes and classes from uml2.0
> spec but datatypes are more simple classifiers then classes and looks good for
> int and may not looks good for JFrame for example.
A datatype is the best way to specify classifiers that are not included in our system.

> 2) I may want to see members of library classes on diagram (I can't see members
> for daatypes)
A datatype is a classifier, and as such can own operations and attributes.  We could have the tree show 
the operations and attributes.

> 3) there is no way to use datatypes as interfaces (for examp-le Runnable)
This is a good example.

> 4) classes are used in patterns
Actually Class Roles are using in design patterns, not classes.  Class Role elements and Class elements 
are not the same thing.  They just look the same.
Comment 6 Sergey Petrov 2007-01-10 11:06:27 UTC
1) may be
2) but hard to work from diagram area, and aren't shown on diagram, in my
opinions users most interested in diagram view rather then in model tree.
4) just apply any EJB2.0 pattern and you'll get a lot of java.*,javax.* classes
and interfaces which shouldn't participate in code generation (see issue 90189)