现在的位置: 首页 > 综合 > 正文

struts-console 在eclips里的配置

2013年08月16日 ⁄ 综合 ⁄ 共 1423字 ⁄ 字号 评论关闭

                                    struts-console 在eclips里的配置
1.如果eclips正在运行关闭eclips
2.把struts-console下的com.jamesholmes.console.struts包copy到plugins下
3.如果是eclips3.0以前的版本 需要把plugin.xml改为plugin.xml.bak或者删除plugin.xml,把plugin-3.0.xml改为plugin.xml
4.struts-console能自动识别的文件:
  1.controls.tld 2.special-bean.tld 3.struts-bean.tld 4.struts-config.xml 5. struts-html.tld    6.struts-logic.tld 7.struts-nested.tld  8.struts-template.tld 9.struts-tiles.tld                 
   如果之前你有自定义的配置文件(例如:struts-config-test.xml),则需要把文件名称添加到plugin.xml(原来的plugin-3.0.xml)中
 例如:
 <extension point="org.eclipse.ui.editors">
  <editor name="Struts Console"
          icon="icons/console.gif"
          extensions="tld"
          filenames="struts-config.xml,tiles.xml,struts-config-test.xml,tiles-defs.xml,validation.xml"                      
          contributorClass="com.jamesholmes.console.adapters.eclipse.ConsoleContributor"      
          class="com.jamesholmes.console.adapters.eclipse.struts.StrutsConsoleEditor"
          id="com.jamesholmes.console.adapters.eclipse.struts.StrutsConsoleEditor">
  </editor>
 </extension>
  如果安装上才发现有些配置文件不识别,那就需要卸载插件--〉添加名称--〉安装插件 文件就可以识别了

//=========================================
还有更简单的方法:设置文件关联
1.windows-->preferences-->workbench-->File Associaltions 
2.  File Type添加 *.xml   Associated Editors 添加 struts-console
其它的文件也可以这样关联editors
.
注:(本人用的是eclips3.0+struts-console4.7/struts-console 4.8)
=============================================================

抱歉!评论已关闭.