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 18:40  |
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 01:48   |
Eclipse User |
|
|
|
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 02:31  |
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
>
|
|
|
Goto Forum:
Current Time: Tue Jul 22 15:24:13 EDT 2025
Powered by FUDForum. Page generated in 0.04089 seconds
|