使用Xdoclet2的Eclipse插件Doclipse,发现里面仅提供了Plugin的Tag的提示。而如果要自已写Plugin的时候就发现这个插件没有提供最原始的Tag的提示,即Qtags。参考了Doclipse的文档之后想自已动手写一个XML文件来提供提示功能。(Doclipse插件除了提供默认的Plugin 配文件,还可以从用户指定的一个文件查找符合格式的Plugin配置文件)。后来发现Xdoclet2的源码中的Plugin里居然有Qtags的Plugin,这样一来,代码比较搞笑,在Qtags的源码里面使用Qtags的标签生成Qtags标签提示文件。而我再次去Doclipse的包里找的时候,却没发现有Qtags的配置,郁闷。于是只有自已配Ant脚本,手动生成Qtags的配置文件。
<?xml version="1.0" encoding="ISO-8859-1"?>
<doclipse>
<description>@ tags</description>
<tag target="class" doc="" name="@command.class">
<attribute required="true" doc="" name="name"/>
<attribute required="false" doc="" name="generate"/>
</tag>
<tag target="" doc="class level tag to specify deprecated aliases of current tag. those will be
bombed on creation" name="@qtags.alias"/>
<tag target="class method" doc="specify one of the allowed values for tag or parameter" name="@qtags.allowed-value"/>
<tag target="method" doc="specify default value for tag or tag parameter. this can be used only
on method level." name="@qtags.default"/>
<tag target="class" doc="class level tag to specify deprecation of \@-tag." name="@qtags.deprecated"/>
<tag target="class" doc="class level tag to specify that marked interface shall be not generated
itself. ( But methods will be used ) This is necessary to allow tag interface inheritance. ( For example,
hibernate has load of collection tags which share a lot of common parameters. )" name="@qtags.ignore"/>
<tag target="method" doc="Specify the token used in list processing" name="@qtags.list-token"/>
<tag target="class" doc="class level tag to specify allowed locations. this tag cab ne used only on class level to specify
locations where usage is allowed. Recognized values are "class" "method" "constructor" "field"" name="@qtags.location"/>
<tag target="class" doc="specify that this tag can be use once on given program element" name="@qtags.once"/>
<tag target="method" doc="specify that certain value is required to be present." name="@qtags.required"/>
</doclipse>
分享到:
相关推荐
xdoclet-doclipse-1.2.3
其中包括xdoclet2与hibernate3.6的整合xdoclet1.2.3分别与spring3.0.5、struts1.3、struts2.1、 servlet的整合配置。其中还有相应的.xdt文件模板,其中struts2.1.xdt为自己写的。 需要xdoclet1.2.3 ...
xdoclet-bin-1.2.1.zip和xdoclet-bin-1.2.3.zip
maven2-xdoclet2-plugin-2.0.5.jar
本插件安装后,可以帮助大家对XDOCLET编写代码进行提示,对不太熟悉该插件并想顺溜使用的朋友是个福音!
xdoclet-bin-1.2.1,xdoclet-bin-1.2.1,xdoclet-bin-1.2.1
maven2-xdoclet2-plugin-2.0.6.jar
使用eclipseJEE版开发网站,之前工程运行很正常,今天启动后重命名...但是新建的工程又无法运行 看到右键--properity--xDoclet提示Missing library: xdoclet-1.2.1.jar. Select the home directory for XDoclet. 1.2.1
maven2-xdoclet2-plugin-2.0.7-sources.jar
XDoclet是一个开源项目,可以从这里得到他:http://xdoclet.sourceforge.net/xdoclet/ 。 XDoclet可以通过你在java源代码中的一些特殊的注释信息,自动为你生成配置文件、源代码等等,例如web、ejb的部署描述文件...
XDoclet是一个开源项目,可以从这里得到他:http://xdoclet.sourceforge.net/xdoclet/ 。 XDoclet可以通过你在java源代码中的一些特殊的注释信息,自动为你生成配置文件、源代码等等,例如web、ejb的部署描述文件...
xdoclet-plugins-1.0.3 OA security模块用
通过导入此文件模板,让Eclipse可以支持标签提示, 导入步骤:Eclipse -> Window -> Preferences -> Java -> Editor -> Templates -> Import -> templates.xml
xdoclet xdoclet-plugins-1.0.3.rar
xdoclet-plugins-1.0.3下载附doc xdoclet-plugins-1.0.3下载附doc
XDoclet可以通过你在java源代码中的一些特殊的注释信息,自动为你生成配置文件、源代码等等,例如web、ejb的部署描述文件、为你生成struts的struts-config.xml配置文件、javascript校验等。 正如《XDoclet in ...
maven2-xdoclet2-plugin-2.0.7.jar