I am trying to open an embedded browser in a RAP application, but I must be doing something wrong because it doesn't show up.
As far as I can see this is just standard code:
link.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
try {
// Browser b = new Browser(parent, SWT.NONE);
Browser b = new Browser(parent.getShell(), SWT.NONE);
// b.setUrl("http://www.eclipse.org");
b.setText("<html><body>This is Unicode HTML content from memory</body></html>");
} catch (SWTError e) {
// Error handling here
}
}
});
I can see the request go out, but the page is never shown.
If I replace it with the ExternalBrowser it works... but not as desired.
Any insight is highly appreciated.
Using Eclipse RAP 1.4.2 on Mac OS X.
Kind Regards,
Dutch.