Dispatch.java (7c448b18) | Dispatch.java (61161268) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 10 unchanged lines hidden (view full) --- 19 * 20 *************************************************************/ 21 22 23 24package com.sun.star.comp.test.deployment.passive_java; 25 26import com.sun.star.awt.MessageBoxButtons; | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 10 unchanged lines hidden (view full) --- 19 * 20 *************************************************************/ 21 22 23 24package com.sun.star.comp.test.deployment.passive_java; 25 26import com.sun.star.awt.MessageBoxButtons; |
27import com.sun.star.awt.MessageBoxType; |
|
27import com.sun.star.awt.Rectangle; 28import com.sun.star.awt.XMessageBox; 29import com.sun.star.awt.XMessageBoxFactory; 30import com.sun.star.awt.XWindowPeer; 31import com.sun.star.beans.PropertyValue; 32import com.sun.star.frame.DispatchDescriptor; 33import com.sun.star.frame.XDesktop; 34import com.sun.star.frame.XDispatch; --- 34 unchanged lines hidden (view full) --- 69 createMessageBox( 70 UnoRuntime.queryInterface( 71 XWindowPeer.class, 72 (UnoRuntime.queryInterface( 73 XDesktop.class, 74 smgr.createInstanceWithContext( 75 "com.sun.star.frame.Desktop", context)). 76 getCurrentFrame().getComponentWindow())), | 28import com.sun.star.awt.Rectangle; 29import com.sun.star.awt.XMessageBox; 30import com.sun.star.awt.XMessageBoxFactory; 31import com.sun.star.awt.XWindowPeer; 32import com.sun.star.beans.PropertyValue; 33import com.sun.star.frame.DispatchDescriptor; 34import com.sun.star.frame.XDesktop; 35import com.sun.star.frame.XDispatch; --- 34 unchanged lines hidden (view full) --- 70 createMessageBox( 71 UnoRuntime.queryInterface( 72 XWindowPeer.class, 73 (UnoRuntime.queryInterface( 74 XDesktop.class, 75 smgr.createInstanceWithContext( 76 "com.sun.star.frame.Desktop", context)). 77 getCurrentFrame().getComponentWindow())), |
77 new Rectangle(), "infobox", MessageBoxButtons.BUTTONS_OK, | 78 MessageBoxType.INFOBOX, MessageBoxButtons.BUTTONS_OK, |
78 "passive", "java"); 79 box.execute(); 80 UnoRuntime.queryInterface(XComponent.class, box).dispose(); 81 } catch (com.sun.star.uno.RuntimeException e) { 82 throw e; 83 } catch (com.sun.star.uno.Exception e) { 84 throw new WrappedTargetRuntimeException( 85 "wrapped: " + e.getMessage(), this, e); --- 14 unchanged lines hidden --- | 79 "passive", "java"); 80 box.execute(); 81 UnoRuntime.queryInterface(XComponent.class, box).dispose(); 82 } catch (com.sun.star.uno.RuntimeException e) { 83 throw e; 84 } catch (com.sun.star.uno.Exception e) { 85 throw new WrappedTargetRuntimeException( 86 "wrapped: " + e.getMessage(), this, e); --- 14 unchanged lines hidden --- |