Eclipse Custom Decorator在运行时环境中工作,但在部署时不工作

时间:2016-05-25 19:59:24

标签: eclipse-plugin

我正在为Eclipse定制装饰器。当我在开发运行时环境中测试它时,装饰器正常工作。它显示在可用的标签装饰器列表中

(Windows > Prefences > General > Appearance > Label Decorations)

当我部署该功能时,装饰器不会出现在Eclipse启动的可用装饰器列表中。

我搜索了Stack Overflow,我发现了这篇文章Eclipse plug-in not working when deployed,但它并不是我所需要的。

感谢您提前花时间考虑。

这是我的plugin.xml

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

   <!--define the decorator -->
   <extension point="org.eclipse.ui.decorators">
      <decorator
         id="com.quickenloans.clutch.decorator"
         label="Packet System Decorator"
         state="true"
         class= "com.quickenloans.clutch.decorator.core.PSLightWeightFileDecorator"
         adaptable="true"
         lightweight="true">

         <enablement>
            <objectClass name="org.eclipse.core.resources.IResource"/>      
         </enablement>
         <description>
               Adds decorators to Packet System files that need to be saved back to DEV

        </description>
    </decorator>
</extension>

这是我的manifest.mf

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Decorator
Bundle-SymbolicName: com.quickenloans.clutch.decorator;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: com.quickenloans.clutch.decorator.core.DecoratorActivator
Bundle-Vendor: QUICKENLOANS
Require-Bundle: org.eclipse.ui,
    org.eclipse.core.runtime,
    org.eclipse.ui.workbench
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ActivationPolicy: lazy
Import-Package: com.quickenloans.argonauts.core.preferences,
    org.eclipse.core.resources,
    org.eclipse.ui.texteditor
Export-Package: com.quickenloans.clutch.decorator.constants,
    com.quickenloans.clutch.decorator.core

0 个答案:

没有答案