Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to add a browser editor in RCP ?
How to add a browser editor in RCP ? [message #436358] Wed, 07 September 2005 10:36 Go to next message
Cedric Hyppolite is currently offline Cedric HyppoliteFriend
Messages: 22
Registered: July 2009
Junior Member
Hi,

I am trying to add a browser editor in my RCP.
I need the browser editor instead of a browser view to be able to open
multiple html at the same time.


I am running Eclipse 3.1 (on MacOS), where there is an internal browser
that I can use in the IDE.

Does anyone has a pointer on the API documentation explaining how to
open a browser editor on an URL ?

Doc on opening any editor if it can apply to the browser would be
welcome too.


Thanks.

C├ędric
Re: How to add a browser editor in RCP ? [message #436359 is a reply to message #436358] Wed, 07 September 2005 10:52 Go to previous messageGo to next message
Ricky is currently offline RickyFriend
Messages: 204
Registered: July 2009
Senior Member
> I am trying to add a browser editor in my RCP.
> I need the browser editor instead of a browser view to be able to open
> multiple html at the same time.

Its not what you asked for but it is possible to have more than one view
instance of a given view. "allowMultiple" in plugin.xml and the concept of
secondary IDs are starting points.

hth,

Ricky
Re: How to add a browser editor in RCP ? [message #436366 is a reply to message #436358] Wed, 07 September 2005 14:01 Go to previous messageGo to next message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
Assuming you have the org.eclipse.ui.browser plugin installed in your RCP
application, IWorkbench.getBrowserSupport().createBrowser(...) will open a
new browser in an Editor.
Re: How to add a browser editor in RCP ? [message #436411 is a reply to message #436366] Wed, 07 September 2005 17:10 Go to previous messageGo to next message
Cedric Hyppolite is currently offline Cedric HyppoliteFriend
Messages: 22
Registered: July 2009
Junior Member
Neil Bartlett wrote:

> Assuming you have the org.eclipse.ui.browser plugin installed in your
> RCP application, IWorkbench.getBrowserSupport().createBrowser(...) will
> open a new browser in an Editor.
>

Thanks.

The following bug discussion thread gives an overview of the history of
the browser support addition including the function call.

PlatformUI.getWorkbench().getBrowserSupport().createBrowser
(AS_EXTERNAL, "myId", null, null).openURL(url);

https://bugs.eclipse.org/bugs/show_bug.cgi?id=69647


Best regards,

Cedric
Re: How to add a browser editor in RCP ? [message #448554 is a reply to message #436366] Wed, 26 April 2006 08:58 Go to previous messageGo to next message
martin is currently offline martinFriend
Messages: 49
Registered: July 2009
Member
Neil Bartlett wrote:
> Assuming you have the org.eclipse.ui.browser plugin installed in your
> RCP application, IWorkbench.getBrowserSupport().createBrowser(...) will
> open a new browser in an Editor.
>

I also have troubles with this. I currently do:

PlatformUI.getWorkbench().getBrowserSupport().createBrowser(
IWorkbenchBrowserSupport.AS_EDITOR, "Preview", "Preview", "")
..openURL(url);

This starts the external browser application but does not open a new
editor. How can I make the browser to be hosted inside an eclipse editor
window instead?

Regards,
M
Re: How to add a browser editor in RCP ? [message #667870 is a reply to message #448554] Mon, 02 May 2011 14:27 Go to previous messageGo to next message
Iago Seara is currently offline Iago SearaFriend
Messages: 2
Registered: May 2011
Junior Member
Hi, I have the same problem, did you solve the problem?

Thanks!

I
Re: How to add a browser editor in RCP ? [message #776727 is a reply to message #667870] Mon, 09 January 2012 07:03 Go to previous message
Mostafa Barmshory is currently offline Mostafa BarmshoryFriend
Messages: 2
Registered: October 2009
Junior Member
in the preference > general > Web Browser you should chick 'use internal browser' to take an effect.
However I know anything about its key and scope with in the preference storage to manipulate it from the code.
I also have the problem. With external browser all things is ok, but with internal browser it goes wrong with following exception:
java.lang.NullPointerException
at org.eclipse.ui.internal.browser.DefaultBrowserSupport.getWindowKey(DefaultBrowserSupport.java:77)
at org.eclipse.ui.internal.browser.DefaultBrowserSupport.createBrowser(DefaultBrowserSupport.java:141)
at org.eclipse.ui.internal.browser.DefaultBrowserSupport.createBrowser(DefaultBrowserSupport.java:162)
at org.eclipse.ui.internal.browser.WorkbenchBrowserSupport.createBrowser(WorkbenchBrowserSupport.java:104)
...
Previous Topic:How to limit Label control height?
Next Topic:Editors not reflecting Appearance changes in RCP application
Goto Forum:
  


Current Time: Mon Dec 22 22:49:20 GMT 2014

Powered by FUDForum. Page generated in 0.01984 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software