Eclipse RCP - 如何使用Annotation在文本编辑器中显示错误

时间:2014-06-16 09:44:45

标签: java annotations eclipse-rcp

注释用于在文本编辑器上显示错误。 一旦添加了AnnoationTypes扩展名,如下所示。您能否告诉我将Annotation绑定到文本编辑器需要做些什么。

<extension
         point="org.eclipse.ui.editors.annotationTypes">
      <type
            markerSeverity="2"
            name="com.fd.vplus.prac.editor.Error"
            super="org.eclipse.ui.workbench.texteditor.error">
      </type>
      <type
            markerSeverity="1"
            name="com.fd.vplus.prac.editor.Warning"
            super="org.eclipse.ui.workbench.texteditor.warning">
      </type>
   </extension>

先谢谢

0 个答案:

没有答案
相关问题