myeclipse中安装freemarker插件

来源:互联网 发布:mac pro 强制关机 编辑:程序博客网 时间:2024/05/21 03:27

原文地址,转载请注明出处:http://blog.csdn.net/qq_34021712/article/details/71105504    ©王赛超

前提条件
下载freemarker插件,我下载的是freemarker-ide-0.9.14,下载地址:http://download.csdn.net/detail/qq_34021712/9831659
安装过程

将下载的freemarker-ide-0.9.14解压,解压后的plugins下有hudson.freemarker_ide_0.9.14文件夹


hudson.freemarker_ide_0.9.14下的freemarker-2.3.6.jar包是比较早的版本,用新的freemarker-2.3.26-incubating.jar替换之


把hudson.freemarker_ide_0.9.14\META-INF\MANIFEST.MF里的Bundle-ClassPath也改为freemarker-2.3.26-incubating.jar


将hudson.freemarker_ide_0.9.14文件夹放入MyEclipse安装目录plugins下,我的myeclipse路径为:D:/ProgramMine/MyEclipse Professional/dropins/plugins


找到在MyEclipse安装目录下\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info的文件,在这个文件的末尾加上一行配置代码:
hudson.freemarker_ide,0.9.14,file:/MyEclipse安装目录/plugins/hudson.freemarker_ide_0.9.14/,4,false
我个人的:hudson.freemarker_ide,0.9.14,file:/D:/ProgramMine/MyEclipse Professional/dropins/plugins/hudson.freemarker_ide_0.9.14/,4,false

(注意:使用的“,”分割为四项)


重启myeclipse,如果安装成功,则在 window --> Preferences 左边的树形栏里出现FreeMarker Editor一项新的内容


打开.ftl文件,代码会出现高亮



1 0
原创粉丝点击