get java class loader within pathon

Diez B. Roggisch deets at nospam.web.de
Mon Nov 12 00:06:11 CET 2007


Diez B. Roggisch schrieb:
> blueblueblue2005 schrieb:
>> Hi, I have a java application with a UI compoennt of
>> FlyoutPaletteComposite (an GEF class), this UI compoennt displays a
>> scrollbar when needed. I am writing a Jython/Python script, and within
>> this script, I want to grab the scrollbar and move the bar up and down
>> to a specified location. I was told to get the class loader of the
>> compoent, but don't know how to do it. Can anybody kindly help?
> 
> FlyoutPaletteComposite.getClass().getClassLoader()

Oops. That should be

FlyoutPaletteComposite.getClassLoader()

of course. The above should work for an instance of FlyoutPaletteComposite.

Diez



More information about the Python-list mailing list