Re: [Pydev-code] Fwd: Viewing ASTs in PyDev
Brought to you by:
fabioz
|
From: Neil <nei...@ut...> - 2007-05-08 03:10:23
|
Thanks, that's exactly the pointer I needed! neil On 5/5/07, Fabio Zadrozny <fa...@gm...> wrote: > > > On 5/4/07, Neil <nei...@ut...> wrote: > > That makes sense... > > > > what I'm stuck on is trying to get my own plugin activated. I'm > > currently extending org.python.pydev.pydev_builder, but I'm not sure > > what this provides me... do I need to implement a particular > > interface, which is then added to the listener pool by Eclipse by > > default? > > > > It would be great if someone had some sample code on how to use these > > extension points... I'd rather not hack into the PyDev source > > directly. > > > Actually, I think the extension point > org.python.pydev.parser.pydev_parser_observer is more what > you want: > > <extension > point="org.python.pydev.parser.pydev_parser_observer "> > <parser_observer class="my.parser.Observer"/> > </extension> > > and the Observer class must implement > org.python.pydev.core.parser.IParserObserver (it already > gives you the generated ast -- the outline is also based on this extension). > > Cheers, > > Fabio > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > > -- Neil A. Ernst Ph.D. Candidate University of Toronto http://neilernst.net |