Accessing internal browser component

How can I access the internal browser component inside intellij so I can create my own browser windows etc.

4 comments

Which browser? The HTML Preview one that displays the rendered HTML file in its own editor?

To access this, you can try to make your plugin depend on the "HTML Preview" plugin (add htmlpreview.jar to your IDEA-JDK) and see if you can get anywhere from calling
org.jetbrains.idea.browser.HtmlPreviewApplicationComponent#createEditor() - although that looks kinda ugly because it creates a FileEditor instance that might not like to be embedded anywhere else. Good luck ;)

Sascha

0

We're going to introduce additional usage of the component in IDEA
pretty soon. You can expect an api to come at that moment. Right now you
can try to explore JxBrowser's api
(http://www.teamdev.com/jxbrowser/index.jsf) since we are using it for
doing the whole work.

0

Ok that makes things easier. I know you picked Mozilla because you're cross
platform, but what if I also want an Internet Explorer preview.


0

Johan Lund wrote:

Ok that makes things easier. I know you picked Mozilla because you're
cross platform, but what if I also want an Internet Explorer preview.

you should use any IE-embedding Java library on the market.

0

Please sign in to leave a comment.