63 Commits

Author SHA1 Message Date
Mikhail Pyltsin
f82340ac1c [java-imports] IDEA-368382 incorrect place for module import
- support static separately


(cherry picked from commit 8d1acc0e8d2bd7d60b1f03b1ebe367d7d9f2e2a9)

IJ-CR-156496

GitOrigin-RevId: d109ac92ad1c67ef65b4267cc752475b98fa267e
2025-03-04 21:15:51 +00:00
Mikhail Pyltsin
8ce55bb2be [java-imports] IDEA-368382 incorrect place for module import
(cherry picked from commit ce6ec1c65d5777e5e3059093fdd01baf24f95e50)

IJ-CR-156496

GitOrigin-RevId: 4e3ae37de77005802a25b2f85de3dfa43ea4a2bf
2025-03-04 21:15:51 +00:00
Mikhail Pyltsin
cd9a60ab8f IJ-CR-151305 [java-import] IDEA-364508 support optimize imports
- use layout table

(cherry picked from commit 6862419acc2beb72f87cca6b93612f9afe81f698)

GitOrigin-RevId: af86c63fa16f760ad3fd0b66fc9f86f7a21de7c7
2025-02-13 14:23:52 +00:00
Mikhail Pyltsin
46bfa503aa [java-import] IDEA-364508 support optimize imports
- new options are added
- changes for optimize imports

(cherry picked from commit 82b0223f9e7e2972d13ab182ea651cdccd28a5d3)

GitOrigin-RevId: 99f0276e1d9464f75f5bbce91ad09727582d208b
2025-02-13 14:23:52 +00:00
Bas Leijdekkers
2ce2af7f8e Java: avoid changing code style api for import setting (IJ-CR-147745)
(cherry picked from commit b6d8223525eabd52a7973ef10927403063b3b89a)

GitOrigin-RevId: 19da9f718812ff0f553d5363cd2b5ce6724e7f49
2025-02-13 14:23:52 +00:00
Bas Leijdekkers
2ec44412eb Java: add "Layout on-demand import from the same package first" option (IDEA-204441)
enabled by default for consistency with other tools

(cherry picked from commit df5a4b65c5f31b195bd091a91d16ea0bc7bcc36c)

GitOrigin-RevId: 3b669ce15e9ad037bcff9c1e2638e2b823424ef7
2025-02-13 14:23:52 +00:00
Vladimir Krivosheev
4a176d4c02 IJ-CR-146078 extract intellij.platform.bootstrap
GitOrigin-RevId: b79efc92829111228e83058e54381d8e02116b6f
2024-10-05 22:01:55 +00:00
Mathias Boulay
b7d5b6900c feat(javadoc-handler): basic typing assistance
GitOrigin-RevId: 500c7ede653a91d1ea67c85efc2248657c35ccab
2024-09-17 16:28:17 +00:00
Mikhail Filippov
f13d92e82f IJPL-150165 switch to invoke dynamic lambdas in Kotlin
GitOrigin-RevId: 63ba45a21874cc723917982996fce1a510b2a182
2024-09-05 11:19:31 +00:00
Mikhail Filippov
bf43f2fc01 IJPL-150165 bump Kotlin language and API version
GitOrigin-RevId: a59dc8ca214a5047773fccf1cf28a1e1b07acf68
2024-08-30 22:15:55 +00:00
Aleksey Dobrynin
0a0e345835 [java, import-module] Refactor import statement hierarchy IDEA-353091
IJ-CR-139321

GitOrigin-RevId: f5a2188b18afad7cb2912d3ff282ef9929f20ca6
2024-07-19 12:20:22 +00:00
Georgii Ustinov
afe7dce9e5 [Java. Code Formatting] Clone myOldVersion in JavaCodeStyleSettings
IDEA-110857

GitOrigin-RevId: 9ae34fdaf637c98409ec02be9e0d1e3616ea748b
2024-07-12 14:51:10 +00:00
Georgii Ustinov
122fe0ae87 [Java. Code Formatting] Append version attribute to java codestyle tag only when migrated change is different old one
IDEA-110857

GitOrigin-RevId: 23301809e23ffb7ded85b8209349c79f3dcb9128
2024-07-12 09:26:49 +00:00
Georgii Ustinov
b94d324565 [Java. Code Formatting] Write empty tag for JavaCodeStyleSettings only when there is different value between custom settings and common settings
IDEA-110857

GitOrigin-RevId: 9ad96677ba656b486c4ae158dc8abcf7811bccdd
2024-07-11 12:29:38 +00:00
Georgii Ustinov
3fb4fbf41e [Java. Code Formatting] Implement simple migration mechanism for JavaCodeStyleSettings
IDEA-110857

GitOrigin-RevId: 5f31d21d695af1e56a0dc0942a817a61e41b2384
2024-07-11 12:29:38 +00:00
Georgii Ustinov
a3196c0297 [Java. Code Formatting] Remove bad way of migration JavaCodeStyleSettings
IDEA-110857

