自编的eclipse插件适用于Luna,但不适用于Juno

时间:2015-03-17 01:15:34

标签: java eclipse eclipse-plugin eclipse-juno manifest.mf

我在

中开发了一个插件
  • Eclipse Standard / SDK

  • 版本:Luna Service Release 1(4.4.1)

  • 构建ID:20140925-1800

它工作正常。我可以通过我的功能项目将它安装到这个eclipse版本(Luna)。但现在我尝试为

安装相同的插件
  • Android开发人员工具
  • Eclipse Platform Juno
  • 版本:4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7
  • 构建ID:M20130204-1200

它不起作用。我刚刚在堆栈溢出上发现了一个类似的问题,但不是解决方案...... Eclipse plugin developed under Helios doesn't show in Juno

有没有人有想法?

有些说明:

  • 安装时我没有收到任何警告/错误或类似的内容。
  • 在“plugins \ AAL_Validator_Eclipse_Plugin_1.0.0.201503170126”中存在我的插件
  • 在“\ eclipse \ configuration \ org.eclipse.equinox.simpleconfigurator \ bundles.info”中是“AAL_Validator_Eclipse_Plugin,1.0.0.201503170126,plugins / AAL_Validator_Eclipse_Plugin_1.0.0.201503170126 /,4,false”第一个条目
  • 我在Eclipse Eclipse中看到了插件,但是这个菜单条目“启用AAL Validator Builder”不可用:/

我想安装成功了,但是我的清单文件出了问题......或者这是我的日食Juno版本的问题?

以下是我的插件的一些文件:

MANIFEST.MF

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Bundle-SymbolicName: AAL_Validator_Eclipse_Plugin;singleton:=true
Bundle-Version: 1.0.0.qualifier
Require-Bundle: org.eclipse.core.resources,
 org.eclipse.core.runtime,
 org.eclipse.ui
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ClassPath: lib/jericho-html-3.3.jar,
 .
Bundle-Vendor: %Bundle-Vendor

的plugin.xml

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

   <extension
         id="validationBuilder"
         name="AAL Validation Builder"
         point="org.eclipse.core.resources.builders">
      <builder
            hasNature="true">
         <run
               class="aal.hfu.html_parser.eclipse.plugin.ValidationBuilder">
                <parameter name="optimize" value="true" />
                <parameter name="comment" value="Builder comment" />
         </run>
      </builder>
   </extension>
   <extension
         id="nature"
         name="AAL Validation Nature"
         point="org.eclipse.core.resources.natures">
      <runtime>
         <run
               class="aal.hfu.html_parser.eclipse.plugin.Nature">
         </run>
      </runtime>
      <builder
            id="AAL_Validator_Eclipse_Plugin.validationBuilder">
      </builder>
   </extension>
   <extension
         point="org.eclipse.ui.commands">
      <category
            name="AAL Validator Nature commands"
            id="AAL_Validator_Eclipse_Plugin.nature.category">
      </category>
      <command
            name="Toggle AAL Validator Nature"
            defaultHandler="aal.hfu.html_parser.eclipse.plugin.AddRemoveNatureHandler"
            categoryId="AAL_Validator_Eclipse_Plugin.nature.category"
            id="AAL_Validator_Eclipse_Plugin.addRemoveNature">
      </command>
   </extension>
   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="popup:org.eclipse.ui.projectConfigure?after=additions">
         <command
               commandId="AAL_Validator_Eclipse_Plugin.addRemoveNature"
               label="Disable AAL Validator Builder"
               style="push">
            <visibleWhen
                  checkEnabled="false">
               <with
                     variable="selection">
                  <count
                        value="1">
                  </count>
                  <iterate>
                     <adapt
                           type="org.eclipse.core.resources.IProject">
                        <test
                              value="AAL_Validator_Eclipse_Plugin.nature"
                              property="org.eclipse.core.resources.projectNature">
                        </test>
                     </adapt>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
         <command
               commandId="AAL_Validator_Eclipse_Plugin.addRemoveNature"
               label="Enable AAL Validator Builder"
               style="push">
            <visibleWhen
                  checkEnabled="false">
               <with
                     variable="selection">
                  <count
                        value="1">
                  </count>
                  <iterate>
                     <adapt
                           type="org.eclipse.core.resources.IProject">
                        <not>
                           <test
                                 value="AAL_Validator_Eclipse_Plugin.nature"
                                 property="org.eclipse.core.resources.projectNature">
                           </test>
                        </not>
                     </adapt>
                  </iterate>
               </with>
            </visibleWhen>
         </command>
      </menuContribution>
   </extension>
   <extension
         id="AalProblem"
         name="AAL Problem"
         point="org.eclipse.core.resources.markers">
      <super
            type="org.eclipse.core.resources.problemmarker">
      </super>
      <persistent
            value="false">
      </persistent>
   </extension>

</plugin>

build.properties

source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
               META-INF/,\
               .,\
               OSGI-INF/,\
               lib/jericho-html-3.3.jar,\
               lib/

以下是我的插件功能的一些文件:

feature.xml的

<?xml version="1.0" encoding="UTF-8"?>
<feature
      id="AAL_Validator_Eclipse_Plugin_Feature"
      label="AAL_Validator_Eclipse_Plugin_Feature"
      version="1.0.0.qualifier"
      provider-name="HFU">

   <description url="http://www.example.com/description">
      This validator is a part of the master thesis by xyz.
   </description>

   <copyright url="http://www.example.com/copyright">
      [Enter Copyright Description here.]
   </copyright>

   <license url="http://www.example.com/license">
      Open Source
   </license>

   <requires>
      <import plugin="org.eclipse.core.resources"/>
      <import plugin="org.eclipse.core.runtime"/>
      <import plugin="org.eclipse.ui"/>
   </requires>

   <plugin
         id="AAL_Validator_Eclipse_Plugin"
         download-size="192"
         install-size="185"
         version="1.0.0.qualifier"/>

</feature>

build.properties

bin.includes = feature.xml

1 个答案:

答案 0 :(得分:0)

使用java 8作为最小执行环境插入。 Juno不支持java 8.可能会改变最小的执行环境。在manifest.Mf文件概述选项卡中,然后将其安装到您的juno。它会起作用。

相关问题