[jbosstools-issues] [JBoss JIRA] (JBIDE-2787) can't support "<#include" tag for parse all marcos for freemarker library
Max Rydahl Andersen (JIRA)
issues at jboss.org
Mon Jan 20 06:56:23 EST 2014
[ https://issues.jboss.org/browse/JBIDE-2787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Max Rydahl Andersen resolved JBIDE-2787.
----------------------------------------
Resolution: Out of Date
Thank you for reporting this issue but this issue have been resolved as out-of-date since it has not had any updates for the last 2+ years (730 days).
If you believe this issue is still relevant and important then please reopen the issue or create a new one mentioning/linking this jira for background information.
Thank you!
> can't support "<#include" tag for parse all marcos for freemarker library
> -------------------------------------------------------------------------
>
> Key: JBIDE-2787
> URL: https://issues.jboss.org/browse/JBIDE-2787
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: freemarker
> Environment: eclipse 3.4
> Reporter: super watano
> Assignee: Denis Golovin
> Fix For: LATER
>
> Attachments: ConfigurationManager.java, MacroInstance.java
>
>
> there is one freemarker library file "a.ftl". in the "a.ftl" file, it use code "<#include "b.ftl" />" to include "b.ftl". In this way, when Content Assist list all marcos, it only get all marcos from "a.ftl" and can't get from "b.ftl".
> for this bug, I read all related codes, I find it only parse "#marco" for ftl file, the "#include" can't be supported now. so I need other temp solution for this case. I try to add the two ftl file into freemarker library as same namespace "w" on ".freemarker-ide.xml". but it only can get all marcos from the last ftl file. I read all related codes, I find it use the namespace to the key of Map on "org.jboss.ide.eclipse.freemarker.configuration.ConfigurationManager", It only support one namespace at one time. So I hack this codes, before add a MacroLibrary into the Map, I will check the Map, if it contain the current namespace, I will append some "_" char in the namespace begain, and use this new namespace for key to add MacroLibrary into the Map. When the Content Assist need list all marcos by file "org.jboss.ide.eclipse.freemarker.model.MacroInstance" on line 109, I will remove all begins "_" char for namespace.
> I know this is a bad solution for this case, but it can fixed this bug. I sincerely hope you can fix this bug by a good solution.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list