smart enter to wrap its single then/else branch into code blocks (IDEA-155280)

This commit is contained in:
peter
2016-04-29 22:56:19 +02:00
parent 5131d6fadb
commit 4e3139ffda
6 changed files with 63 additions and 21 deletions
@@ -0,0 +1,9 @@
class Foo {
{
if (t != true<caret>)
logger.error("SimulationClient.run error: strategy () still running. please stop it before restart.");
else
proxy.startStopStrategy("strategyName", true);
}
}
@@ -0,0 +1,11 @@
class Foo {
{
if (t != true) {
<caret>
logger.error("SimulationClient.run error: strategy () still running. please stop it before restart.");
} else {
proxy.startStopStrategy("strategyName", true);
}
}
}
@@ -0,0 +1,7 @@
class Foo {
{
if (t != true<caret>)
logger.error("SimulationClient.run error: strategy () still running. please stop it before restart.");
}
}
@@ -0,0 +1,9 @@
class Foo {
{
if (t != true) {
<caret>
logger.error("SimulationClient.run error: strategy () still running. please stop it before restart.");
}
}
}