No window in FieldFactory

I have a large class (1000+ lines) that extends DefaultFieldFactory. Within that class I’d like to do a showNotification() but there is no getWindow() or getApplication() methods in DefaultFieldFactory. What’s the best way to get a window object into this class?

The usual way I do it is use the ThreadLocal pattern for my application, so I can call MyApp.get().getMainWindow() from anywhere.

Thanks, that worked.