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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -