Roman.Ivanov
5076e08145
set SPACE_BEFORE_COLON_IN_FOREACH true by default, fix tests
2018-06-26 12:04:00 +07:00
Roman.Ivanov
5858ba478c
fix tests for foreach formatting
2018-06-05 11:31:17 +07:00
Tagir Valeev
43b86a988e
CodeEditUtil#removeChildren: fixed nextLeaf determination
...
Before when removing more than one element, nextLeaf was invalid as well. The invalidation check below did not work as parent might still exist (element might be relinked to dummy file)
Fixes IDEA-187531 "Add on demand static import" with intervening comment and an empty line breaks code
2018-03-03 15:47:21 +07:00
Pavel Dolgov
d14254cade
Java: Add braces when extracting method from then/else branch or loop body (IDEA-181096)
2017-11-14 12:45:21 +03:00
Pavel Dolgov
7e689ac90c
Java: Detect which output variables are used after the method call when extracting a method object (IDEA-152688)
2017-06-14 15:07:32 +03:00
Egor.Ushakov
59a2c555ca
IDEA-171094 Extract method object fails
2017-04-07 16:41:58 +03:00
Egor.Ushakov
e1f423e1d4
IDEA-171134 Extract as method object generates the same getters
2017-04-07 15:21:09 +03:00
Anna.Kozlova
2a8fc8cbc6
extract method object: process parameters as output variables (IDEA-162642)
2016-10-17 19:00:10 +02:00
Egor.Ushakov
e09b0fca1e
IDEA-152851 Extract Method Object: incompilable result in case of this and super and anonymous class creation
2016-03-11 13:08:25 +03:00
Egor.Ushakov
6b58c10ee2
IDEA-151861 ExtractMethodObject should not move static methods into created inner class - honor make static
2016-02-26 21:00:50 +03:00
Egor.Ushakov
bcfc1fe10f
IDEA-151861 ExtractMethodObject should not move static methods into created inner class
2016-02-26 20:01:51 +03:00
Egor.Ushakov
4caabe011d
IDEA-151867 ExtractMethodObject drops declaration of local variable when it is shared with a return value
2016-02-25 20:47:12 +03:00
Anna Kozlova
c6b72e19f2
testdata fixed
2015-03-13 21:22:57 +01:00
Anna Kozlova
8c6e9543d5
fix getter name for boolean field in testdata
2015-01-30 22:28:02 +03:00
Anna Kozlova
6edc7c729c
extract method object: postpone formatting (IDEA-114278)
2015-01-26 20:19:16 +03:00
anna
98b70db0a7
extract method object: avoid element invalidation by batch update (IDEA-98365)
2013-01-07 11:45:25 +01:00
anna
e47dc7accb
extract method object: do not make static when already static (IDEA-98290)
2012-12-31 13:58:17 +01:00
anna
fabf91af4d
extract method object: process exit statements as they may contain refs to outer vars (IDEA-96772); disable duplicate extraction
2012-12-06 17:54:16 +01:00
Anna Kozlova
58d7db1d6f
extract method object: wrap if/loop bodies in {} when needed (IDEA-92156)
2012-10-13 18:51:26 +02:00
Denis.Zhdanov
cbd0fe4e8e
IDEA-19061 Integrate the Rearranger-plugin into core-IDEA
...
Test data is updated
2012-09-06 13:21:42 +04:00
Denis.Zhdanov
e76b02dc4e
IDEA-19061 Integrate the Rearranger-plugin into core-IDEA
...
1. Arrangement API provides 'dependent entries' concept now;
2. Java static and instance initialization blocks are defined to be 'dependent arrangement entries';
3. Corresponding tests are added;
4. Default java arrangement rules are expanded in order to preserve old 'generated class members order';
5. Test data is corrected;
2012-09-06 13:21:41 +04:00
Denis.Zhdanov
4a4aa01505
IDEA-19061 Integrate the Rearranger-plugin into core-IDEA
...
1. 'Constructor' entry type is defined and supported at java rearranger;
2. Test data fixes;
2012-09-06 13:21:41 +04:00
anna
e8ccd03fa2
extract method object: order moved methods by usages; write access (IDEA-78847)
2011-12-14 12:59:29 +01:00
anna
1793a5ad90
extract method object from anonymous class: update method call site when context should be changed; do not change call site though
2011-10-11 15:13:05 +02:00
anna
b4a99e051b
correct field/getters naming in extract method object (EA-26268 - assert: ExtractMethodObjectProcessor.b)
2011-04-15 20:24:51 +02:00
anna
35a7143b52
extract method object: do not process inner classes return statements (IDEA-63806)
2011-01-14 17:42:55 +01:00
anna
58c376fcde
extract method object from expression: declare necessary variables after call to replace invoke() with correct getter
2010-12-29 16:21:13 +03:00
anna
0c79b901e1
extract method object: created object name should be unique (suggestion)
2010-11-15 16:54:59 +03:00
Alexey Kudravtsev
221d0c527e
Application.assertWriteAccess does really assert in tests,
...
tests now run in EDT
2010-10-25 15:04:08 +04:00
anna
62cc6669be
refactorings optimization: optimize imports extracted outof write action
2010-06-21 17:28:02 +04:00
anna
8be6b22b0a
extract method object: conditional exit; nullable check should be processed separately ( IDEA-52452 )
2010-05-11 14:42:12 +04:00
Dmitry Jemerov
571ab0fc93
test++
2009-09-10 20:25:31 +04:00