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 97382 - Introduce Generator Utilities
Summary: Introduce Generator Utilities
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Rastislav Komara
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 14:08 UTC by Jan Lahoda
Modified: 2011-09-19 21:26 UTC (History)
3 users (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 Jan Lahoda 2007-03-07 14:08:56 UTC
It seems that several modules need methods like "Implement All Abstract
Methods". It would be nice to have utilities in java/source that would provide
such services. The exact list of the utility methods is currently pending.
Comment 1 Andrei Badea 2007-04-17 13:06:31 UTC
It would be nice to also have methods for creating at least the default Java
class and interface from the respective templates. Something like:

void createDefaultClass(FileObject targetFolder, String name) throws IOException;
void createDefaultInterface(FileObject targetFolder, String name) throws
IOException;

or perhaps just

enum TemplateKind { CLASS, INTERFACE };
void createFromTemplate(TemplateKind template, FileObject targetFolder, String
name) throws IOException;

which can be nicely extended with further templates, but has the disadvantage
that it doesn't allow more parameters for other templates that might need more 
than just a name String.
Comment 2 Tomasz Slota 2007-05-29 13:45:48 UTC
I would like to avoid keeping a 3rd copy of GenerationUtils in j2ee/persistence/verification, hope this 
issue moves forward...
Comment 3 Rastislav Komara 2009-02-03 10:53:15 UTC
Overtake.