summaryrefslogtreecommitdiff
path: root/wizards/com
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-09-08 13:17:08 +0000
committerOliver Bolte <obo@openoffice.org>2004-09-08 13:17:08 +0000
commitb935a193b56e8dab74a0df6788934af7658ffd56 (patch)
treed9f74bd49f1c59fa9fb10119609a5827dbde9855 /wizards/com
parentcd57f5ab88091b8d66914dea989123c7fc92492e (diff)
INTEGRATION: CWS qwizards2 (1.2.2); FILE MERGED
2004/08/13 10:17:59 rpiterman 1.2.2.2: made the wizard popup when the user tries to start another instance 2004/07/23 10:08:54 rpiterman 1.2.2.1: removed threads for creating dialogs. now opens a new document when starting wizard Issue number: Submitted by: Reviewed by:
Diffstat (limited to 'wizards/com')
-rw-r--r--wizards/com/sun/star/wizards/web/WebWizard.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/web/WebWizard.java b/wizards/com/sun/star/wizards/web/WebWizard.java
index 1b7cdb1dfb3e..922f6ac1788d 100644
--- a/wizards/com/sun/star/wizards/web/WebWizard.java
+++ b/wizards/com/sun/star/wizards/web/WebWizard.java
@@ -6,7 +6,9 @@
package com.sun.star.wizards.web;
+import com.sun.star.awt.XTopWindow;
import com.sun.star.lang.XMultiServiceFactory;
+import com.sun.star.uno.UnoRuntime;
import com.sun.star.wizards.common.Desktop;
/**
@@ -23,8 +25,15 @@ public class WebWizard extends WWD_Events{
super(xmsf);
}
- public void flash() {
- myOwnFrame.activate();
+ public void activate() {
+ try {
+ XTopWindow top = (XTopWindow)UnoRuntime.queryInterface(XTopWindow.class, xWindow );
+ if (top != null)
+ top.toFront();
+ }
+ catch (Exception ex) {
+ // do nothing;
+ }
}
public static void main(String args[]) {