Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » template completion (how to)
template completion (how to) [message #328208] Sat, 17 May 2008 16:32
No real name is currently offline No real nameFriend
Messages: 64
Registered: July 2009
Member
hi all

I try to implement template completion (the stuff who appear when I
CTRL+SPACE). but I have lot of difficult to do that.

what I try to do is if a type FOR and after CTRL+SPACE
he propose FOR_TO , FOR_IN (by example) etc....

and if I choose FOR_TO , he put the structure
FOR i:= TO DO

END;


with the cursor between := and TO and after tape TAB he pass into TO and
DO and etc...


I ve understood, I have to surcharge the TEMPLATECOmpletionPRocessor
etc...

and I have to overwrite 3 methods

but when I look code I always have this

protected Template[] getTemplates(String contextTypeId) {
return TemplateEditorUI.getDefault().getTemplateStore().getTemplate s();
}


what is it??? if I look the code of template editor, etc..etc.. I found
nothing like a string, etc...etc... where templates are??

is there any tutorial anywhere or something very simple.

thanks

a+++
Previous Topic:iPath.getFullPath doesn"t return the device letter
Next Topic:Hook into the Java refactoring
Goto Forum:
  


Current Time: Sun Jun 30 00:03:19 GMT 2024

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

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

Back to the top