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 24397 - Implement Design Pattern templates
Summary: Implement Design Pattern templates
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 13189 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-04 20:10 UTC by Torbjorn Norbye
Modified: 2013-09-02 14:19 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 Torbjorn Norbye 2002-06-04 20:10:01 UTC
I saw one of the top IDEs at JavaOne has all of
the gang-of-four
design patterns implemented (and some other design
patterns as well).
Adding say a Facade pattern is as simple as
selecting design patterns
-> choosing the pattern name -> going through a
simple wizard which
is extremely simple: it explains what the pattern
is for, and
then asks for the values of one or two parameters.
It then creates
the design pattern classes as necessary.

This might make a good university project -
implementing the design
patterns cleanly in Java; the design patterns are
all well documented so it's just a matter of
java-ifying them and putting
a simple wizard (like the New Class wizard) on them.

Also see the book "Bitter Java", which reportedly
(I haven't read
it -- yet!) contains a number of java-specific
knowledge and
caveats about design patterns implemented in java,
many with
a web-flavor (so while the basic java module needs
to support
the basic design patterns, it might be that other
modules should
add appropriate design patterns for their domains
as well).
Comment 1 Svata Dedic 2002-06-05 17:31:49 UTC
Creating new classes from a design pattern templates is a piece of
cake. Generating design patterns into already existing classes (IMHO
needed more frequently) would be rather tough.

Comment 2 Marek Grummich 2002-07-22 10:50:14 UTC
Set target milestone to TBD
Comment 3 Martin Matula 2004-11-13 20:46:50 UTC
*** Issue 13189 has been marked as a duplicate of this issue. ***