Ines Pfauch wrote:
On 11.03.2005, at 10:15, Tom Schindl wrote:


But as already suggested by Christian
((XModel)UnoRuntime.queryInterface ("com.sun.star.XModel",xDesktop.getCurrentComponent())).getURL();



Sorry should have been ((XModel)UnoRuntime.queryInterface(XModel.class,xDesktop.getCurrentComponent())).getURL();


Tom

Should work.

Tom



No: I get the following error.

cannot resolve symbol
symbol : method queryInterface (java.lang.String,com.sun.star.lang.XComponent)
location: class com.sun.star.uno.UnoRuntime
XModel xmodel = (XModel)UnoRuntime.queryInterface("com.sun.star.frame.XModel", desktop);




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to