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:
This commit is contained in:
Oliver Bolte 2004-09-08 13:17:08 +00:00
parent cd57f5ab88
commit b935a193b5

View file

@ -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[]) {