Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » TextEditor and code templates
TextEditor and code templates [message #207568] Wed, 25 April 2007 17:19 Go to next message
Nicolas Richeton is currently offline Nicolas RichetonFriend
Messages: 179
Registered: July 2009
Senior Member
Hi,

I'm working on a custom TextEditor extending
org.eclipse.ui.editors.text.TextEditor and I wish to add code templates
in it.

I already have syntax highlighting, validation and content assist which
can return ICompletionProposal, but I don't know how to create and setup
TemplateProposal objects for this editor.

Does anybody knows where I can find a tutorial/wiki on this ?

Thanks,
--
Nicolas
Re: TextEditor and code templates [message #207923 is a reply to message #207568] Fri, 27 April 2007 07:57 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Nicolas Richeton wrote:

> Hi,
>
> I'm working on a custom TextEditor extending
> org.eclipse.ui.editors.text.TextEditor and I wish to add code
> templates in it.
>
> I already have syntax highlighting, validation and content assist
> which can return ICompletionProposal, but I don't know how to create
> and setup TemplateProposal objects for this editor.

See org.eclipse.ui.editors.templates extension point and
ContributionTemplateStore for a start.

Dani

>
> Does anybody knows where I can find a tutorial/wiki on this ?
>
> Thanks,
> --
> Nicolas
Previous Topic:remove all search results
Next Topic:Searching in editor
Goto Forum:
  


Current Time: Fri Apr 26 12:30:03 GMT 2024

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

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

Back to the top