自己编写的 eclipse 插件适用于 Luna,但不适用于 Juno
Self written eclipse plugin works for Luna, but not for Juno
我在
开发了一个插件
日食Standard/SDK
版本:Luna Service Release 1 (4.4.1)
内部版本号:20140925-1800
而且效果很好。我可以通过我的 功能项目 将它安装到这个 eclipse 版本 (Luna)。但现在我尝试为
安装相同的插件
- Android 开发者工具
- Eclipse 平台 Juno
- 版本:4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7
- 版本号:M20130204-1200
而且它不起作用。我刚刚在 stackoverflow 上发现了一个类似的问题,但没有找到解决方案...... Eclipse plugin developed under Helios doesn't show in Juno .
有人知道吗?
一些注意事项:
- 我在安装时没有得到任何 warnings/errors 或类似的东西。
- 在 "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 Juno 中看到了插件,但是菜单项 "Enable AAL Validator Builder" 在这个中不可用:/
我想安装成功了,但是我的清单文件有问题....还是我的eclipse 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
您使用 java 8 作为最小执行环境插入。 Juno 不支持 java 8. 可能改变了最小执行环境。在 manifest.Mf 文件概述选项卡中,然后将其安装到您的 juno。它会起作用。
我在
开发了一个插件日食Standard/SDK
版本:Luna Service Release 1 (4.4.1)
内部版本号:20140925-1800
而且效果很好。我可以通过我的 功能项目 将它安装到这个 eclipse 版本 (Luna)。但现在我尝试为
安装相同的插件- Android 开发者工具
- Eclipse 平台 Juno
- 版本:4.2.1.v20130118-173121-9MF7GHYdG0B5kx4E_SkfZV-1mNjVATf67ZAb7
- 版本号:M20130204-1200
而且它不起作用。我刚刚在 stackoverflow 上发现了一个类似的问题,但没有找到解决方案...... Eclipse plugin developed under Helios doesn't show in Juno .
有人知道吗?
一些注意事项:
- 我在安装时没有得到任何 warnings/errors 或类似的东西。
- 在 "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 Juno 中看到了插件,但是菜单项 "Enable AAL Validator Builder" 在这个中不可用:/
我想安装成功了,但是我的清单文件有问题....还是我的eclipse 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
您使用 java 8 作为最小执行环境插入。 Juno 不支持 java 8. 可能改变了最小执行环境。在 manifest.Mf 文件概述选项卡中,然后将其安装到您的 juno。它会起作用。