I'm always unable to find a place for completions, so I'm starting this new one where Java types should be used for completions where this is possible. For example, I allow for a kludge where you can say a symbol is an instance of something with the Jython code:
from java.awt.image import BufferedImage
from java.awt import Graphics2D
graphs=BufferedImage(100,100,BufferedImage.TYPE_INT_ARGB).getGraphics()
assert isinstance( graphs, Graphics2D )
At this point the completions know that the symbol "graphs" is a Graphics2D. The idea is also that the completions engine could see that BufferedImage's getGraphics command is a Graphics object, and automatically allow completions based on that knowledge.
This code shows a bug where completions drops a line:
There's another system in there which assigns name__class to the Java class, but I can't figure out if this ever was finished. I've made it so instead of __class it will use __CLASSTYPE so that it is easier to search for.
See also https://github.com/autoplot/dev/tree/master/bugs/sf/2319