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

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

  2. <legend id='EHc9X'><style id='EHc9X'><dir id='EHc9X'><q id='EHc9X'></q></dir></style></legend>

    1. eclipse插件 - 将非java扩展文件视为java文件

      时间:2023-08-22

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

    3. <tfoot id='ZXkqe'></tfoot>

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

        <tbody id='ZXkqe'></tbody>
        <legend id='ZXkqe'><style id='ZXkqe'><dir id='ZXkqe'><q id='ZXkqe'></q></dir></style></legend>

            • <bdo id='ZXkqe'></bdo><ul id='ZXkqe'></ul>

                本文介绍了eclipse插件 - 将非java扩展文件视为java文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我们正在开发一个 Eclipse 插件,我们有一个类似.xyz"的扩展名,但它实际上包含java代码.JavaCore.createCompilationUnitFrom() 只接受扩展名为.java"的文件.JavaCore 有 JAVA_SOURCE_CONTENT_TYPE ,它返回它视为的扩展Java 源文件.

                We are developing an eclipse plugin and we have an extension like say, ".xyz" but it actually contains java code. JavaCore.createCompilationUnitFrom() accepts only files with extension ".java". JavaCore has JAVA_SOURCE_CONTENT_TYPE which returns the extensions that it treats as Java source files.

                我的问题是如何将.xyz"添加到此列表中?我希望 JavaCore 将.xyz"扩展名的文件视为 java 源文件.

                My questions is How do I add ".xyz" to this list ? I want JavaCore to treat files of ".xyz" extension as java source files.

                任何指针都会很有帮助.

                Any pointers would be very helpful.

                推荐答案

                错误 71460 在 eclipse3.1 中引入了对类 java 源的不同扩展的支持.
                bug 121715 提到 eclipse3.2,(用于支持 .aj 文件作为包含 Java 源):

                The bug 71460 has introduced support for different extension for java-like sources in eclipse3.1.
                The bug 121715 mentions for eclipse3.2, (for supporting .aj files as containing Java source):

                <content-type id="ajSource" name="AspectJ Source File" 
                              base-type="org.eclipse.jdt.core.javaSource"
                              file-extensions="aj"/>
                

                这篇关于eclipse插件 - 将非java扩展文件视为java文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:如何设置 IOConsole 的插入符号 下一篇:基于 Eclipse 表单的 XML 编辑器

                相关文章

                  <bdo id='fZtVz'></bdo><ul id='fZtVz'></ul>

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

              1. <tfoot id='fZtVz'></tfoot>
                <legend id='fZtVz'><style id='fZtVz'><dir id='fZtVz'><q id='fZtVz'></q></dir></style></legend>

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