Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Link inside proposals?(How to do it?)
Link inside proposals? [message #710849] Fri, 05 August 2011 13:29 Go to next message
MarcoGT  is currently offline MarcoGT Friend
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 16:39 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2897
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 Web Tools Platform
Re: (no subject) [message #711002 is a reply to message #710982] Fri, 05 August 2011 17:14 Go to previous messageGo to next message
MarcoGT  is currently offline MarcoGT Friend
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 17:17]

Report message to a moderator

Re: (no subject) [message #711026 is a reply to message #711002] Fri, 05 August 2011 17:33 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2897
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 Web Tools Platform
Re: (no subject) [message #711036 is a reply to message #711026] Fri, 05 August 2011 17:52 Go to previous messageGo to next message
MarcoGT  is currently offline MarcoGT Friend
Messages: 77
Registered: May 2011
Member
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 06:51 Go to previous messageGo to next message
Annamalai Chockalingam is currently offline Annamalai ChockalingamFriend
Messages: 117
Registered: July 2009
Senior Member
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 05:54 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2897
Registered: July 2009
Senior Member

Where exactly are you stuck?

Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:need to build servlet twice before changes have any effect
Next Topic:DOM of editing file
Goto Forum:
  


Current Time: Tue Jul 25 23:00:42 GMT 2017

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

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