Freemarker Eclipse 插件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9385561/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:55:26  来源:igfitidea点击:

Freemarker Eclipse Plug-In

eclipsefreemarker

提问by jeewan

How can I install Freemarker Plug-In in eclipse?

如何在 Eclipse 中安装 Freemarker 插件?

I googled it and found this site

我用谷歌搜索并找到了这个网站

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. 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".

但它对我不起作用。在 #3 中提到的 URL“ http://www.freemarker.org/eclipse/update”不存在。然后我尝试了 URL“ http://www.freemarker.org/eclipse/”然后它工作但安装后,我添加了 *.ftl 作为 Windows 中的文件类型 -> 首选项 -> 常规 -> 编辑器 -> 文件关联但是我在“相关编辑器”中找不到 Freemarker 编辑器。

I am using Eclipse of Version: Indigo Service Release 1 in windows 7.

我在 Windows 7 中使用 Eclipse 版本:Indigo Service Release 1。

Any suggestions please???

请问有什么建议???

回答by evandor

You could try the JBoss Toolsplugins 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 Editor

JBoss Tools 的 FreeMarker IDE 编辑器

回答by jason

I have installed the freemarker just now, here is the screenshot for it, you can just check it enter image description here

我刚刚安装了freemarker,下面是它的截图,你可以看看 在此处输入图片说明

回答by Mahbub

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. See below screenshot for help.

对于安装,打开 eclipse,然后转到 Help > Install New Software >> 添加上面的更新站点 url,从该更新站点提供的许多安装中,您只需安装编辑器,您只需安装“FreeMarker IDE”所有 JBoss 工具菜单。请参阅下面的屏幕截图以获取帮助。

enter image description here

在此处输入图片说明

回答by Paul Verest

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/.

Sources are at https://github.com/jbosstools/jbosstools-freemarkerIssue tracker is JBoss Tools JIRA https://issues.jboss.org/browse/JBIDE(specify component freemarker)

As recommended on http://freemarker.org/editors.htmlnightly version is used for Neon.

这是从 JBoss Tools http://tools.jboss.org/安装 FreeMarker IDE 插件的快速方法 。

来源在https://github.com/jbosstools/jbosstools-freemarker问题跟踪器是 JBoss Tools JIRA https://issues.jboss.org/browse/JBIDE(指定组件 freemarker)

正如http://freemarker.org/editors.html 上推荐的那样,Neon 使用每晚版本。

回答by Katharsas

For Eclipse Oxygen / Photon:

对于Eclipse 氧/光子

The Freemarker Plugin from JBoss Tools was deprecated in the new release for Oxygen, see changelog for JBoss Tools 4.5.0:
https://tools.jboss.org/documentation/whatsnew/jbosstools/4.5.0.AM2.html#freemarker

JBoss Tools 的 Freemarker 插件在 Oxygen 的新版本中被弃用,请参阅 JBoss Tools 4.5.0 的更新日志: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):
https://tools.jboss.org/downloads/jbosstools/neon/4.4.4.Final.html#update_site

所以我改用 JBoss 工具 4.4.4(这是用于 Neon,但似乎与 Oxygen 配合良好):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

回答by ronline

Jeewan@Feb 21 '12 at 21:38, you are missing the “freemarker” suffix in your link. The complete url is http://www.freemarker.org/eclipse/freemarker/. It works for me on 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.

Jeewan@2012 年 2 月 21 日 21:38,您的链接中缺少“freemarker”后缀。完整的 url 是http://www.freemarker.org/eclipse/freemarker/。它适用于 Eclipse Juno,OS Linux Ubuntu 12.04。@Jason@Sep 28 '12 '12 at 6:59,我不明白你提到解决方案更有意义的回答。

回答by function

I found detailed instructions under http://freemarker.org/editors.htmlin the first table row ("Eclipse", "Part of the JBoss Tools Project. Install like this"). Although I restarted Eclipse as recommended, it was also necessary to reopen each file for the syntax coloring to take effect.

我在http://freemarker.org/editors.html的第一行(“Eclipse”、“JBoss 工具项目的一部分。像这样安装”)中找到了详细说明。虽然我按照建议重新启动了 Eclipse,但也需要重新打开每个文件以使语法着色生效。