2015-09-01 36 views
1

我正在为Eclipse开发PDE,我通过markerAnnotationSpecification创建了注释(请参阅PDB help)。我需要那些没有左侧图标(断点处)的注释,但问题是,当我没有为我的注释指定图标参数时,它将使用symbolicIcon参数中的默认图标。目前,我正在使用一些黑客解决方案 - 加载一张空白图片。静态光标在用户定位图标位置时发生变化,这是不希望的行为。Eclipse PDE,markerAnnotationSpecification - define without icon

TL; DR; 有没有办法彻底清除(不使用)这个图标?

这里是我的规格扩展点的元素之一

<specification 
      annotationType="com.xxx.profiler.editor.highlight.highannotation" 
      colorPreferenceKey="covc_h" 
      colorPreferenceValue="255,120,120" 
      highlightPreferenceKey="covh_h" 
      highlightPreferenceValue="true" 
      icon="/icons/ph_icon.gif" <!-- empty icon --> 
      label="High Coverage" 
      overviewRulerPreferenceKey="covr_h" 
      overviewRulerPreferenceValue="false" 
      presentationLayer="1" 
      textPreferenceKey="covt_h" 
      textPreferenceValue="false" 
      textStylePreferenceKey="covs_h" 
      textStylePreferenceValue="BOX" 
      verticalRulerPreferenceKey="covv_h" 
      verticalRulerPreferenceValue="false"> 
</specification> 

//编辑:我发现,这应该与verticalRulerPreferenceValue做=“假”但由于某些原因,甚至认为它是在注释偏好设置中禁用,图像显示在我的注释中

回答

0

确定发现问题。 org.eclipse.ui.editors.markerAnnotationSpecification已链接到markerType via org.eclipse.ui.editors.annotationTypes插件。在这个插件中,我(以下教程)自动将参数super设置为某个值,其中涵盖了我在markerAnnotationSpecification中的设置。在删除继承参数后,一切都按预期工作。