Andrei Efanov
7fd8f8c401
refactor: introduce NotNull annotations to BaseElementAtCaretIntentionAction methods
...
GitOrigin-RevId: 20fde7acc6856d13b67d52d6b4841dfbc158e652
2023-08-22 17:10:53 +00:00
Tagir Valeev
5f7ba99e21
[mod-command] ModCommands utility methods moved to ModCommand interface itself
...
GitOrigin-RevId: 56d8829b42d0942fd3a10bf6cdeca934f44f036e
2023-07-31 13:41:31 +00:00
Yuriy Artamonov
4d92f1c14b
[statistics] IDEA-326820 Enable counter usage collectors to be regular Kotlin object
...
GitOrigin-RevId: 75be9604970c01b314eaa6969fd29069c4589035
2023-07-30 14:18:19 +00:00
Tagir Valeev
3e9a5182b4
[mod-commands] ActionContext moved to top-level
...
GitOrigin-RevId: 8a4621b5b48fed952c8a2865c8699039e42b1edb
2023-07-28 08:52:46 +00:00
Tagir Valeev
1d5471ed2d
[java-refactoring] Improve message for convert local to inner
...
IDEA-326419 Move Refactoring - Local class - Option still says "Convert Anonymous to Inner" even if it's a local class
GitOrigin-RevId: 01606b46d721d3f78eead7181449ceee9149bf37
2023-07-26 15:37:21 +00:00
Tagir Valeev
013651b75d
[java-refactoring] Minor fixes in AnonymousToInnerHandler
...
1. Adapt messages to speak about local class when applicable
2. Fix when name is not changed, but we have type parameters
GitOrigin-RevId: bd3dbda21922473c9c4e52bccf840a35c55c9d59
2023-07-26 12:45:58 +00:00
Bas Leijdekkers
3ce421f2d3
Java: don't create two delegate method when introducing parameter (IDEA-324562)
...
GitOrigin-RevId: 94552b6425d509161b9a800f88b0069b6fb94a6c
2023-07-24 20:08:20 +00:00
Tagir Valeev
c718b21cc1
[java-refactoring] Convert local classes to inner ones
...
Fixes IDEA-218207 Move refactoring doesn't work for local classes
Also: Convert anonymous to inner -> do not create fields used in other field initializers only
Also: Convert anonymous to inner -> capture implicitly referred type parameters (mentioned in types of captured variables)
GitOrigin-RevId: 5d326e0b6fdff4de850ce48582cc3ca0fe003b43
2023-07-24 19:35:31 +00:00
Tagir Valeev
0d61f28ad5
[mod-commands] ModCommandAction#asQuickFix -> LocalQuickFix#from
...
GitOrigin-RevId: c8f2245707d267fe2412c2fd3da17bdb68557b20
2023-07-24 14:48:57 +00:00
Tagir Valeev
c0b3b031e7
[mod-commands] SetInspectionOptionFix -> UpdateInspectionOptionFix (ModCommand)
...
GitOrigin-RevId: a1916285a58398848a6ce3c477399b3a86370efc
2023-07-24 14:48:52 +00:00
Tagir Valeev
be9a7b3ed9
[mod-commands] Move ModCommands, PsiUpdateModCommandAction, and PsiUpdateModCommandQuickFix to analysis-api module
...
ModCommand clients should be able to avoid lang-api
GitOrigin-RevId: d85285f99e69067c35e9a1a3ea0787264406bc1d
2023-07-21 11:17:28 +00:00
Tagir Valeev
a2c5327a0d
[model-branch] ModelBranch API mostly removed (IDEA-309887)
...
Only one use left inside Fleet; also something used in Kotlin library code
GitOrigin-RevId: a6d34b268fe286582bd4d68d0dec183aa30f93de
2023-07-14 22:49:39 +00:00
Tagir Valeev
4c7609bdd7
[mod-commands] Basic support for templates and member chooser
...
GitOrigin-RevId: e7df218ea71800e71409de20474f43eb758e41de
2023-07-13 12:05:33 +00:00
Alexandr Suhinin
41f8056cad
[extract duplicates] EA-621104: check if elements are valid before comparison
...
GitOrigin-RevId: d07fe8398e7b1bbf3b60599358cce85058503646
2023-07-13 09:48:01 +00:00
Alexandr Suhinin
6cae588251
CR-108312: pass project to avoid nullability issues & replace obsolete call
...
GitOrigin-RevId: 5713e775c141424e339af12ec88c159008e4ea80
2023-07-11 16:34:00 +00:00
Tagir Valeev
f72cf6c6ab
[java-refactoring] InlineLocalHandler: remove redundant expireWith (progress should be cancelled automatically)
...
GitOrigin-RevId: 8d678a0a55be753769881cce293ce58fed9b7265
2023-07-10 09:08:29 +00:00
Tagir Valeev
6e73d67614
[java-refactoring] InlineLocalHandler: restore proper refactoringID
...
GitOrigin-RevId: c274a14824bc56ddf9119af71b5fd3a910bab815
2023-07-10 09:08:26 +00:00
Tagir Valeev
0465829135
[java-refactoring] IDEA-324661 Convert Inline variable to ModCommand; replace conflict & inline dialogs with choosers
...
GitOrigin-RevId: d02496feb2ad7913ec4973d1ea16cba17cdeed79
2023-07-07 21:03:38 +00:00
Tagir Valeev
2754cb6d75
[java-refactorings] IDEA-324475 ReplaceConstructorWithFactoryAction: convert refactoring to ModCommandAction
...
GitOrigin-RevId: dd45e061f60ce6e018c2afb9b96462a84a7553cf
2023-07-07 15:50:49 +00:00
Andrey Cherkasov
ed254de550
[kotlin] K2 Introduce variable refactoring: show the settings popup above the gear icon to prevent it from being closed
...
by the list of suggested names when selecting the "Specify type explicitly" setting
^KTIJ-21135
GitOrigin-RevId: 11d27b6eed6ffe90a0a4a9afcdbb21416f981d24
2023-07-04 17:11:35 +00:00
Tagir Valeev
139ea710e4
[model-branch] Drop ModelBranch support in refactorings
...
IDEA-309887 Drop ModelBranch-es from IntelliJ repo
GitOrigin-RevId: c6cadd98bb97c4fcc7df861d62e451199d81f8b4
2023-07-04 08:28:46 +00:00
Andrey Cherkasov
c991d4ca83
[java] Refactoring after review IJ-CR-97162
...
GitOrigin-RevId: df817240a27c9d19cda1bc2909b4efc9c490eb99
2023-07-03 14:47:42 +00:00
Tagir Valeev
c55dfd035c
[java-inspections] RemoveUnusedVariableFix: mod-command
...
IDEA-323888 Replace 'side effect' dialog in Java quick-fixes with chooser
GitOrigin-RevId: c89ef0ad65e69348de86e10a20686dbf9f8e0d57
2023-06-30 09:01:03 +00:00
Alexandr Suhinin
cff5aa9459
[floating toolbar] IDEA-321869: disable dropdowns if all actions inside are disabled & fix update for extract actions
...
GitOrigin-RevId: 8638764b987a426a59d631c8c75064775f99956c
2023-06-26 15:15:14 +00:00
Tagir Valeev
88865252cd
[java-inspections] More ModCommands
...
GitOrigin-RevId: 2411bfe677ce7c4c3eba363df904429f00e35504
2023-06-18 15:07:08 +00:00
Nikolay Chashnikov
f82529fc81
[API] mark unused API which was deprecated in 2022.3 and earlier versions for removal (IDEA-312594)
...
GitOrigin-RevId: 8c857becefcd658f27dc1c8c0ec8910ae101a086
2023-06-12 11:00:54 +00:00
Daniil Ovchinnikov
97f0a7fd3b
migrate usages of ModalityState.NON_MODAL to ModalityState.nonModal
...
GitOrigin-RevId: fb4855bfa90dbf384fed24871e4b28ab803847bb
2023-06-09 21:58:50 +00:00
Alexandr Suhinin
3b3a723f6e
[refactoring] IDEA-319462 fix: don't revert editor state after blocking dialog
...
We should always try to revert state immediately. The only exclusion is undo/redo action. In case when template is broken by undo we can't change the document immediately and should postpone it.
GitOrigin-RevId: 98f0faab2dc6de51ee30467c5423597365f1e9aa
2023-06-08 10:15:12 +00:00
Alexandr Suhinin
7f3fb653a6
[extract method] IDEA-320142 CR-108251: clean up
...
GitOrigin-RevId: e7c15ebe6ce9fe3c95d7a6f7cdb4a549764fc29c
2023-06-08 10:15:05 +00:00
Alexandr Suhinin
dd6b261da2
[extract method] IDEA-320142: add FUS for inplace extract method performance
...
GitOrigin-RevId: 76e3a40c859074e9fb77004f7210e0bf1b0c772d
2023-06-07 10:27:00 +00:00
Bas Leijdekkers
a35ce2f670
Java Type Migration: use GlobalScope.projectScope() (IJ-CR-96216)
...
GitOrigin-RevId: 0e5babbe7e5ba0bea49ad454989c3b125f5f2456
2023-06-06 10:01:03 +00:00
Alexandr Suhinin
fe542bee34
[extract method] clean up: rename ParameterObjectExtractor and add javadoc
...
GitOrigin-RevId: 131769af232c49cf9cee09b0fc23209a7b0378cd
2023-06-05 20:15:30 +00:00
Bas Leijdekkers
36ccee62ea
Java Type Migration: validate button on opening the dialog
...
GitOrigin-RevId: bad70ebc5f28ecc9365234037edc5f595aba8367
2023-06-05 08:56:54 +00:00
Alexey Kudravtsev
14ff37953d
specify return type explicitly in Kotlin in some openapi and util to speedup Kotlin resolve
...
GitOrigin-RevId: 2b68c5d51524b822c645dbcb3828acbdd15245ad
2023-05-31 15:36:27 +00:00
Bas Leijdekkers
3ed84e673f
Java extract class: use StringBuilder instead of StringBuffer and cleanup
...
GitOrigin-RevId: c9053717aaeba00e58cb34164b660466f1fcc769
2023-05-16 19:32:17 +00:00
Bas Leijdekkers
e91500e822
Java: add cast when necessary in more places (IJ-CR-107436, IDEA-248610)
...
GitOrigin-RevId: 97431697ea4a59bb68a0d2309ad70d6bfe6e674f
2023-05-16 19:32:05 +00:00
Bas Leijdekkers
8804e740be
Java Type Migration: add assertions (IJ-CR-107433)
...
GitOrigin-RevId: 7b2898ec3bfd476da3ef83faaa25e5bc31901c2a
2023-05-16 19:32:02 +00:00
Nikolay Chashnikov
a937ba693d
[java] API cleanup: remove unused deprecated API (IDEA-312594)
...
GitOrigin-RevId: 885c1cb57291a0c99e9f911cb2d266ae8e7e0835
2023-05-15 13:58:12 +00:00
Bas Leijdekkers
ee809ff4ba
Java Type Migration: fix non-vararg call issue when migrating from vararg to array (IDEA-319141)
...
GitOrigin-RevId: 6df569696aad7c19f7f3226588124d585340dc5e
2023-05-04 10:20:21 +00:00
Bas Leijdekkers
087e06f05e
Java Type Migration: do not propagate type changes when migrating to void (IDEA-159958)
...
GitOrigin-RevId: 39568be1be3f92b456b29b33086f85bbf6fa9878
2023-05-02 18:33:59 +00:00
Bas Leijdekkers
7abf301ded
Java Type Migration: do not propagate migration to void (IDEA-159959)
...
GitOrigin-RevId: c32b7bbf7c7363844163089d0b19e81c89273ca2
2023-05-02 18:33:49 +00:00
Bas Leijdekkers
14390e675a
Java Type Migration: avoid NPE when migrating enum type to something else (IDEA-225806)
...
GitOrigin-RevId: d71d68d9395c93d6346a247c7f207ae840e2fbad
2023-05-02 18:33:44 +00:00
Bas Leijdekkers
b856d0e423
Java Type Migration: support migrating from vararg to array type (IDEA-319141)
...
GitOrigin-RevId: 9eaf8b08ee75b816d90d4db76d3ee1e449e4d78c
2023-05-02 18:33:40 +00:00
Tagir Valeev
be6a068d76
[java-refactoring] Better vararg handling in change signature
...
1. Properly handle non-vararg call sites
2. Update callsites when vararg type was changed to non-vararg or vice versa (without reordering, etc.)
Fixes IDEA-318626 Change signature incorrectly wraps/unwraps arguments when changing between varargs and arrays
GitOrigin-RevId: 3372a144be4363fef2c40e8968a07d8ed6b916a6
2023-04-28 09:47:08 +00:00
Bas Leijdekkers
b716479a1c
Java Type Migration: array -> vararg without problems (IDEA-319047)
...
GitOrigin-RevId: 0cc655e40ed1d6a74b79a56805389c72202f03b3
2023-04-27 10:21:54 +00:00
Bas Leijdekkers
8144ef9257
Java Type Migration: don't modify array creation when not needed (IDEA-319042)
...
GitOrigin-RevId: 495ce8f8abab0e57270492b64fe50a5a99382bd7
2023-04-27 10:21:53 +00:00
Bas Leijdekkers
d2bdcf661d
Java Type Migration: more and better warnings about incorrect type in the dialog
...
GitOrigin-RevId: 8878f9f5c2793f629e442799d1b873fb93a352b3
2023-04-27 10:21:49 +00:00
Bas Leijdekkers
104e8933b7
Java: improve conflict message
...
GitOrigin-RevId: 7e498db020a15cb8bb35e37a3725abfa00a2c4a3
2023-04-27 10:21:44 +00:00
Bas Leijdekkers
7c6adf32b9
Java: more conflicts dialog related @Nls annotating
...
GitOrigin-RevId: b4a3663cc8494a8e64b59195ddccb1d50f04d6eb
2023-04-27 10:21:43 +00:00
Bas Leijdekkers
7597b95fac
Refactoring conflicts dialog: add missing @Nls annotations
...
GitOrigin-RevId: 48a915cc830a417e50b425800b32885c3bf43e96
2023-04-25 08:30:35 +00:00