Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Link support
Link support [message #5999] Tue, 13 March 2007 15:10 Go to next message
Eclipse UserFriend
Hi,
I would like to create a Link in my Application to a different website.
Now I am searching for something like <a href="someURL" target="_blank">
in html. In an SWT based Appication I use
PlatformUI.getWorkbench().getBrowserSupport() to create a new Brwoser
Windos, but I didn't find the BrwoserSupprt in RAP.
How to handle this in RAP?
Regards
Karsten
Re: Link support [message #6896 is a reply to message #5999] Tue, 13 March 2007 15:54 Go to previous messageGo to next message
Eclipse UserFriend
Hi Karsten,

currently there is no BrowserSupport in the RAP Workbench and it is yet
unclear if there ever will be.
To open a browser window that shows a URL You could use the setText
method of the Browser widget to set a minimal HTML page that just
contains Your a-tag. Probably not the most beautiful way but it should work.
Once a Link widget is available, it could probably be used therefore.
Of course the most decent way would be to implement a custom widget. You
could have a look at Label and LabelLCA on how to implement this. The
qooxdoo Label widget also accepts some HTML, an a-tag at least.
Further information on how to implement Your own widget can also found
in the material from the EclipseCon RAP Tutorial
http://eclipsezilla.eclipsecon.org/attachment.cgi?id=468
http://eclipsezilla.eclipsecon.org/attachment.cgi?id=515

Hope that helps
Rüdiger


Karsten Panier wrote:
> Hi,
> I would like to create a Link in my Application to a different website.
> Now I am searching for something like <a href="someURL" target="_blank">
> in html. In an SWT based Appication I use
> PlatformUI.getWorkbench().getBrowserSupport() to create a new Brwoser
> Windos, but I didn't find the BrwoserSupprt in RAP.
> How to handle this in RAP?
> Regards
> Karsten
Re: Link support [message #7273 is a reply to message #6896] Wed, 14 March 2007 13:19 Go to previous message
Eclipse UserFriend
Hi Rüdiger,
thanks for your reply. Actual I use now a Dialog with a BrowserWidget.
If the user dislike it, I will try the solution with the minimal HTML
page with the href.
Also thanks for the Information about the Startup Page.
Regards
Karsten

Ruediger Herrmmann schrieb:
> Hi Karsten,
>
> currently there is no BrowserSupport in the RAP Workbench and it is yet
> unclear if there ever will be.
> To open a browser window that shows a URL You could use the setText
> method of the Browser widget to set a minimal HTML page that just
> contains Your a-tag. Probably not the most beautiful way but it should
> work.
> Once a Link widget is available, it could probably be used therefore.
> Of course the most decent way would be to implement a custom widget. You
> could have a look at Label and LabelLCA on how to implement this. The
> qooxdoo Label widget also accepts some HTML, an a-tag at least.
> Further information on how to implement Your own widget can also found
> in the material from the EclipseCon RAP Tutorial
> http://eclipsezilla.eclipsecon.org/attachment.cgi?id=468
> http://eclipsezilla.eclipsecon.org/attachment.cgi?id=515
>
> Hope that helps
> Rüdiger
>
>
> Karsten Panier wrote:
>> Hi,
>> I would like to create a Link in my Application to a different
>> website. Now I am searching for something like <a href="someURL"
>> target="_blank"> in html. In an SWT based Appication I use
>> PlatformUI.getWorkbench().getBrowserSupport() to create a new Brwoser
>> Windos, but I didn't find the BrwoserSupprt in RAP.
>> How to handle this in RAP?
>> Regards
>> Karsten
Previous Topic:Changing the RAP Startup Page
Next Topic:Crazy Layout
Goto Forum:
  


Current Time: Sun May 11 13:13:19 EDT 2025

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

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

Back to the top