2010-06-07 79 views

回答

0

我剛剛發現把它做的方式,使用Eclipse擴展:

<plugin> 

    <extension 
     point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors"> 
     <hyperlinkDetector 
      activate="true" 
      class="testproject.ShouldAnnotationDetector" 
      id="testProject.shouldAnnotationDetector" 
      name="name" 
      targetId="org.eclipse.jdt.ui.javaCode"> 
     </hyperlinkDetector> 
    </extension> 

</plugin> 

其中testproject.ShouldAnnotationDetector應該延伸testproject.ShouldAnnotationDetector

相關問題