<i id='ngWjk'><tr id='ngWjk'><dt id='ngWjk'><q id='ngWjk'><span id='ngWjk'><b id='ngWjk'><form id='ngWjk'><ins id='ngWjk'></ins><ul id='ngWjk'></ul><sub id='ngWjk'></sub></form><legend id='ngWjk'></legend><bdo id='ngWjk'><pre id='ngWjk'><center id='ngWjk'></center></pre></bdo></b><th id='ngWjk'></th></span></q></dt></tr></i><div id='ngWjk'><tfoot id='ngWjk'></tfoot><dl id='ngWjk'><fieldset id='ngWjk'></fieldset></dl></div>

  1. <tfoot id='ngWjk'></tfoot>
  2. <small id='ngWjk'></small><noframes id='ngWjk'>

      <bdo id='ngWjk'></bdo><ul id='ngWjk'></ul>
  3. <legend id='ngWjk'><style id='ngWjk'><dir id='ngWjk'><q id='ngWjk'></q></dir></style></legend>
    1. 如何获取 Eclipse 中光标所在位置的 XML Dom 节点?

      How do I get the XML Dom node of where my cursor is in Eclipse?(如何获取 Eclipse 中光标所在位置的 XML Dom 节点?)
      <legend id='9MhDo'><style id='9MhDo'><dir id='9MhDo'><q id='9MhDo'></q></dir></style></legend>
      <tfoot id='9MhDo'></tfoot>

              <bdo id='9MhDo'></bdo><ul id='9MhDo'></ul>
                <tbody id='9MhDo'></tbody>
            • <i id='9MhDo'><tr id='9MhDo'><dt id='9MhDo'><q id='9MhDo'><span id='9MhDo'><b id='9MhDo'><form id='9MhDo'><ins id='9MhDo'></ins><ul id='9MhDo'></ul><sub id='9MhDo'></sub></form><legend id='9MhDo'></legend><bdo id='9MhDo'><pre id='9MhDo'><center id='9MhDo'></center></pre></bdo></b><th id='9MhDo'></th></span></q></dt></tr></i><div id='9MhDo'><tfoot id='9MhDo'></tfoot><dl id='9MhDo'><fieldset id='9MhDo'></fieldset></dl></div>

                <small id='9MhDo'></small><noframes id='9MhDo'>

              1. 本文介绍了如何获取 Eclipse 中光标所在位置的 XML Dom 节点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                如何在我正在构建的 Eclipse 自定义 XML 编辑器中获取指向光标所在位置的 xml dom 节点和 xpath.它是一个文本编辑器.到目前为止,我正在实施 IContentAssistProcessor.

                How do I get the xml dom node and xpath to where my cursor is in an Eclipse custom XML editor that I am building. It is a textEditor. I am implementing IContentAssistProcessor thus far.

                推荐答案

                可以获取文本编辑器中的光标,您可以实现一个存储 XML 节点的位置 使用 SAX 定位器.对于鼠标事件,您可以扫描文档并找到最佳匹配节点.我不确定它的性能如何,但这是我要开始的地方.

                You can get the position of the cursor in the text editor and you can implement an XML reader that stores the locations of the XML nodes using the SAX Locator. For a mouse event, you could then scan the document and find the best matching node. I am not sure how performant this is but this is where I would start.

                这篇关于如何获取 Eclipse 中光标所在位置的 XML Dom 节点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                How can I specify the default JVM arguments for programs I run from eclipse?(如何为从 Eclipse 运行的程序指定默认 JVM 参数?)
                Class JavaLaunchHelper is implemented in both ... libinstrument.dylib. One of the two will be used. Which one is undefined(JavaLaunchHelper 类在... libinstrument.dylib 中都实现了.将使用两者之一.哪个是未定义的) - IT屋-程序员软件开发技术分享
                Running Eclipse on Windows 7 JRE and JDK not found(找不到在 Windows 7 JRE 和 JDK 上运行 Eclipse)
                StringBuilder vs. .concat vs. quot;+quot; Operator relative performance different in eclipse than command line?(StringBuilder vs. .concat vs. “+eclipse中的操作员相对性能与命令行不同?)
                Is there a maximum number you can set Xmx to when trying to increase jvm memory?(尝试增加 jvm 内存时,您可以将 Xmx 设置为最大数量吗?)

                <small id='T3fRn'></small><noframes id='T3fRn'>

                    <tbody id='T3fRn'></tbody>
                  <i id='T3fRn'><tr id='T3fRn'><dt id='T3fRn'><q id='T3fRn'><span id='T3fRn'><b id='T3fRn'><form id='T3fRn'><ins id='T3fRn'></ins><ul id='T3fRn'></ul><sub id='T3fRn'></sub></form><legend id='T3fRn'></legend><bdo id='T3fRn'><pre id='T3fRn'><center id='T3fRn'></center></pre></bdo></b><th id='T3fRn'></th></span></q></dt></tr></i><div id='T3fRn'><tfoot id='T3fRn'></tfoot><dl id='T3fRn'><fieldset id='T3fRn'></fieldset></dl></div>
                  1. <tfoot id='T3fRn'></tfoot>

                      <bdo id='T3fRn'></bdo><ul id='T3fRn'></ul>
                      <legend id='T3fRn'><style id='T3fRn'><dir id='T3fRn'><q id='T3fRn'></q></dir></style></legend>