samedi 28 mars 2015

SWT Browser in eclipse plugin behaves differently in Mac and Windows

I'm using a SWT Browser in my eclipse plugin project. It shows a browser in a view that displays HTMLs generated locally. On Mac everything works fine. I can open a local link in the same browser using the code



browser.addOpenWindowListener(new OpenWindowListener() {
public void open(WindowEvent event) {
event.browser = browser;
event.required = true;
}
});


Now I want the same behavior in Windows, but I could never succeed. Nothing happens when I click on the link. And if I remove these codes, an Internet Explorer window opens when I click on the lick, not what I want.


I have seen that in windows the SWT Browser is using an IE style. And I have read posts on how to make Mozilla style Browser in windows. But I don't want users to do any extra setting or install anything else.


Does anyone have a solution?


Aucun commentaire:

Enregistrer un commentaire