<?xml version="1.0" encoding="UTF-8"?>
<templates><template name="finally" description="finally block" context="java" enabled="true">finally {
	if(${obj} != null) ${obj}.close();
}</template><template name="catch" description="catch but ignore" context="java" enabled="true">catch (${Exception} ignore) {
	// ignore it.
}</template><template name="synchronized" description="synchronized template" context="java" enabled="true">synchronized(${obj}) {
	${cursor}
}</template><template name="sleep" description="wait a minites" context="java" enabled="true">try {
	Thread.sleep(${millis});
} catch (InterruptedException ignore) {
	// Ignore...
}</template><template name="thread" description="create thread for specified runnable" context="java" enabled="true">Thread ${name} = new Thread(${RunnableObj});
${name}.start();</template><template name="thread" description="create thread with anonymous runnable, and run it" context="java" enabled="true">Thread ${name} = new Thread(new Runnable() {
	/**
	 * @see java.lang.Runnable#run()
	 */
	public void run() {
		while(!Thread.interrupted()) {
			${cursor}
		}
	}
});
${name}.start();</template></templates>
