Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Enabling content assist using template proposals
Enabling content assist using template proposals [message #335457] Thu, 09 April 2009 10:40 Go to next message
Nitin Bohara is currently offline Nitin BoharaFriend
Messages: 17
Registered: July 2009
Junior Member
I need to enable templates in my eclipse based editor. Currently, I have
enabled content assist using org.eclipse.jface.text.contentassist.
What I need is to get template proposals as in when we type 'for' we get
the proposals for all the for loops.
I went through the link -
help.eclipse.org/help32/topic/org.eclipse.jet.doc/.../org.ec lipse...doc.../org/eclipse/jface/text/templates/package-summ ary.html
but couldnt understand how to achieve what I need.
Can someone please throw some light on how to go about ?
Re: Enabling content assist using template proposals [message #335458 is a reply to message #335457] Thu, 09 April 2009 11:31 Go to previous messageGo to next message
Nitin Bohara is currently offline Nitin BoharaFriend
Messages: 17
Registered: July 2009
Junior Member
Nitin Bohara wrote:

> I need to enable templates in my eclipse based editor. Currently, I have
> enabled content assist using org.eclipse.jface.text.contentassist.
> What I need is to get template proposals as in when we type 'for' we get
> the proposals for all the for loops.
> I went through the link -
>
help.eclipse.org/help32/topic/org.eclipse.jet.doc/.../org.ec lipse...doc.../org/eclipse/jface/text/templates/package-summ ary.html
> but couldnt understand how to achieve what I need.
> Can someone please throw some light on how to go about ?

The link was -
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. jet.doc/references/xpath/PLUGINS_ROOT/org.eclipse.platform.d oc.isv/reference/api/org/eclipse/jface/text/templates/packag e-summary.html
Re: Enabling content assist using template proposals [message #335544 is a reply to message #335457] Tue, 14 April 2009 10:07 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Nitin Bohara wrote:
> I need to enable templates in my eclipse based editor. Currently, I
> have enabled content assist using org.eclipse.jface.text.contentassist.
> What I need is to get template proposals as in when we type 'for' we
> get the proposals for all the for loops.
> I went through the link -
> help.eclipse.org/help32/topic/org.eclipse.jet.doc/.../org.ec lipse...doc.../org/eclipse/jface/text/templates/package-summ ary.html
>
> but couldnt understand how to achieve what I need.
> Can someone please throw some light on how to go about ?
Take a look at:
http://www.eclipse.org/eclipse/platform-text/eclipseCon/2006 /texteditorrecipes.pdf

Dani
Previous Topic:help with form Text
Next Topic:Finding a trim contribution
Goto Forum:
  


Current Time: Thu Apr 25 23:51:45 GMT 2024

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

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

Back to the top