GitOrigin-RevId: b44f2d53170f7753d5c7c61d1caec72e0af3c432
2024-07-11 12:29:38 +00:00
Georgii Ustinov
7d3f7355df [Java. Code Formatting] Improve detection of migration for JavaCodeStyleSettingsMigrationActivity
IDEA-110857

GitOrigin-RevId: fe861ec72fd97049578d96f1bda9f07824f8186e
2024-07-04 19:56:49 +00:00
Georgii Ustinov
4f741ef16c [Java. Code Formatting] Create a migration activity for java codestyle settings
IDEA-110857

GitOrigin-RevId: 6469cfd69acf5e68dad3cced70942326ebde1c7c
2024-07-04 19:56:48 +00:00
Georgii Ustinov
93b6c3ccc2 [Java. Code Formatting] Split option to add blank lines for fields with/without annotations
IDEA-110857

GitOrigin-RevId: 6ee23199e686c649439833df1223a12494be9d00
2024-07-04 19:56:48 +00:00
Mikhail Pyltsin
42968dfc2f IJ-CR-137825 [java-typing] IDEA-354366 close braces after switch rule
- support multiline case rules

GitOrigin-RevId: 8c5dd5a3c4cb6b699c565ef39c2c29deacffc7e2
2024-06-26 14:34:55 +00:00
Mikhail Pyltsin
3b8b3f50f4 [java-typing] IDEA-354366 close braces after switch rule
GitOrigin-RevId: 057d759e922903ffca05c1ad6c405f4422e90d26
2024-06-25 19:07:29 +00:00
Mikhail Pyltsin
2023228d8c [java-generation] IDEA-344399 generate annotation based on type_use option
- extracted new option
- reuse this option in MissortedModifiersInspection
- override uses this option too

GitOrigin-RevId: 39f3f72991240753c86c7f80df865728aa9743ad
2024-06-17 21:14:57 +00:00
Mikhail Pyltsin
4221b3e7bb [java-parser] Fix unnecessary qualifiers for static fields for parsers
GitOrigin-RevId: 8e0e9b3351cfc9229137661c555e898194e53060
2024-06-14 18:09:14 +00:00
Georgii Ustinov
bbeb4ab06d [Java. Code Formatting] Add javadoc for formatter option "Inside block braces when body is presented"
IDEA-270369

GitOrigin-RevId: b08f6a21f3f06cb5291f8b6c20273a11b290d452
2024-06-10 14:55:42 +00:00
Georgii Ustinov
3ae38b4cff [Java. Code Formatting] Fix typo for whitespace option "Inside block braces when body is presented"
IDEA-270369

GitOrigin-RevId: cce77ef8ec80c45622f6707c9671ac5a774763f8
2024-06-10 10:10:41 +00:00
Georgii Ustinov
bb9759a556 [Java. Code Formatting] Add support to configure spaces for simple nonempty blocks when the "Spaces within blocks" is disabled
IDEA-270369

GitOrigin-RevId: 19283bcf734658323659abe7f14e5c38fdc9fec3
2024-06-07 17:47:43 +00:00
Yann Cébron
56cd5fddea [java] JavaLineIndentProvider: remove static init
GitOrigin-RevId: fd4fb3dcdc3414e0ac61c2e2b2ed48d5d498e85b
2024-03-06 19:11:19 +00:00
Tagir Valeev
c3b35ef889 [java] Rename methods to avoid mentioning explicit Java version
GitOrigin-RevId: a2d0fcf924b19d88462cbae662f6bc50fac51903
2024-02-13 15:29:35 +00:00
Tagir Valeev
bf85acba82 [java] More JavaFeature uses
Also: new JavaFeatures (ASSERTIONS, ENUMS, PRIVATE_INTERFACE_METHODS)

GitOrigin-RevId: f073845a77730b486afa56317e2c12ff044f5425
2024-02-12 19:12:43 +00:00
Tagir Valeev
95fab49390 Warnings fixed
GitOrigin-RevId: b0f27da5a94e6497f85c95b51625f4512304cfcc
2024-02-09 21:17:03 +00:00
Georgii Ustinov
73b8f74c04 [Java. Code Formatting] Fix indent for the first new line in multiline string when press enter
IDEA-327035

GitOrigin-RevId: 38d9fe32ce4ef171a89b53cb7034a3010786ec71
2024-01-15 16:37:31 +00:00
Georgii Ustinov
b255a19d17 Rename JavaCodeStyleSettings option for moving simple methods to the new line
IDEA-126070

GitOrigin-RevId: c4df6085aec282617344b1876cb8cc3c7bff5629
2024-01-04 12:13:12 +00:00
Georgii Ustinov
a8e0525924 Add formatter option to move method body on new line in simple method
IDEA-126070

GitOrigin-RevId: ce849fa727fa2bf1b3c27231c408e7fe0a06c00d
2024-01-04 12:13:10 +00:00
Andrey Cherkasov
24adef8e2a Resolve warnings about 'protected' members in a 'final' classes
GitOrigin-RevId: 5d7c04b6371be1f2cc924a86614919ab6ee5b642
2023-12-14 17:36:45 +00:00
Andrey Cherkasov
019a6852f4 [java] Make extension classes final
GitOrigin-RevId: 1aae04982598568a111e8c78b9a71c9d2b4aa150
2023-12-13 20:02:09 +00:00
Georgii Ustinov
dacbca4cb7 Add wrapping options for enum fields annotations
IDEA-171773

