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 65037 - Template Manager should not offer to Open in Editor an empty pseudotemplate
Summary: Template Manager should not offer to Open in Editor an empty pseudotemplate
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Favorites (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on: 167205
Blocks:
  Show dependency tree
 
Reported: 2005-09-23 19:59 UTC by Jesse Glick
Modified: 2009-06-18 16:53 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-09-23 19:59:10 UTC
If there is a template which is empty (length == 0L) and has attr
templateWizardIterator or instantiatingIterator, then Open in Editor should be
disabled on it, since the file content is probably ignored. (As for e.g.
apisupport templates.)
Comment 1 Jiri Rechtacek 2005-09-26 13:21:13 UTC
I can add the proposed check but IMHO a better would be if a empty template
doesn't provide Open nor Edit cookie.
Comment 2 Jiri Rechtacek 2005-09-29 15:29:29 UTC
Checking in
core/favorites/src/org/netbeans/modules/favorites/templates/TemplatesAction.java;
/cvs/core/favorites/src/org/netbeans/modules/favorites/templates/TemplatesAction.java,v
 <--  TemplatesAction.java
new revision: 1.2; previous revision: 1.1
done
Comment 3 Tomas Danek 2005-12-12 12:28:54 UTC
yes, empty templates cannot be opened in editor now. closing