File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
src/com/magento/idea/magento2plugin/inspections Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import com .intellij .codeInspection .LocalQuickFix ;
9
9
import com .intellij .codeInspection .ProblemDescriptor ;
10
- import com .intellij .openapi .command .WriteCommandAction ;
11
10
import com .intellij .openapi .project .Project ;
12
11
import com .jetbrains .php .lang .psi .elements .StringLiteralExpression ;
13
12
import com .magento .idea .magento2plugin .bundles .InspectionBundle ;
@@ -42,11 +41,6 @@ public void applyFix(
42
41
}
43
42
44
43
private void applyFix (final StringLiteralExpression expression ) {
45
- WriteCommandAction .writeCommandAction (
46
- expression .getManager ().getProject (),
47
- expression .getContainingFile ()
48
- ).run (() ->
49
- expression .updateText (expectedModuleName )
50
- );
44
+ expression .updateText (expectedModuleName );
51
45
}
52
46
}
Original file line number Diff line number Diff line change 7
7
8
8
import com .intellij .codeInspection .LocalQuickFix ;
9
9
import com .intellij .codeInspection .ProblemDescriptor ;
10
- import com .intellij .openapi .command .WriteCommandAction ;
11
10
import com .intellij .openapi .project .Project ;
12
11
import com .intellij .psi .xml .XmlAttribute ;
13
12
import com .intellij .psi .xml .XmlAttributeValue ;
@@ -42,12 +41,7 @@ public void applyFix(
42
41
}
43
42
44
43
private void applyFix (final XmlAttributeValue value ) {
45
- WriteCommandAction .writeCommandAction (
46
- value .getManager ().getProject (),
47
- value .getContainingFile ()
48
- ).run (() ->
49
- doFix (value )
50
- );
44
+ doFix (value );
51
45
}
52
46
53
47
protected void doFix (
You can’t perform that action at this time.
0 commit comments