Does anyone know how to use the “Controlled Embedded Browser” in SWT, which allows page manipulation? I can only find info on how to use the normal SWT browser, but I need to be able to interact with the loaded page. Thank you. Like this –
http://publib.boulder.ibm.com/infocenter/btt/v7r0/index.jsp?topic=%2Fcom.ibm.btt.application_presentation.doc_7.0%2Fdoc%2Freference%2Frichclient%2Fcontrolembededbrowser.html – but there is no instruction on how to initiate such a class.
Does anyone know how to use the Controlled Embedded Browser in SWT, which allows
Share
Here is an example from Eclipse SWT snippets website
Also this post might give you some insight on this.
Using Java Objects in JavaScript in Eclipse SWT Browser Control
Code snippet
BrowserFunction:
import org.eclipse.swt.browser.Browser;
import org.eclipse.swt.browser.BrowserFunction;
public class ListFilesFunction extends BrowserFunction {
" does not exist');");
}
associate this function with the browser control
public class View extends ViewPart { Browser browserCtl = null; ...}
invoke this function from JavaScript: