diff options
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java')
-rw-r--r-- | odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java index 4c8626a7d2ef..7b2aa68a8e96 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java @@ -162,7 +162,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, * @param lParams * the vector with all packed parameters of the original request */ - public void execOneway(/*IN*/ int nRequest,/*IN*/ Vector<?> lParams ) + public void execOneway(/*IN*/ int nRequest,/*IN*/ Vector<Object> lParams ) { synchronized(this) { @@ -181,11 +181,9 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, { com.sun.star.util.URL[] lOutURL = new com.sun.star.util.URL[1]; com.sun.star.beans.PropertyValue[][] lOutProps = new com.sun.star.beans.PropertyValue[1][]; - Vector[] lInParams = new Vector[1]; - lInParams[0] = lParams; - OnewayExecutor.codeDispatch( OnewayExecutor.DECODE_PARAMS , - lInParams , + OnewayExecutor.decodeDispatch( + lParams , lOutURL , lOutProps ); impl_dispatch(lOutURL[0],lOutProps[0]); @@ -238,7 +236,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, return; // pack the event and start thread - which call us back later - Vector<FrameActionEvent> lOutParams = new Vector<FrameActionEvent>(); + Vector<Object> lOutParams = new Vector<Object>(); lOutParams.add(aEvent); OnewayExecutor aExecutor = new OnewayExecutor( (IOnewayLink)this , @@ -271,19 +269,17 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, return; } - Vector[] lOutParams = new Vector[1]; com.sun.star.util.URL[] lInURL = new com.sun.star.util.URL[1]; com.sun.star.beans.PropertyValue[][] lInArguments = new com.sun.star.beans.PropertyValue[1][]; lInURL[0] = aURL ; lInArguments[0] = lArguments; - OnewayExecutor.codeDispatch( OnewayExecutor.ENCODE_PARAMS , - lOutParams , + Vector<Object> lOutParams = OnewayExecutor.encodeDispatch( lInURL , lInArguments ); OnewayExecutor aExecutor = new OnewayExecutor( (IOnewayLink)this , OnewayExecutor.REQUEST_DISPATCH , - lOutParams[0] ); + lOutParams ); aExecutor.start(); } |