Commit Graph

25 Commits

Author SHA1 Message Date
Anna.Kozlova 6b54c8047b customization template for catch block parameter (IDEA-125327; IDEA-116670) 2018-11-02 12:00:24 +01:00
peter 3387597e00 reparse from text after PSI changes in incorrect code (IDEA-188164) 2018-04-23 15:19:17 +02: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
Anna Kozlova 28d41e3516 surround with: adjust range if no selection is present so multi-line statement can be wrapped (IDEA-156463) 2016-05-25 18:40:17 +03:00
Anna Kozlova 36ca5d6a23 disable surround with parenthesis for one-no-type-parameter lambda 2015-06-18 21:26:57 +03:00
Dmitry Avdeev 632af5206e IDEA-140043 Predefined Variables in Code Template "Catch Statement Body" not available 2015-05-13 16:01:02 +03:00
Dmitry Batrak db78755a84 IDEA-136452 Can't surround with {} code starting from the comment under if statement 2015-02-19 10:35:55 +03:00
Anna Kozlova e0953477b0 java: testdata fixed 2015-01-21 14:14:25 +01:00
Anna Kozlova 6cc60e2543 workaround for overload resolution for methods from Object when project has multiple jdks (IDEA-135422) 2015-01-21 12:14:13 +01:00
Anna Kozlova 6e761e661f surround with try/catch: ignore nested functional expressions from unchecked analyzes 2014-12-18 14:13:22 +01:00
Yaroslav Lepenkin 8d7040e88e Creating indent by CodeStyleManager.adjustLineIndent when surrounding with try-finally (IDEA-128859) 2014-09-01 19:16:37 +04:00
Alexander Zolotov 2f3d180fbd IDEA-123355 Postfix template expansions .null/.notnull after 'else' fail to provide a valid Java output
allow JavaWithIfExpressionSurrounder just after else keywords
2014-04-07 19:05:34 +04:00
Alexander Zolotov 2665a70fef Java surrounders: if and not surrounder should be able to handle java.lang
.Boolean expressions
2014-01-08 15:41:08 +11:00
Dmitry Batkovich 5b4d579ac5 override methods dialog with sorting by overridings 2013-05-22 14:33:19 +04:00
anna be9e2fa9f7 testdata fixed 2013-05-06 20:55:21 +02:00
anna 5e0efa30e5 IDEA-81079: surround with notnull checks on selection 2012-07-12 19:30:46 +02:00
Anna Kozlova c058e0d5a1 surround with try|finally: insert new line and indent (IDEA-71020) 2012-06-19 20:08:11 +04:00
Bas Leijdekkers ec1f3e7655 IDEA-82925 ('Surround with cast' for conditional, polyadic and assignment expressions should parenthesize those expressions) 2012-03-16 13:14:21 +01:00
peter e51edaedf7 IDEA-50592 'Surround with cast' for binary expressions (e.g. a+b) should parenthesize those expressions 2012-03-08 15:17:42 +04:00
anna 7c88731a49 surround with runnable: clear selection before template start (IDEA-75887) 2011-10-26 18:13:09 +02:00
Denis.Zhdanov 697c1893b3 IDEA-75043 Surround with template: correct processing in case of blank line after after the statement
Test data is corrected;
2011-10-04 12:42:26 +04:00
Alexey Pegov cb94e43145 test for surround with empty line after 2011-09-30 14:49:17 +04:00
anna 0eb2875056 surround expression with: support for expression's parts (IDEA-73868) 2011-09-08 11:21:17 +02:00
anna 129d370f24 surround with runnable: check if name unique; start inplace rename; place caret after 2011-08-19 21:11:07 +02:00
Denis Zhdanov 06b56cf449 IDEA-25753 Surround With try-catch etc. - doesn't indent comment correctly
1. Java 'surround with' processing is corrected for the first comment statement;
2. Corresponding tests are added;
3. Green cody policy is applied;
2011-05-03 17:23:14 +04:00