Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Can I open an Internet Explorer window from RCP app?(I want to open an IE window from RCP Application.)
Can I open an Internet Explorer window from RCP app? [message #665556] Fri, 15 April 2011 05:32 Go to next message
Saurabh Mising name is currently offline Saurabh Mising nameFriend
Messages: 21
Registered: October 2010
Junior Member
I want to set the URL and call a doPost() on the web server. Is it possible to do this from the RCP Application?.
I know that there is a Browser widget. However, this opens the browser within the RCP application. I want a new instance of IE to be separately opened.
Re: Can I open an Internet Explorer window from RCP app? [message #665635 is a reply to message #665556] Fri, 15 April 2011 10:22 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
On 15/04/11 11:02 AM, Saurabh wrote:
> I want to set the URL and call a doPost() on the web server. Is it
> possible to do this from the RCP Application?. I know that there is a
> Browser widget. However, this opens the browser within the RCP
> application. I want a new instance of IE to be separately opened.
>

Look at IWorkbenchBrowserSupport.createBrowser(). You can use the style
bits to open an external browser.

- Prakash

--
- Prakash
Platform UI Team, IBM

www.eclipse-tips.com
Is there a way to open an external browser and set URL with post request? [message #665641 is a reply to message #665635] Fri, 15 April 2011 10:52 Go to previous messageGo to next message
Saurabh Mising name is currently offline Saurabh Mising nameFriend
Messages: 21
Registered: October 2010
Junior Member
Hi Prakash, thanks for the inputs. We are able to launch the browser. We want to know how to set a URL with a post request.

Is there a way to open an external browser and set URL with post request?

Re: Is there a way to open an external browser and set URL with post request? [message #665708 is a reply to message #665641] Fri, 15 April 2011 14:53 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

Launching an external app from Eclipse uses the same mechanism as launching
an app from the command line. IE does not provide a way to specify post
args at its command line, so there isn't a way to do exactly what you want.
However IE does allow you to specify a url to initially navigate to, so if
you're not sending any sensitive data (eg.- a user password) then this could
provide a way to do what you want. For instance,
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.sn ippets/src/org/eclipse/swt/snippets/Snippet330.java?view=co
demonstrates using a Browser control to send a POST request. Asking Eclipse
to launch an external browser that navigates to url
" https://bugs.eclipse.org/bugs/buglist.cgi?emailassigned_to1= 1&bug_severity=enhancement&bug_status=NEW&email1 =platform-swt-inbox&emailtype1=substring"
gives a similar result.

If this approach is not acceptable then I think your only other option is to
not launch an external IE, and instead create a Shell containing a Browser
control and any other controls that are relevant. If you did this then you
could send POST args with Browser.setUrl(String, String, String) (@since
3.6). For an example of doing this at the level of SWT see
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org. eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet128 .java .

Grant


"Saurabh" <saurabh.talwalkar@siemens.com> wrote in message
news:io97js$ct0$1@news.eclipse.org...
> Hi Prakash, thanks for the inputs. We are able to launch the browser. We
> want to know how to set a URL with a post request.
> Is there a way to open an external browser and set URL with post request?
>
>
Previous Topic:UpdateManager Reconciling
Next Topic:Helios: Unhandled event loop exception
Goto Forum:
  


Current Time: Fri Apr 26 22:57:52 GMT 2024

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

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

Back to the top