简体   繁体   English

Freemarker Eclipse插件

[英]Freemarker Eclipse Plug-In

How can I install Freemarker Plug-In in eclipse? 如何在eclipse中安装Freemarker Plug-In?

I googled it and found this site 我用Google搜索并发现了这个网站

https://sites.google.com/site/hcao2008site/development/leareclipse/install-freemarker-plugin-in-eclipse https://sites.google.com/site/hcao2008site/development/leareclipse/install-freemarker-plugin-in-eclipse

but it did not work for me. 但它对我不起作用。 The URL " http://www.freemarker.org/eclipse/update " as it has mentioned in #3 does not exist. #3中提到的URL“ http://www.freemarker.org/eclipse/update ”不存在。 Then I tried the URL " http://www.freemarker.org/eclipse/ " then it worked but after installation, I added *.ftl as file types inside Windows -> Preference -> General -> Editors -> FIle Associations but I could not find the Freemarker editor inside "Associated editors". 然后我尝试了URL“ http://www.freemarker.org/eclipse/ ”然后它工作但是在安装之后,我在Windows中添加了* .ftl作为文件类型 - >首选项 - >常规 - >编辑器 - > FIle关联但是我在“Associated editor”中找不到Freemarker编辑器。

I am using Eclipse of Version: Indigo Service Release 1 in windows 7. 我在Windows 7中使用Eclipse of Version:Indigo Service Release 1。

Any suggestions please??? 有什么建议吗???

You could try the JBoss Tools plugins available from http://download.jboss.org/jbosstools/updates/development/indigo/ , they contain the "FreeMarker IDE" which provides a nice freemarker editor. 您可以尝试http://download.jboss.org/jbosstools/updates/development/indigo/上提供的JBoss Tools插件,它们包含“FreeMarker IDE”,它提供了一个不错的freemarker编辑器。

I didn't find a screenshot of the editor right now, so I will show you how it looks like in my installation (Indigo on Ubuntu 11.10), so that you can decide if this is what you want: 我现在没有找到编辑器的截图,所以我将告诉你在我的安装中的样子(Ubuntu 11.10上的Indigo),以便你可以决定这是否是你想要的:

JBoss Tools的FreeMarker IDE编辑器

I have installed the freemarker just now, here is the screenshot for it, you can just check it 我刚刚安装了freemarker,这里是截图,你可以检查一下 在此输入图像描述

You can install it, from an update site - http://download.jboss.org/jbosstools/updates/stable/helios/ 您可以从更新站点安装它 - http://download.jboss.org/jbosstools/updates/stable/helios/

For installing, open eclipse, than go to Help > Install New Software >> add the above update site url, From the many installations available from that update site, you can just install the editor, you can just install the 'FreeMarker IDE' from All JBoss Tools menu. 对于安装,打开eclipse,比去帮助>安装新软件>>添加上面的更新站点url,从该更新站点提供的许多安装中,你可以只安装编辑器,你只需安装'FreeMarker IDE'即可所有JBoss Tools菜单。 See below screenshot for help. 请参阅下面的屏幕截图以获

在此输入图像描述

Jeewan@Feb 21 '12 at 21:38, you are missing the “freemarker” suffix in your link. Jeewan @ 12月21日'12在21:38,你错过了链接中的“freemarker”后缀。 The complete url is http://www.freemarker.org/eclipse/freemarker/ . 完整的网址是http://www.freemarker.org/eclipse/freemarker/ It works for me on Eclipse Juno, OS Linux Ubuntu 12.04. 它适用于Eclipse Juno,OS Linux Ubuntu 12.04。 @Jason@Sep 28 '12 at 6:59, I don't understand your answer to mention the solution make more sense. @Jason @ 12月28日12:59,我不明白你的答案提到解决方案更有意义。

I found detailed instructions under http://freemarker.org/editors.html in the first table row ("Eclipse", "Part of the JBoss Tools Project. Install like this"). 我在http://freemarker.org/editors.html的第一个表行中找到了详细的说明(“Eclipse”,“JBoss Tools Project的一部分。像这样安装”)。 Although I restarted Eclipse as recommended, it was also necessary to reopen each file for the syntax coloring to take effect. 虽然我按照建议重新启动了Eclipse,但还需要重新打开每个文件以使语法着色生效。

Since July 2016 also published on Eclipse marketplace as separate entry 自2016年7月起,也在Eclipse市场上作为单独的条目发布

https://marketplace.eclipse.org/content/freemarker-ide-jboss-tools https://marketplace.eclipse.org/content/freemarker-ide-jboss-tools

Quote 引用

This is quick way to install FreeMarker IDE plugin from JBoss Tools http://tools.jboss.org/ . 这是从JBoss Tools http://tools.jboss.org/安装FreeMarker IDE插件的快捷方式。

Sources are at https://github.com/jbosstools/jbosstools-freemarker Issue tracker is JBoss Tools JIRA https://issues.jboss.org/browse/JBIDE (specify component freemarker) 来源位于https://github.com/jbosstools/jbosstools-freemarker问题跟踪器是JBoss Tools JIRA https://issues.jboss.org/browse/JBIDE (指定组件freemarker)

As recommended on http://freemarker.org/editors.html nightly version is used for Neon. 正如http://freemarker.org/editors.html上推荐的那样,夜间版本用于Neon。

For Eclipse Oxygen / Photon : 对于Eclipse Oxygen / Photon

The Freemarker Plugin from JBoss Tools was deprecated in the new release for Oxygen, see changelog for JBoss Tools 4.5.0: JBoss Tools的Freemarker插件在Oxygen的新版本中已被弃用,请参阅JBoss Tools 4.5.0的changelog:
https://tools.jboss.org/documentation/whatsnew/jbosstools/4.5.0.AM2.html#freemarker https://tools.jboss.org/documentation/whatsnew/jbosstools/4.5.0.AM2.html#freemarker

So I use JBoss Tools 4.4.4 instead (which was for Neon, but seems to work fine with Oxygen): 所以我使用JBoss Tools 4.4.4(适用于Neon,但似乎与Oxygen配合使用):
https://tools.jboss.org/downloads/jbosstools/neon/4.4.4.Final.html#update_site https://tools.jboss.org/downloads/jbosstools/neon/4.4.4.Final.html#update_site

Installation: 安装:
Help > Install New Software > Add http://download.jboss.org/jbosstools/neon/stable/updates/ > Expand JBoss Application Development > Freemarker IDE 帮助>安装新软件>添加http://download.jboss.org/jbosstools/neon/stable/updates/ >展开JBoss Application Development > Freemarker IDE

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM