}
private void showBrowser(final String url, final String target, final int w,
final int h, final boolean allowResize, final BrowserMessage message,
final String sourceRef) {
final UIFunctions functions = UIFunctionsManager.getUIFunctions();
if (functions == null) {
AEThread2 thread = new AEThread2("show browser " + url, true) {
public void run() {
final Display display = Display.getDefault();
display.asyncExec(new AERunnable() {
public void runSupport() {
BrowserWindow window = new BrowserWindow(
display.getActiveShell(), url, w, h, allowResize, false);
window.waitUntilClosed();
message.complete(false, true, null);
}
});
}
};
thread.start();
return;
}
AEThread2 thread = new AEThread2("show browser " + url, true) {
public void run() {
if (w == 0 && target != null) {
functions.viewURL(url, target, sourceRef);
} else {
functions.viewURL(url, target, w, h, allowResize, false);
}
message.complete(false, true, null);
}
};
thread.start();