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 224292

Summary: Unable to duplicate templates correctly.
Product: platform Reporter: esmithbss <esmithbss>
Component: TemplatesAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal CC: mmirilovic
Priority: P2    
Version: 7.3   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE Log File

Description esmithbss 2012-12-28 20:40:30 UTC
Created attachment 129746 [details]
IDE Log File

When creating a duplicate template within the "Tools->Templates" wizard, selecting a template (ex.  FileType) and choosing to "Duplicate" the template results in an open editor with an empty file.

If the editor is closed without changing anything and then re-opened, the editor opens an empty file.
Comment 1 Ondrej Vrabec 2013-01-02 14:03:29 UTC
should be consistent with "Open in Editor" in the Templates panel - this should be disabled. FileType, Action, probably all NetBeans module templates consist of not just one but multiple template files and thus should not be editable.
Comment 2 Martin Entlicher 2013-01-03 14:55:24 UTC
Fixed by changeset:   243787:421697c694b4
http://hg.netbeans.org/core-main/rev/421697c694b4
Comment 3 Quality Engineering 2013-01-04 02:29:08 UTC
Integrated into 'main-golden', will be available in build *201301040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/421697c694b4
User: mentlicher@netbeans.org
Log: #224292: Use the same condition for open in editor and duplicate.