Add "try" live postfix template

This commit is contained in:
Andrey Starovoyt
2014-04-16 14:45:35 +04:00
parent 5686958fe6
commit fffcd492d5
11 changed files with 163 additions and 0 deletions
@@ -0,0 +1,7 @@
public class Foo {
void m() {
somevalue.try<caret>
int i=0;
}
}
@@ -0,0 +1,11 @@
public class Foo {
void m() {
try {
somevalue<caret>
} catch (Exception e) {
e.printStackTrace();
}
int i=0;
}
}
@@ -0,0 +1,3 @@
public class Foo.try<caret> {
}
@@ -0,0 +1,3 @@
public class Foo.try <caret> {
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
somevalue.try<caret>
}
}
@@ -0,0 +1,9 @@
public class Foo {
void m() {
try {
somevalue<caret>
} catch (Exception e) {
e.printStackTrace();
}
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m() {
Object o = new Object().try<caret>
}
}
@@ -0,0 +1,9 @@
public class Foo {
void m() {
try {
Object o = new Object()<caret>
} catch (Exception e) {
e.printStackTrace();
}
}
}