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 91968 - Excessive files opened after many templates
Summary: Excessive files opened after many templates
Status: NEW
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Kozeny
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2007-01-07 22:07 UTC by _ tboudreau
Modified: 2013-02-14 13:17 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 _ tboudreau 2007-01-07 22:07:51 UTC
After using many of the templates in apisupport (particularly file type and
window component), a huge number of files are opened, many of which are not at
all useful .  For example, if you add a file type,
$PROJECT/test/unit/META-INF/services/org.openide.loaders.DataLoader will be
opened in the editor.

It's easy enough to exclude some files from being opened - simply don't include
them in the Set returned from WizardIterator.instantiate().  It would be good to
do a pass over all of the templates, and make sure that the files they open are
only those the user is really likely to edit.
Comment 1 _ tboudreau 2007-01-10 01:34:21 UTC
Setting back to P3 - this is simple to address and it simply should be.

But moreover, the point of these templates is to hide some of the complexity of
doing things like adding a file to the window system.  Then opening
FooComponent_wstcref.xml kind of defeats the purpose, and forces the user to
confront a whole load of junk the template is supposed to save them from having
to confront.

When you create a TopComponent, what ought to end up open is the TopComponent -
not something else (probably nothing else should be opened).
Comment 2 Jesse Glick 2007-01-10 18:24:31 UTC
Has nothing to do with performance that I can see.

Will fix someday. No one is really working on apisupport at the moment.
Comment 3 Jesse Glick 2008-06-19 22:19:14 UTC
Maybe needs a little change in CreatedModifiedFiles to suppress opening of certain files.
Comment 4 rmichalsky 2008-09-04 08:38:58 UTC
Nice to have, but rather an enhancement, not a bug. I'll do it after 6.5.