On Mon, Feb 1, 2010 at 5:27 PM, Kostas Georgiou <georg...@gmail.com> wrote:
> Hello Fabio,
> I don't know about its efficiency, but if it is implemented as a worker
> thread (like swingworker in swing) do you think that the halting will still
> be possible??
> I understand that generally this would be a second choice, or second
> citizen, but probably it could boost the jython part. In every case I would
> appreciate any help if I decide to go this route.
> thanx
> kostas

It's possible to halt it (and really simple):

E.g.: if the user goes on and writes:

while True:
   print 'something'

and you import that module while it has that logic, you won't regain
control over it (and that Thread would be lost and would keep one of
your processors busy until eclipse exits -- as a separate process it
can still be killed without any further problems in the Eclipse VM).

The class where the logic for handling communication with the shell is
the AbstractShell.java (so, that's the place you'd change).

Cheers,

Fabio

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
pydev-code mailing list
pydev-code@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to