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.
Wednesday, March 29, 2006
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.
http://wiki.eclipse.org/index.php/Eclipse_FAQs
Pretty Nice (and thanks to John Arthorne and Chris Laffra for writing it)
http://wiki.eclipse.org/index.php/Eclipse_FAQs
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.
Cheers,
Fabio
-- 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.
Cheers,
Fabio
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!
Cheers,
Fabio
p.s. some bugs were fixed too ;-)
- 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!
Cheers,
Fabio
p.s. some bugs were fixed too ;-)
Saturday, February 25, 2006
Pydev Extensions
Wow, just now I realized that I still haven't posted about it... which is a real shame! ;-)
Well, Pydev Extensions (http://www.fabioz.com/pydev/) is a commercial plugin dedicated to extending Pydev (and adding those 'power-features' that can make your life so much easier). It has many new features, and has a lot of development going on.
The most 'noteworthy' (and already very mature) features are:
* Code completion with auto-import: I don't know how I ever managed to write code without it!!
* A 'real time', embedded code-analysis. This one is pretty nice, as it also allows getting errors while you're writing.
* Quick fixes for the errors found... From these, I guess that the most noteworthy 'quick-fix' (activated with Ctrl+1) is the one that allows you to automatically make an import on some undefined token.
* A go to definition that is a replacement to the one provided by BRM (again, I don't know how I managed without it before...)
* A debug server (allows debugging programs not ran directly from pydev) and a debug console (so that you can inspect things easier when you hit a breakpoint).
Well, there are more features... you can find the complete set at: http://www.fabioz.com/pydev/manual_adv_features.html
Also, it has *almost* a full month of existance -- which is still being celebrated -- And has lots of users already!
You can grab it and use it for 30 days without a license, so, ENJOY!
Cheers,
Fabio
p.s. This week we have 'carnival' here in Brazil, and I'll probably only be back on Tuesday... so, your e-mails and posts might take a little longer than usual to be answered.
Well, Pydev Extensions (http://www.fabioz.com/pydev/) is a commercial plugin dedicated to extending Pydev (and adding those 'power-features' that can make your life so much easier). It has many new features, and has a lot of development going on.
The most 'noteworthy' (and already very mature) features are:
* Code completion with auto-import: I don't know how I ever managed to write code without it!!
* A 'real time', embedded code-analysis. This one is pretty nice, as it also allows getting errors while you're writing.
* Quick fixes for the errors found... From these, I guess that the most noteworthy 'quick-fix' (activated with Ctrl+1) is the one that allows you to automatically make an import on some undefined token.
* A go to definition that is a replacement to the one provided by BRM (again, I don't know how I managed without it before...)
* A debug server (allows debugging programs not ran directly from pydev) and a debug console (so that you can inspect things easier when you hit a breakpoint).
Well, there are more features... you can find the complete set at: http://www.fabioz.com/pydev/manual_adv_features.html
Also, it has *almost* a full month of existance -- which is still being celebrated -- And has lots of users already!
You can grab it and use it for 30 days without a license, so, ENJOY!
Cheers,
Fabio
p.s. This week we have 'carnival' here in Brazil, and I'll probably only be back on Tuesday... so, your e-mails and posts might take a little longer than usual to be answered.
Subscribe to:
Posts (Atom)