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 140256 - Templates - inconsistent behaviour
Summary: Templates - inconsistent behaviour
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 153941
  Show dependency tree
 
Reported: 2008-07-16 11:16 UTC by Petr Pisl
Modified: 2009-02-19 22: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 Petr Pisl 2008-07-16 11:16:49 UTC
You can create new template in three ways. 

1) In Template Manager through Duplicate button
2) In Template Manager through Add button
3) In project view invoking Save As Template... action from context menu

If you create new file from template, which was added through the first case, then the template is processed with an
scripting engine, so for example ${user}, ${date} etc. are replaced correctly. Unfortunately the templates created
through  the second and the third case don't have assigned template engine, so they are not processed with any scripting
engine. This is inconsistent, because as a result, there are  not replaced the texts like ${user}. 

The best fix would be to provide simple UI in Add template and Save as Template dialogs, where user can choose an
scripting engine from registered engines in NetBeans.
Comment 1 Jiri Rechtacek 2008-12-05 15:30:13 UTC
fixed in core-main/rev/e0dacb6e3de2
Comment 2 Quality Engineering 2008-12-07 05:30:01 UTC
Integrated into 'main-golden', will be available in build *200812070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e0dacb6e3de2
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #140256: Templates - inconsistent behaviour