Re: [Pydev-code] Open a new file in PyDev Editor
Brought to you by:
fabioz
From: Michael P. <mic...@go...> - 2008-06-27 19:26:13
|
Fabio Zadrozny schrieb: >> I'm working at a research prototyp and I want to add a new eclipse view >> to PyDev. So far the view is finished but I want to open a new Editor >> window in the PyDev Editor with a double click of a row of my table >> view. I have the filename and the line number. So my questions are: >> >> Which package I have to include as dependencies? >> How is the name of the editor Plugin or how could I access it? And last >> but not least what looks like the method call for my parameters >> (filepath (as String) and line number)? A short example would be perfect >> or the hint to look at for the same behavior for instance in the >> Resource or Class View. > > It's something like: > > new org.python.pydev.editor.actions.PyOpenAction().run(itemPointer) > > It depends on the org.python.pydev plugin. > > The FilePointer can be customized with a file and the location for the > cursor (in many ways). > > Cheers, > > Fabio > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > Thank you very much! It works. For completness I have to add org.python.pydev.parser dependency but it doesn't matter. I'm happy that my plugin works. Kind regards, Michael |