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

Summary: Template Manager should not offer to Open in Editor an empty pseudotemplate
Product: platform Reporter: Jesse Glick <jglick>
Component: FavoritesAssignee: Jiri Rechtacek <jrechtacek>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 167205    
Bug Blocks:    

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