[Pydev-users] [Users] RE: How to write commands to pydev console
Brought to you by:
fabioz
|
From: SourceForge.net <no...@so...> - 2011-04-21 23:48:06
|
The following forum message was posted by fabioz at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4498666: I haven't checked this, but I think it goes something like ... get the ScriptConsolePage ... scriptConsolePage.getViewer().getDocument().replace(offset, length, text) <-- just make sure to always only add content to the end of the document (adding to other places may have bad repercussions) -- whenever you add a new line, that line will be evaluated. Also, not sure exactly what you plan to do, but if you add content while it's waiting for a response of the server I'm not sure what will happen (it'll probably just ignore what you've written, but I may be wrong there). Cheers, Fabio |