| 
| template completion (how to) [message #328208] | Sat, 17 May 2008 12:32 |  | 
| Eclipse User  |  |  |  |  | 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+++
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.10866 seconds