FreeMarker Template Sample - plugin detail
Gives you a sample that includes syntax coloring, code completion, and navigator for FreeMarker. Also, code generation can be learned from this sample, because two wizards are provided that use FreeMarker templates to create output.
Download size: 0.02 MB
Last Update: 2008-04-01
What's new in this version
Added syntax coloring, navigator, code completion, more templates.
Verifications for NetBeans versions
Plugin is not subject to any verification
After installation, go here in the New Project wizard:
Complete the wizard. Inspect the sources. Install the module. You now have FreeMarker syntax coloring, code completion, and navigator support for "ftl" and "template" files:
Also, some templates are installed (the sources of which are in the module):
[ You have to be logged in to be able to comment. ]
I enjoyed watching the illustration. It's captures the mind of the readers. Thanks for sharing the information about FreeMarker Template Sample - plugin detail. What is SEO
Posted by katherine250 on Apr 15, 2013
Bug 144971 is a wish for Freemarker syntax highlighting
This plugin showed promise, but even after getting it to compile in 7.1.2 using quange86's instructions, the resultant NBM file appears to hang the editor and not provide the feature that most end-users want: Freemarker syntax highlighting with support for specifying (highlighting) the language that the template is producing too.
For that use-case, maybe we can bribe the author of this plugin to create a new one, or rally behind bug 144971.
Note that "I want this!" type comments should be avoided -- you can use the "Vote" feature to register interest for a bug.
Posted by rgm3 on May 16, 2012
Support for Netbeans 7.0
Just to add on couple of things for later versions of Netbeans 6.9 to 7.0:
Netbeans module refers to one of the sub-folder of Samples.
Two installation to take notes of here:
First installation: Add plug-in nbm file (Downloaded from site) in tools, plug-ins tab, downloaded. Install.
Follow instructions above to create Freemarker Support Sample.
Remove the module dependency on the non-existant org.netbeans.modules.templates. Go to your project properties, select Libraries category and remove the entry from Module Depencencies Tab. (From Predi)
Right click project, build.
Right click project, select create NBM. DO NOT SELECT install/reload in development IDE. Very dangerous. Can corrupt your user directory.
Once NBM is created, usually in FreeMarkerSupportSample\build folder, repeat the step for adding a new plug-in by selecting the new NBM file generated and installing.
Posted by quange86 on May 18, 2011
No dependent module org.netbeans.modules.templates
I also had problems building this nbm project (on 6.9.1). A similar problem as davestaab. I resolved that (strangely enough) by removing the module dependency on the non-existant org.netbeans.modules.templates. Go to your project properties, select Libraries category and remove the entry from Module Depencencies Tab. Builds just fine after that.
Another problem I had before the upper one, was related to Netbeans Module development. It seems I must have downloaded the wrong distribution of the IDE and it was nagging about "wrong platform being selected" (never created a Netbeans Module Project before this one you see). Resolved that through "Manage Platforms" dialog; added the Netbeans install folder as a platform folder and then switched to it. All missing import errors magically went away after this.
Hope this helps.
Posted by predi on May 18, 2011
Support for Netbeans 7.0
Hey Geertjan, thanks for this great plugin.
Is this plugin supported in NetBeans 7.0? If not are there any plans to update it so it compiles in the new version?
I was able to create the sample project but couldn't get it to build. The error is: netbeans-7.0/harness/build.xml:171: No dependent module org.netbeans.modules.templates
Sorry, I'm not more help. I don't really have experience with netbeans plugin development. It also looks like I've upgraded to Netbeans 7.0 a few days too early. =P
Thanks for any help you can give.
Posted by davestaab on Apr 29, 2011
I don't think you want this plugin
Mattiphers, after you install this module, you should go to the New Project wizard and you will find a sample module project (as explained if you read the description of this plugin). That's what this module is for -- it provides a sample project for people creating their own plugins. I don't think that's what you're looking for.
Posted by geertjan on Aug 20, 2008
Cannot get it to work with NB 6.1 under Linux
Good that we get plugins that support the plugin/extension community :-)
But when I tried to get it to work with my NB 6.1 under Linux (Ubuntu 8.04) I get the sample ok in there
but all the nice support for the freemarker document format is not :-(
I'm I missing something here? I'm currently editing the UML code generation templates
and the freemarker format support would really be nice when editing the templates.
TIA on any hints on what could be wrong or now I could check if the install is ok...
Product Version: NetBeans IDE 6.1 (Build 200804211638)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Linux version 2.6.24-16-generic running on i386; UTF-8; en_US (nb)
Posted by mattipehrs on Aug 19, 2008
Why isn't this published as a plugin?
thanks for the FreeMarker support, but I wonder, why this is published as a "Sample" that generates a plugin that in turn needs to be installed again. I think it would be a lot nicer if the plugin that resulted from building the sample application would be published directly.
Posted by tkellerer on Apr 29, 2008
re: Why isn't this published as a plugin?
Well, it's meant as an example for NetBeans module developers, not really as an end user feature. However, I agree, in that context it would be useful too.
Posted by geertjan on Apr 29, 2008
MB6 Killer Application
Ok, this is the reason why I upgraded from 5.5.1 to 6.0.1.
Posted by guidolx on Mar 04, 2008