news.gmane.org wrote: > Hello, > I have a java application which intercepts events from an office bean > using the GlobalEventBroadcaster interface. > The problem is the following: my application will have different > instances of the bean running, and the GlobalEventBroadcaster intercepts > all events coming from all sources if I have understood properly, so I'm > not able to understand which document has been loaded on a onLoad event. > Now I'm able to find the name of the event, but I can't understand which > instance it is coming from. > My goal is to find at least the name of the file being loaded, or better > a unique ID identifying the instance of the bean which generated the event. > Any idea?
Why don't you take the EventSource argument of your notification call? It is a reference to the document for that the event is notified. Ciao, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
