Wednesday, March 29, 2006

New release is coming...

Ok, as usual, there are lot's of things happening in the Pydev world, so, let me tell you what you can expect for the new release...

1. Indentation: Just 1 word: 'Wow'
-- I don't even recognize it anymore ;-)

2. Jython scripting: you'll be able to script pydev with Jython (I've already wrote a longer post about this one, so, I'll keep it short).

3. Pydev Extensions got itself a console that you can use integrated with the editor (so, you can have all the interactive stuff from a prompt, and the editing features of Pydev) -- and you can always use it as a regular console if you want.

4. This one is a minor compared to the others (but still, noteworthy): Ctrl+. gets you to the next problem marker found in the document.

So, those are going to be the major features for the next release... I expect to release it next monday, so, keep tuned.

Tuesday, March 28, 2006

Eclipse FAQ published

Ok, this is just a post to remind me of a good place to find documentation when coding Eclipse.

Pretty Nice (and thanks to John Arthorne and Chris Laffra for writing it)

Wednesday, March 22, 2006

Scripting Pydev with Jython

Ok, the new release already has its 'feature-set' defined, and among its new features is the possibility of scripting Pydev with Jython.

-- This will be added to the Open Source version.

I've already implemented a first example, and it seems to work ok. You can check it at this link.

Basically, I create a PythonInterpreter (from jython) that keeps listening to the Editor (so, it receives notifications of setting actions, document, disposing, etc). That script is always called when a notification is sent, with some 'locals' that are put, such as the editor that launched the notification and the command received.

For the integration, all the scripts in the jysrc folder that start with 'pyedit' will be compiled and ran. And if you change it, it will automatically 'know' that it changed and will reload it... pretty neat ;-)

In the example, it only cares about the 'onCreateActions' notification, and binds an Action to an activation code (in the case, Ctrl+'.').

I know it is still a simple example, and the scripting engine has a long way to go (I didn't even test if more than one script would be able to communicate to the other, nor did I add the jython Lib to the path), but should be a good initial step for that integration ;-)

Also, making code-completion in Jython with Eclipse internals is something that I still have to define better (it would be insane adding all the Eclipse jars to the project). Hopefully, in the future, you'll just be able to say that it is a plugin project with Jython files, and it will be able to get all that (until then, all the imports will be undefined while editing it, so, no code-completion for it)... On the other way, you can already have code-completion for Jython-related stuff if you configure your project correctly.



Monday, March 13, 2006

New Pydev release: 1.0.3

Ok, this one contains some 'amenities' in the editor (in both versions):

- You're able to change the color and style of class and function names
- There is auto-dedent on elif and else

And in the Pydev Extensions version:

- added an 'open declaration' quick outline... (I was REALLY missing that when programming in python).

Basically, it opens a dialog with all the classes, methods and attributes (even if not top-level) and shows all so that you can go directly to some declaration (the keybinding is Ctrl+Shift+T -- and you need focus on the Pydev Editor).

So, enjoy your new features!



p.s. some bugs were fixed too ;-)