java - Self written eclipse plugin works for Luna, but not for Juno -
i developed plugin in
eclipse standard/sdk
version: luna service release 1 (4.4.1)
build id: 20140925-1800
and works fine. install via feature project eclipse version (luna). try install same plugin for
- android developer tools
- eclipse platform juno
- version: 4.2.1.v20130118-173121-9mf7ghydg0b5kx4e_skfzv-1mnjvatf67zab7
- build id: m20130204-1200
and not work. found similiar problem on stackoverflow, not solution ... eclipse plugin developed under helios doesn't show in juno .
does have idea?
some notes:
- i haven't got warnings/errors or while installation.
- in "plugins\aal_validator_eclipse_plugin_1.0.0.201503170126" exists plugin
- in "\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" first entry
- i see plugin in eclipse juno, menu-entry "enable aal validator builder" not available in 1 :/
i guess installation successful, wrong in manifest file.... or problem of eclipse juno version?
here files of plugin:
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/
here files of plugin feature:
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"> validator part of master thesis 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
you plug in using java 8 minimal execution environment. juno doesn't support java 8. change minimal execution environment. in manifest.mf file overview tab install juno. work.
Comments
Post a Comment