eclipse - Programmatically add code templates? -


i'm writing custom xml editor our project , want add support templates. i.e when user writes "<ab:mytag" , presses ctrl + space option of inserting chunk of text default/dummy parameters.

but should available in xml editor. how go this?

clarification: templates i'm talking ones available when write example "syso" in java editor , press ctrl + space. in preferences can add own templates. want do define own templates, own xml tags, want in code , have effect editor

after alot of searching fount ppt answered questions had:

http://www.eclipsecon.org/2008/sub/attachments/extending_the_xml_and_sse_editors_from_the_wtp_project_.ppt

the templates after can programatically added use of extension point org.eclipse.ui.editors.templates


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -