|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2002, 2011 Innoopract Informationssysteme GmbH and others. |
2 |
* Copyright (c) 2002, 2012 Innoopract Informationssysteme GmbH and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 18-23
Link Here
|
| 18 |
import org.eclipse.rwt.lifecycle.WidgetUtil; |
18 |
import org.eclipse.rwt.lifecycle.WidgetUtil; |
| 19 |
import org.eclipse.rwt.service.IServiceStore; |
19 |
import org.eclipse.rwt.service.IServiceStore; |
| 20 |
import org.eclipse.swt.*; |
20 |
import org.eclipse.swt.*; |
|
|
21 |
import org.eclipse.swt.events.DisposeEvent; |
| 22 |
import org.eclipse.swt.events.DisposeListener; |
| 23 |
import org.eclipse.swt.internal.SerializableCompatibility; |
| 21 |
import org.eclipse.swt.internal.widgets.IBrowserAdapter; |
24 |
import org.eclipse.swt.internal.widgets.IBrowserAdapter; |
| 22 |
import org.eclipse.swt.widgets.Composite; |
25 |
import org.eclipse.swt.widgets.Composite; |
| 23 |
import org.eclipse.swt.widgets.Display; |
26 |
import org.eclipse.swt.widgets.Display; |
|
Lines 141-146
Link Here
|
| 141 |
html = ""; |
144 |
html = ""; |
| 142 |
url = ""; |
145 |
url = ""; |
| 143 |
functions = new ArrayList<BrowserFunction>(); |
146 |
functions = new ArrayList<BrowserFunction>(); |
|
|
147 |
addDisposeListener( new BrowserDisposeListener() ); |
| 144 |
} |
148 |
} |
| 145 |
|
149 |
|
| 146 |
/** |
150 |
/** |
|
Lines 524-527
Link Here
|
| 524 |
protected void checkWidget() { |
528 |
protected void checkWidget() { |
| 525 |
super.checkWidget (); |
529 |
super.checkWidget (); |
| 526 |
} |
530 |
} |
|
|
531 |
|
| 532 |
private void onDispose() { |
| 533 |
executeResult = Boolean.FALSE; |
| 534 |
evaluateResult = null; |
| 535 |
executeScript = null; |
| 536 |
executePending = false; |
| 537 |
} |
| 538 |
|
| 539 |
//////////////// |
| 540 |
// Inner classes |
| 541 |
|
| 542 |
private class BrowserDisposeListener implements DisposeListener, SerializableCompatibility { |
| 543 |
public void widgetDisposed( DisposeEvent event ) { |
| 544 |
onDispose(); |
| 545 |
} |
| 546 |
} |
| 527 |
} |
547 |
} |