0

I try to extend my plugin to support Python as well as Java.

For Java I have the org.eclipse.jdt.core.compilationParticipant extension point. So I can search for an Annotation in all CompilationUnits.

What is the equivalent or an alternative in PyDev for compilationParticipant. I know some concepts of PyDev are different. Maybe org.python.pydev.core.parser.IParserObserver?

For Python I want to search for Decorators.

4

1 回答 1

0

我自己找到了解决方案,这是扩展点:

<extension
  point="org.python.pydev.parser.pydev_parser_observer">
  <parser_observer
        class="YourClazz">
  </parser_observer>

你必须实现你自己的 IParserObserver

于 2013-06-16T09:27:45.540 回答