Xdoclet2(一):找回Doclipse缺失的标签提示--Qtags

使用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 &quot;class&quot; &quot;method&quot; &quot;constructor&quot; &quot;field&quot;" 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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值