mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
create property:both getter nad setter from usage (IDEA-73186); return cursor to the initial state
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// "Create Property" "true"
|
||||
class Calculator {
|
||||
int i;
|
||||
|
||||
public void printError() {
|
||||
setI(0);
|
||||
}
|
||||
|
||||
public void setI(int i) {
|
||||
this.i = i;
|
||||
}
|
||||
|
||||
public int getI() {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// "Create Property" "true"
|
||||
class Calculator {
|
||||
private int i;
|
||||
|
||||
public void printError() {
|
||||
setI(0);
|
||||
}
|
||||
|
||||
public void setI(int i) {
|
||||
this.i = i;
|
||||
}
|
||||
|
||||
public int getI() {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// "Create Property" "false"
|
||||
class Calculator {
|
||||
int i;
|
||||
public void printError() {
|
||||
set<caret>I(0);
|
||||
}
|
||||
public int getI() {return i;}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Create Property" "true"
|
||||
class Calculator {
|
||||
int i;
|
||||
public void printError() {
|
||||
set<caret>I(0);
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
// "Create Property" "true"
|
||||
class Calculator {
|
||||
public void printError() {
|
||||
set<caret>I(0);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user