Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to open new browser window to an external URL?
How to open new browser window to an external URL? [message #94165] Sat, 21 June 2008 18:09 Go to next message
David Donohue is currently offline David DonohueFriend
Messages: 104
Registered: July 2009
Senior Member
Hello!
My RAP action is able to open the current browser to a new URL. However I
would like to open this URL in a new browser window (or in a new tab).

This code successfully redirects the current browser to a new URL

Browser browser = new Browser(window.getShell(), SWT.NONE);
browser.setUrl(externalUrl);

I saw this post which made me think a solution was forthcoming.
http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg00316.html

Thanks for any help!
David
Re: How to open new browser window to an external URL? [message #94394 is a reply to message #94165] Mon, 23 June 2008 08:25 Go to previous messageGo to next message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi David,

maybe the class ExternalBrowser can help you?

Regards,
Stefan.

David Donohue schrieb:
> Hello!
> My RAP action is able to open the current browser to a new URL. However
> I would like to open this URL in a new browser window (or in a new tab).
> This code successfully redirects the current browser to a new URL
>
> Browser browser = new Browser(window.getShell(), SWT.NONE);
> browser.setUrl(externalUrl);
>
> I saw this post which made me think a solution was forthcoming.
> http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg00316.html
>
> Thanks for any help!
> David
>
Re: How to open new browser window to an external URL? [message #94486 is a reply to message #94394] Mon, 23 June 2008 22:20 Go to previous messageGo to next message
David Donohue is currently offline David DonohueFriend
Messages: 104
Registered: July 2009
Senior Member
Stefan,
Yes! Thanks, this opens a new browser to an externalUrl:

ExternalBrowser.open("my_window_id", externalUrl,
ExternalBrowser.LOCATION_BAR | ExternalBrowser.NAVIGATION_BAR |
ExternalBrowser.STATUS);

Question: is this documented anywhere? Is somebody hosting the RAP
javadoc?
Thanks,
David
Re: How to open new browser window to an external URL? [message #94517 is a reply to message #94486] Tue, 24 June 2008 08:39 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

David,

there is an "info center" hosted here:
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. rap.help/help/html/intro.html

This will be updated soon for the Ganymede (RAP 1.1) release and can
then be found under ...help34...

The most recent version can be accessed from the projects' home page
http://eclipse.org/rap
Click on the "Infocenter (ext)" link on the left hand side.

In addition, the tooling builds always contain the most recent
documentation.

Cheers,
Rüdiger


David Donohue wrote:
> Stefan,
> Yes! Thanks, this opens a new browser to an externalUrl:
>
> ExternalBrowser.open("my_window_id", externalUrl,
> ExternalBrowser.LOCATION_BAR | ExternalBrowser.NAVIGATION_BAR |
> ExternalBrowser.STATUS);
>
> Question: is this documented anywhere? Is somebody hosting the RAP
> javadoc?
> Thanks,
> David
>
Previous Topic:headless build RAP application
Next Topic:Tabs of Stacked Views have shortened text in RCx
Goto Forum:
  


Current Time: Tue Apr 23 06:10:50 GMT 2024

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

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

Back to the top