Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Link inside proposals?(How to do it?)
Link inside proposals? [message #710849] Fri, 05 August 2011 09:29 Go to next message
MarcoGT  is currently offline MarcoGT
Messages: 77
Registered: May 2011
Member
Hi all,

inside default proposals for content assist there are links to other classes, for example.

I have extended content assist of default XML editor...but how I can insert a link to a website using "http://..."?

Thanks
Marco
(no subject) [message #710982 is a reply to message #710849] Fri, 05 August 2011 12:39 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2251
Registered: July 2009
Senior Member
On 8/5/2011 9:29 AM, MarcoGT wrote:
> inside default proposals for content assist there are links to other
> classes, for example.
>
> I have extended content assist of default XML editor...but how I can
> insert a link to a website using "http://..."?

Content Assist is only inserting the text using its proposals, so
there's no reason you can't propose something that looks like a URL.
What you're seeing as hyperlinks are generated dynamically through
contributions to a separate extension point, although I'd be surprised
if you somehow weren't getting the detector that recognizes URLs.

http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_ui_workbench_texteditor_hyperlinkDetectors.html

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: (no subject) [message #711002 is a reply to message #710982] Fri, 05 August 2011 13:14 Go to previous messageGo to next message
MarcoGT  is currently offline MarcoGT
Messages: 77
Registered: May 2011
Member
My error...I do not want put a link inside the content assist proposal but inside the description box that appears when you highlight a proposal. I mean the "yellow" box containing additional information on that proposal.

My proposals are taken from an external XML file using XPath; for each proposal I get also some "extra" information that are displayed in that box (see image here: http://wiki.openclonk.org/images/thumb/1/16/Eclipse_ContentAssist.png/600px-Eclipse_ContentAssist.png )

In that box I would like to write an URL to a website.

Thanks
Marco

[Updated on: Fri, 05 August 2011 13:17]

Report message to a moderator

Re: (no subject) [message #711026 is a reply to message #711002] Fri, 05 August 2011 13:33 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2251
Registered: July 2009
Senior Member
On 8/5/2011 1:14 PM, MarcoGT wrote:
> My error...I do not want put a link inside the content assist proposal
> but inside the description box that appears when you highlight a
> proposal. I mean the "yellow" box containing additional information on
> that proposal.

In that case you'll want to make note of which widget is used to display
that information, and see whether there's a way to place linkable text
within it. It might be as simple as marking up the link as you would in
HTML source.

--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: (no subject) [message #711036 is a reply to message #711026] Fri, 05 August 2011 13:52 Go to previous message
MarcoGT  is currently offline MarcoGT
Messages: 77
Registered: May 2011
Member
Ok, so I have to know which widgets is used to display those informations.

Thanks
Marco
Previous Topic:FATAL [main] Main - No embedded stylesheet instruction for file:
Next Topic:Problem with tomcat 7.0.11 + Maven + "serve modules without publishing" : return of bug 31
Goto Forum:
  


Current Time: Fri Aug 29 04:09:14 EDT 2014

Powered by FUDForum. Page generated in 0.02962 seconds