mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
start live template if enum constant needs params (IDEA-19205)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// "Create Enum Constant 'D3'" "true"
|
||||
public enum Demo {
|
||||
|
||||
D1("foo"),
|
||||
D2("bar"), D3()<caret>;
|
||||
private String name;
|
||||
|
||||
Demo(String name) {
|
||||
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
||||
class Show {
|
||||
|
||||
public void doSomething() {
|
||||
Demo.D3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
// "Create Enum Constant 'D3'" "true"
|
||||
public enum Demo {
|
||||
|
||||
D1("foo"),
|
||||
D2("bar");
|
||||
private String name;
|
||||
|
||||
Demo(String name) {
|
||||
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
||||
class Show {
|
||||
|
||||
public void doSomething() {
|
||||
Demo.D<caret>3
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user