|
From: Christopher W. <caw...@us...> - 2006-02-22 21:25:57
|
Update of /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13520/templates Modified Files: rdt.xml rdt.properties Log Message: add template for common "if currently executing script" code block (similar to a main method) Index: rdt.properties =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/templates/rdt.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** rdt.properties 26 Nov 2004 18:57:26 -0000 1.1 --- rdt.properties 22 Feb 2006 21:25:51 -0000 1.2 *************** *** 9,12 **** --- 9,13 ---- doTemplate1.description= do block ifTemplate1.description= if block + ifTemplate2.description= if currently executing script block ifelseTemplate1.description= if-else block elsifTemplate1.description= elsif block Index: rdt.xml =================================================================== RCS file: /cvsroot/rubyeclipse/org.rubypeople.rdt.ui/templates/rdt.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** rdt.xml 18 Feb 2006 16:53:50 -0000 1.3 --- rdt.xml 22 Feb 2006 21:25:51 -0000 1.4 *************** *** 82,85 **** --- 82,93 ---- <template context="ruby" + description="%ifTemplate2.description" + id="org.rubypeople.rdt.ui.templates.if2" + name="if">if __FILE__ == $0 + ${cursor} + end</template> + + <template + context="ruby" description="%ifelseTemplate1.description" id="org.rubypeople.rdt.ui.templates.ifelse1" |