1
0
mirror of https://github.com/gryf/snipmate.vim.git synced 2025-12-19 20:38:05 +01:00

Some Java snippets added. I was missing the try construct

This commit is contained in:
Eustaquio Rangel
2010-03-05 09:44:26 -03:00
committed by Michael Sanders
parent 264086c6d4
commit 9dd2aa42dd

View File

@@ -30,6 +30,10 @@ snippet sy
synchronized synchronized
snippet im snippet im
import import
snippet imp
implements
snippet ext
extends
snippet j.u snippet j.u
java.util java.util
snippet j.i snippet j.i
@@ -76,3 +80,16 @@ snippet cos
static public final String ${1:var} = "${2}";${3} static public final String ${1:var} = "${2}";${3}
snippet as snippet as
assert ${1:test} : "${2:Failure message}";${3} assert ${1:test} : "${2:Failure message}";${3}
snippet try
try {
${3}
} catch(${1:Exception} ${2:e}) {
}
snippet tryf
try {
${3}
} catch(${1:Exception} ${2:e}) {
} finally {
}
snippet rst
ResultSet ${1:rst}${2: = null}${3};${4}