Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » ExternalBrowser.open(browserWindowId, url, SWT.NONE);
ExternalBrowser.open(browserWindowId, url, SWT.NONE); [message #1131950] Thu, 10 October 2013 22:40 Go to next message
Eclipse User
Hi,

we are migrating our rap app from 1.5 to 2.1.1.

We need the following logic in 1.5:

String browserWindowId = "uniqueId";
String url = "http://anyurl.com";
ExternalBrowser.open(browserWindowId, url, SWT.NONE);
..
..
..
ExternalBrowser.close(browserWindowId);


The mirgration guide states to use the new UrlLauncher server, but it
does neither provide a method to pass an id on openURL, nor does it
provide a methode to close the window previously opened. How do we do
this in 2.1?

Regards,
Markus
Re: ExternalBrowser.open(browserWindowId, url, SWT.NONE); [message #1136873 is a reply to message #1131950] Mon, 14 October 2013 05:48 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1816
Registered: July 2009
Senior Member
Hi Markus,
ExternalBrowser is deprecated, but still in place and fully functional.
The new UrlLauncher does not provide methods to specify window id or
possibility to close the window. This topic is still under
consideration. You could stay with ExternalBrowser for now.
Best,
Ivan

On 10/11/2013 1:40 AM, Markus Krüger wrote:
> Hi,
>
> we are migrating our rap app from 1.5 to 2.1.1.
>
> We need the following logic in 1.5:
>
> String browserWindowId = "uniqueId";
> String url = "http://anyurl.com";
> ExternalBrowser.open(browserWindowId, url, SWT.NONE);
> .
> .
> .
> ExternalBrowser.close(browserWindowId);
>
>
> The mirgration guide states to use the new UrlLauncher server, but it
> does neither provide a method to pass an id on openURL, nor does it
> provide a methode to close the window previously opened. How do we do
> this in 2.1?
>
> Regards,
> Markus

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: ExternalBrowser.open(browserWindowId, url, SWT.NONE); [message #1136921 is a reply to message #1136873] Mon, 14 October 2013 06:31 Go to previous message
Eclipse User
Thank you Ivan for the explanation.

Am 14.10.2013 07:48, schrieb Ivan Furnadjiev:
> Hi Markus,
> ExternalBrowser is deprecated, but still in place and fully functional.
> The new UrlLauncher does not provide methods to specify window id or
> possibility to close the window. This topic is still under
> consideration. You could stay with ExternalBrowser for now.
> Best,
> Ivan
>
> On 10/11/2013 1:40 AM, Markus Krüger wrote:
>> Hi,
>>
>> we are migrating our rap app from 1.5 to 2.1.1.
>>
>> We need the following logic in 1.5:
>>
>> String browserWindowId = "uniqueId";
>> String url = "http://anyurl.com";
>> ExternalBrowser.open(browserWindowId, url, SWT.NONE);
>> .
>> .
>> .
>> ExternalBrowser.close(browserWindowId);
>>
>>
>> The mirgration guide states to use the new UrlLauncher server, but it
>> does neither provide a method to pass an id on openURL, nor does it
>> provide a methode to close the window previously opened. How do we do
>> this in 2.1?
>>
>> Regards,
>> Markus
>
Previous Topic:Application Freeze occasionally
Next Topic:RAP + AspectJ
Goto Forum:
  


Current Time: Mon Sep 22 02:26:44 GMT 2014

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

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