由于doclipse的提示冗余一些,所以,可自己定制提示信息。不需修改源碼,即可完成。
1. 解壓com.beust.doclipse.jar。
2. 找到/file/目錄下,想要修改的xml文件,如果是struts,即為struts.xml。
3. 如果xml中缺項(xiàng),加上即可,例@struts.action-forward中缺少redirect項(xiàng),只需添加<attribute name="redirect"/>。其中屬性required可以設(shè)定是否不需。
4. 然后在用jar打包,替換原先的jar,完成。
Eclipse中變換插件后,從2.1時(shí)發(fā)現(xiàn),刪除configration/org.eclipse.update目錄下的platform.xml文件,然后重新啟動(dòng)Eclipse,插件就會(huì)起作用了。