GitOrigin-RevId: 51cf6a8154d9d278b182f165f98efa2d83d052d3
2023-12-12 13:26:17 +00:00
Mikhail Pyltsin
2e1c6343f2 [java-rd] IDEA-339292 Move setting to fronback part to make them available for remote dev
Merge-request: IJ-MR-121171
Merged-by: Mikhail Pyltsin <Mikhail.Pyltsin@jetbrains.com>

GitOrigin-RevId: ae28b85856cb723e7b51bea3e3cbef91e6de634d
2023-12-01 17:44:34 +00:00
Tagir Valeev
8b1795dc3f [java-typing] Yet another fix for braces typing in string templates (IDEA-336810)
GitOrigin-RevId: 70895c6be623545585ecf7f01f02fda73db8eea8
2023-11-28 15:14:49 +00:00
Tagir Valeev
749f715eab [java-typing] Improve support of brace skipping (IDEA-336810)
GitOrigin-RevId: 0ec9bfb13f33a14254d0d7b7dcb0e3874898f52c
2023-11-09 11:04:44 +00:00
Alexey Kudravtsev
9b4cc7a05d new inspection: "missorted imports" with quick-fix-only severity, to fix IDEA-334084 No "Optimize imports" action is displayed
GitOrigin-RevId: 92028252fc0b4c8ab05b7236de15ff44090a7183
2023-11-08 14:55:31 +00:00
Mikhail Pyltsin
5cb5c4c79c [java-rd] IDEA-337346 Exception in java thin client for highlighting brackets
GitOrigin-RevId: 8703602214ecf1acdda745e0afc606700b74ddc1
2023-11-07 00:05:10 +00:00
Nikolay Chashnikov
055febd921 [java rd] use fake root packages for modules included in com.intellij.java.frontend plugin (IDEA-322563)
We need to have root packages for module xml files in plugin model v2, but if we specify packages with real classes in these modules, they'll fail to load with "must not be requested from main classloader" error, because inter-module dependencies aren't specified for these files. If we specify module dependencies, the big 'com.intellij.java' plugin will fail to load because it isn't migrated to plugin model v2 yet and includes contents of these module descriptors via xi:include tag. So it seems that we need to use fake packages without real classes until 'com.intellij.java' plugin is migrated to plugin model v2.

Check in InterfaceExtensionImplementationClassResolver is suppressed for 'com.intellij.java.frontend' plugin as well for now.

GitOrigin-RevId: 7b2321835becc9f4589ddae09a40160bf735044e
2023-11-06 19:58:09 +00:00
Tagir Valeev
f179a8a2e9 [java-typing] Skip closing brace after non-first embedded expression (IDEA-336810)
GitOrigin-RevId: a3a06e08fba502cf58ef08774cf4a7e3401a7a97
2023-11-06 19:11:42 +00:00
Tagir Valeev
6b0d88e6a8 [java-typing] IDEA-336810 Braces insertion for String Templates doesn't work correctly for text blocks
GitOrigin-RevId: 3224ca9e1eae8100d34a52a46e9da569979534c4
2023-11-02 20:33:53 +00:00
Bas Leijdekkers
2ebaab02d1 Java: fix selection behaviour for String Templates (IDEA-333906)
GitOrigin-RevId: 0727e9c5b4a56d752bc38d7fc6fa22ca676dd9ba
2023-10-31 23:25:43 +00:00
Bas Leijdekkers
fb26d47cda Java: fix text block extend selection behaviour (IDEA-227005, IDEA-226986)
GitOrigin-RevId: 9d9f4201db2e0b2dfedc8485701ea6f050e0df41
2023-10-31 23:25:21 +00:00
Bas Leijdekkers
661fc8569c Java: fix text block selection behaviour in text blocks with escaped newlines (IDEA-282073)
GitOrigin-RevId: 430c4c67698acdb46d1756c5ed3bc12d6b01a5bd
2023-10-30 10:30:22 +00:00
Tagir Valeev
169a5849ac [java-typing] Fix test and } handling in string templates (IDEA-333179)
GitOrigin-RevId: 318d7215f7aa80ec0bf7f2c4f3a2228856e23a1e
2023-10-04 16:35:57 +00:00
Tagir Valeev
5a61cfcc6e [java-typing] String template typing improvements: avoid } duplication; fix at input at EOF
GitOrigin-RevId: 5e2a3509a9300d53c2101d22bf4420fd5e520949
2023-09-29 17:40:48 +00:00
Mikhail Pyltsin
b851673c40 [java-rd] IDEA-322563 refactoring for java rem-dev
- rename BasicJavaDocElementType with BASIC_, to distinct them from usual ones

GitOrigin-RevId: 4f33eb1ddb49412501bd21a9c7cf53a1ea591521
2023-09-29 09:19:18 +00:00