Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Link inside proposals?(How to do it?)
Link inside proposals? [message #710849] Fri, 05 August 2011 09:29 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
Re: (no subject) [message #711002 is a reply to message #710982] Fri, 05 August 2011 13:14 Go to previous messageGo to next message
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
Re: (no subject) [message #711036 is a reply to message #711026] Fri, 05 August 2011 13:52 Go to previous messageGo to next message
Eclipse UserFriend
Ok, so I have to know which widgets is used to display those informations.

Thanks
Marco
Re: Enhancing the Default XML Editor - CompletionProposal [message #1763931 is a reply to message #711036] Tue, 23 May 2017 02:51 Go to previous messageGo to next message
Eclipse UserFriend
To the existing Eclipse XML Editor, we are contributing new proposals in the CompletionProposal using the CompletionProposalComputer extension point. Now in the additional information dialog, we also want to enable the toolbar to provide an action for Opening the Declaration as provided in JDT.

We are able to achieve this in our custom editor coz the sourceviewerconfiguration allows us to add our own ContentAssist stuff. but how do we achieve this in Default XML Editor of Eclipse.
Re: Enhancing the Default XML Editor - CompletionProposal [message #1765044 is a reply to message #1763931] Tue, 06 June 2017 01:54 Go to previous message
Eclipse UserFriend
Where exactly are you stuck?
Previous Topic:Server instance creation programmatically
Next Topic:Eclipse Error For Apache Tomcat: Error copying file to C:/Program Files/Apache Software Foundation/T
Goto Forum:
  


Current Time: Wed Jul 16 18:18:53 EDT 2025

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

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

Back to the top