WEB开发网
开发学院软件开发Java 开发一个调试 JSP 的 Eclipse 插件 阅读

开发一个调试 JSP 的 Eclipse 插件

 2009-12-16 00:00:00 来源:WEB开发网   
核心提示: 处理双击事件:<extensionpoint="org.eclipse.ui.editorActions"><editorContributiontargetID="com.jiaoly.editors.JSPEditor"id=&quo

处理双击事件:

       <extension point="org.eclipse.ui.editorActions"> 
     <editorContribution 
        targetID="com.jiaoly.editors.JSPEditor" 
        id="com.jiaoly.debug.ManageBreakpointRulerActionDelegate"> 
       <action 
          label="添加/删除断点" 
          class="com.jiaoly.debug.ManageBreakpointRulerActionDelegate" 
          actionID="RulerDoubleClick" 
          id="com.jiaoly.debug.ManageBreakpointRulerActionDelegate"> 
       </action> 
     </editorContribution> 
    </extension> 

添加右键菜单:

        <extension point="org.eclipse.ui.popupMenus"> 
      <viewerContribution 
        targetID="#TextRulerContext" 
        id="com.jiaoly.debug.ManageBreakpointRulerActionDelegate"> 
        <action 
          label="添加/删除断点" 
          class="com.jiaoly.debug.ManageBreakpointRulerActionDelegate" 
          menubarPath="addition" 
          id="com.jiaoly.debug.ManageBreakpointRulerActionDelegate"> 
        </action> 
      </viewerContribution> 
    </extension> 

上一页  3 4 5 6 7 8 9 10  下一页

Tags:开发 一个 调试

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接