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 06:40 Go to next message
Nitin Bohara is currently offline Nitin Bohara
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 07:31 Go to previous messageGo to next message
Nitin Bohara is currently offline Nitin Bohara
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 06:07 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
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 Jul 24 09:08:26 EDT 2014

Powered by FUDForum. Page generated in 0.02648 seconds