What do you need to do?
You can distinguish source editors from the other kind of editors.
Also there is a chance that dynamic_cast could work, but it is known to fail for dlopened shared objects on linux.
I modify margin widths on every open document when I initialize my plugin... this is done by accessing the cbEditor's getControl() object. have to make sure that member is valid.
The dynamic cast does seem to work... dynamic cast was not in my vocabulary, so thanks for that.
As far as .so's on linux are concerned, I think it doesn't apply in this case... all three class variants I mentioned are built-in, yeah? So long as I'm not tying to use dynamic cast with classes I pull in via plugin, I got no problems?