aptana/Pydev — pull request #28 by jonahkichwacoders (2012-03-20 14:28:23+00:00)
Title: Interactive console drag drop

Hi,

Please find below my changes for adding drag and drop support to the interactive console.

The first commit adds basic TextTransfers, including editing within the current line with drag and drop.

The second commit adds a new mechanism to convert the local selection transfer into a snippet of python code when it is dropped on the console. This is a feature I am using externally to drag "things" from a TreeViewer into the console and have the selected object write itself out as a bit of Python code to access the same data. I have, as much for the purpose of documenting this change, added support for dropping PyVariables (from the Variables view) into the interactive console.

The final commit fixes a small bug when the EvaluateActionSetter does an execfile. The old code didn't escape single quotes in a file name. This commit is rolled in here because it uses the new Python Snippets class to escape the filename.

Please let me know if there are any questions you have or changes you would like me to make.

Thanks,
Jonah