2012-11-01 09:44:37 +00:00
|
|
|
snippet class
|
2012-10-30 08:53:14 +00:00
|
|
|
class ${1} ${2:extends} ${3:#:Parent} ${4:implements} ${5:#:Interface} {
|
|
|
|
${0:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet interface
|
2012-10-30 08:53:14 +00:00
|
|
|
interface ${1} ${2:extends} ${3:#:Parent} {
|
|
|
|
${0:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet method
|
2012-10-30 08:53:14 +00:00
|
|
|
${1:void} ${2:#:method}(${3}) ${4:throws} {
|
|
|
|
${0:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet var
|
2012-10-30 08:53:14 +00:00
|
|
|
${1:#:type} ${2:#:var}${3};
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2013-12-21 06:08:08 +00:00
|
|
|
snippet const
|
2012-10-30 08:53:14 +00:00
|
|
|
static public final ${1:#:type} ${2:#:var} = ${3};${4}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2013-12-21 06:08:08 +00:00
|
|
|
snippet const_string
|
2012-02-02 04:33:35 +00:00
|
|
|
static public final String ${1:var} = "${2}";${4}
|
|
|
|
|
2013-12-21 06:08:08 +00:00
|
|
|
snippet assert
|
2012-10-30 08:53:14 +00:00
|
|
|
assert ${1:#:test} ${2:#:Failure message};${3}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet if
|
2012-09-27 02:02:30 +00:00
|
|
|
if (${1}) {
|
2012-10-30 08:53:14 +00:00
|
|
|
${2:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet elif
|
2013-12-21 06:08:08 +00:00
|
|
|
alias elseif
|
2012-09-27 02:02:30 +00:00
|
|
|
else if (${1}) {
|
2012-10-30 08:53:14 +00:00
|
|
|
${2:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet while
|
2012-09-27 02:02:30 +00:00
|
|
|
while (${1}) {
|
2012-10-30 08:53:14 +00:00
|
|
|
${2:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet for
|
2012-09-27 02:02:30 +00:00
|
|
|
for (${1}; ${2}; ${3}) {
|
2012-10-30 08:53:14 +00:00
|
|
|
${4:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-10-30 08:53:14 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet foreach
|
|
|
|
alias fore
|
2012-09-27 02:02:30 +00:00
|
|
|
for (${1} : ${2}) {
|
2012-11-08 22:58:17 +00:00
|
|
|
${3:TARGET}
|
|
|
|
}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet switch
|
2012-09-27 02:02:30 +00:00
|
|
|
switch (${1}) {
|
2012-10-30 08:53:14 +00:00
|
|
|
${2:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-10-30 08:53:14 +00:00
|
|
|
|
2012-02-02 04:33:35 +00:00
|
|
|
snippet case
|
2012-09-27 02:02:30 +00:00
|
|
|
case ${1}:
|
2012-10-30 08:53:14 +00:00
|
|
|
${2:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
${0}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet br
|
|
|
|
break;
|
|
|
|
|
2013-12-21 06:08:08 +00:00
|
|
|
snippet default
|
|
|
|
alias de
|
2012-09-27 02:02:30 +00:00
|
|
|
default:
|
|
|
|
${0}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2013-12-21 06:08:08 +00:00
|
|
|
snippet try
|
|
|
|
try {
|
|
|
|
${0:TARGET}
|
|
|
|
} catch (${1:#:Exception} ${2:e}) {
|
|
|
|
${3:e.printStackTrace();}
|
|
|
|
}
|
|
|
|
|
|
|
|
snippet try_finally
|
|
|
|
try {
|
|
|
|
${0:TARGET}
|
|
|
|
} catch (${1:Exception} ${2:e}) {
|
|
|
|
${3:e.printStackTrace();}
|
|
|
|
} finally {
|
|
|
|
${4}
|
|
|
|
}
|
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet catch
|
2013-12-21 06:08:08 +00:00
|
|
|
catch (${1:Exception} ${2:e}) {
|
|
|
|
${0:e.printStackTrace();}
|
|
|
|
}
|
|
|
|
|
|
|
|
snippet finally
|
|
|
|
finally {
|
|
|
|
${0:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-10-30 08:53:14 +00:00
|
|
|
|
2012-02-02 04:33:35 +00:00
|
|
|
snippet th
|
|
|
|
throw ${0}
|
|
|
|
|
|
|
|
snippet sy
|
|
|
|
synchronized
|
|
|
|
|
2013-12-21 06:08:08 +00:00
|
|
|
snippet testclass
|
|
|
|
alias tc
|
2012-09-27 02:02:30 +00:00
|
|
|
public class ${1} extends ${2:TestCase} {
|
2012-10-30 08:53:14 +00:00
|
|
|
${0:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet test
|
2012-10-30 08:53:14 +00:00
|
|
|
public void test${1:#:Name}() throws Exception {
|
|
|
|
${0:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet import
|
|
|
|
alias imt
|
|
|
|
import ${1};
|
2012-09-27 02:02:30 +00:00
|
|
|
${0}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet j.u
|
|
|
|
java.util.
|
|
|
|
|
|
|
|
snippet j.i
|
|
|
|
java.io.
|
|
|
|
|
|
|
|
snippet j.b
|
|
|
|
java.beans.
|
|
|
|
|
|
|
|
snippet j.n
|
|
|
|
java.net
|
|
|
|
|
|
|
|
snippet j.m
|
|
|
|
java.math.
|
|
|
|
|
|
|
|
snippet main
|
2012-09-27 02:02:30 +00:00
|
|
|
public static void main(String[] args) {
|
|
|
|
${0}
|
|
|
|
}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet println
|
2012-02-02 04:33:35 +00:00
|
|
|
System.out.println(${1});${0}
|
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet print
|
2012-02-02 04:33:35 +00:00
|
|
|
System.out.print(${1});${0}
|
|
|
|
|
|
|
|
#javadoc
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet comment
|
2012-09-27 02:02:30 +00:00
|
|
|
/**
|
2012-10-30 08:53:14 +00:00
|
|
|
* ${0:TARGET}
|
2012-09-27 02:02:30 +00:00
|
|
|
*/
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet author
|
2012-02-02 04:33:35 +00:00
|
|
|
@author ${0:$TM_FULLNAME}
|
|
|
|
|
|
|
|
snippet {code
|
|
|
|
{@code ${0}
|
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet deprecated
|
2012-10-30 08:53:14 +00:00
|
|
|
@deprecated ${0:#:description}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet {docRoot
|
|
|
|
{@docRoot
|
|
|
|
|
|
|
|
snippet {inheritDoc
|
|
|
|
{@inheritDoc
|
|
|
|
|
|
|
|
snippet {link
|
2012-10-30 08:53:14 +00:00
|
|
|
{@link ${1:#:target} ${0:#:label}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet {linkplain
|
2012-10-30 08:53:14 +00:00
|
|
|
{@linkplain ${1:#:target} ${0:#:label}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet {literal
|
|
|
|
{@literal ${0}
|
|
|
|
|
|
|
|
snippet param
|
2012-10-30 08:53:14 +00:00
|
|
|
@param ${1:#:var} ${0:#:description}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet return
|
2012-10-30 08:53:14 +00:00
|
|
|
@return ${0:#:description}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet see
|
2012-10-30 08:53:14 +00:00
|
|
|
@see ${0:#:reference}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet serial
|
2012-10-30 08:53:14 +00:00
|
|
|
@serial ${0:#:description}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet sd
|
2012-10-30 08:53:14 +00:00
|
|
|
@serialField ${0:#:description}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet sf
|
2012-10-30 08:53:14 +00:00
|
|
|
@serialField ${1:#:name} ${2:#:type} ${0:#:description}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet since
|
2012-10-30 08:53:14 +00:00
|
|
|
@since ${0:#:version}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet throws
|
2012-10-30 08:53:14 +00:00
|
|
|
@throws ${1:#:class} ${0:#:description}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
|
|
|
snippet {value
|
|
|
|
{@value ${0}
|
|
|
|
|
2012-11-01 09:44:37 +00:00
|
|
|
snippet version
|
|
|
|
alias ver
|
2012-10-30 08:53:14 +00:00
|
|
|
@version ${0:#:version}
|
2012-02-02 04:33:35 +00:00
|
|
|
|
2013-04-10 01:09:43 +00:00
|
|
|
snippet helloworld
|
|
|
|
options head
|
|
|
|
public class ${1:Hello} {
|
|
|
|
static public void main(String args[]) {
|
|
|
|
System.out.println("Hello, world!");
|
|
|
|
}
|
|
|
|
}
|