merge java/jde snippets, jde is not used anymore anyway

This commit is contained in:
Andrea Crotti 2011-02-18 11:54:16 +01:00
parent 79f74e5dab
commit a07dac19dc
21 changed files with 8 additions and 139 deletions

View file

@ -3,8 +3,6 @@
# key: cls
# contributor: Andrea crotti
# --
${1:public }class ${2:Class}$3 {
${4:public $2($5) {
$0
}}
class ${1:Class} {
$0
}

View file

@ -3,6 +3,7 @@
# key: fori
# contributor: Andrea crotti
# --
for (${1:Type el} : ${2:iterator}) {
for (${1:Object el} : ${2:iterator}) {
$0
}
}

View file

@ -3,6 +3,6 @@
# key: if
# contributor: Andrea crotti
# --
if (${1:condition}) {
if (${1:condition) {
$0
}

View file

@ -3,4 +3,5 @@
# key: pr
# contributor: Andrea crotti
# --
System.out.println(${1:"${2:text}"});
System.out.println("${1:text}");
$0

View file

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: apr_assert
# key: apr_assert
# contributor: Andrea crotti
# --
if (Globals.useAssertions) {
${1:assert ..};
}

View file

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: cls
# key: cls
# contributor: Andrea crotti
# --
class ${1:Class} {
$0
}

View file

@ -1,12 +0,0 @@
# -*- mode: snippet -*-
# name: file_class
# key: file
# contributor: Andrea crotti
# --
public class ${1:`(let ((fn (file-name-nondirectory
(file-name-sans-extension
(or (buffer-file-name)
(buffer-name (current-buffer))))))))}
$0
end

View file

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: for
# key: for
# contributor: Andrea crotti
# --
for (${1:int i = 0}; ${2:i < N}; ${3:i++}) {
$0
}

View file

@ -1,9 +0,0 @@
# -*- mode: snippet -*-
# name: fori
# key: fori
# contributor: Andrea crotti
# --
for (${1:Object el} : ${2:iterator}) {
$0
}

View file

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: if
# key: if
# contributor: Andrea crotti
# --
if (${1:condition) {
$0
}

View file

@ -1,11 +0,0 @@
# -*- mode: snippet -*-
# name: ife
# key: ife
# contributor: Andrea crotti
# --
if (${1:cond}) {
$2
}
else {
$3
}

View file

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name: import
# key: imp
# contributor: Andrea crotti
# --
import ${1:System.};
$0

View file

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: main
# key: main
# contributor: Andrea crotti
# --
public static void main(String[] args) {
$0
}

View file

@ -1,8 +0,0 @@
# -*- mode: snippet -*-
# name: method
# key: method
# contributor: Andrea crotti
# --
${1:public }${2:void} ${3:name} (${4:args}) {
$0
}

View file

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: param
# key: param
# contributor: Andrea crotti
# --
@param ${1:paramater} $0

View file

@ -1,7 +0,0 @@
# -*- mode: snippet -*-
# name: println
# key: pr
# contributor: Andrea crotti
# --
System.out.println("${1:text}");
$0

View file

@ -1,6 +0,0 @@
# -*- mode: snippet -*-
# name: return
# key: ret
# contributor: Andrea crotti
# --
@return ${1:description}

View file

@ -1,13 +0,0 @@
# -*- mode: snippet -*-
# name: testClass
# key: tc
# contributor: Andrea crotti
# --
import junit.framework.*;
import junit.textui.*;
public class Test${1:Class} extends TestCase {
protected void setUp() {
$0
}
}

View file

@ -1,12 +0,0 @@
# -*- mode: snippet -*-
# name: try
# key: try
# contributor: Andrea crotti
# --
try {
$0
}
catch (${1:Throwable e}) {
${2:System.out.println("Error " + e.getMessage());
e.printStackTrace();}
}