Commit Graph

76 Commits

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


(cherry picked from commit 8d1acc0e8d2bd7d60b1f03b1ebe367d7d9f2e2a9)

IJ-CR-156496

GitOrigin-RevId: b85061e1772f4b7b6603edb980e34d90f6693e42
2025-03-04 23:50:21 +00:00
Mikhail Pyltsin
8830d6dde5 [java-imports] IDEA-368382 incorrect place for module import
(cherry picked from commit ce6ec1c65d5777e5e3059093fdd01baf24f95e50)

IJ-CR-156496

GitOrigin-RevId: 82bbd7a8f64ab39cf4fed24e4a5eb5457e29a49e
2025-03-04 23:50:21 +00:00
Vladimir Krivosheev
32eeb4ee9f update bazel files
GitOrigin-RevId: 524d4c1ce8590184de334693be7d6a207d8682f7
2025-02-05 12:27:57 +00:00
Victor Turansky
45c546d689 WEB-68929 Module intellij.xml.parser (from intellij.xml.frontback)
GitOrigin-RevId: de312aa4b70477a324b9750452a22b3a8d4a0457
2025-02-04 21:14:05 +00:00
Nikolay Chashnikov
3c560d0268 [java] cleanup: get rid of fake packages in content modules of Java Frontend plugin (IDEA-366600)
Fake packages were used to ensure that the main plugin classloader is used to load the classes from content modules. Now the same can be achieved explicitly with loading="embedded" attribute. This is also needed to ensure that the classpath for content modules can be properly specified (this is needed for IJPL-165692).

Also, it's possible to use auto-layout for the plugin, so there is no need to specify it explicitly.

GitOrigin-RevId: 6a75b4868b796215018d230949752bc978c60476
2025-01-31 17:23:22 +00:00
Vladimir Krivosheev
051ed2529b cleanup
GitOrigin-RevId: 6fa4f979e0a6641885e2225eb985b13713373ac5
2024-12-26 14:56:01 +00:00
Bas Leijdekkers
0ed14734d9 Java: add configuration for a separate color for record components (IDEA-350397)
GitOrigin-RevId: d3efcc3d50a2641306c32775ab356c188330f8e8
2024-12-19 19:09:44 +00:00
Bas Leijdekkers
3c2a0901cc Java: add configuration for a separate color for record classes (IDEA-338018)
GitOrigin-RevId: 45ef46717d9d49575a3a207fbeacd2ea3759fb83
2024-12-19 19:09:44 +00:00
Bas Leijdekkers
aaae6972f9 Java: use .messagePointer() to avoid storing UI strings in static field in color settings
GitOrigin-RevId: b2e71849660cfed94c202dec6e0e3ace60ca38e0
2024-12-19 19:09:44 +00:00
Mikhail Pyltsin
36c497436c IJ-CR-151305 [java-import] IDEA-364508 support optimize imports
- use layout table

GitOrigin-RevId: 6862419acc2beb72f87cca6b93612f9afe81f698
2024-12-19 18:02:44 +00:00
Nikolay Chashnikov
45a808fcdc [intellij project configuration] remove Kotlin facets which don't specify any custom options for a module
If there is no Kotlin facet in a module, it automatically inherits the project-wide options from .idea/kotlinc.xml. So if a configuration of a Kotlin facet in a module doesn't specify any custom options, the facet is not necessary, and it can be removed to simplify the project configuration and make it easier to modify project-wide options later.

Also, a test which reports such unnecessary Kotlin facets is added.

GitOrigin-RevId: 7cf2a714064499e1cdd768978ff7afd839567c87
2024-12-17 14:02:59 +00:00
Vladimir Krivosheev
98799639aa do not use _test as lib - test targets do not support this
GitOrigin-RevId: f2f49db4294b6a64040dbbd5f1d95e972cbd70a3
2024-12-15 18:32:30 +00:00
Mikhail Pyltsin
ab52fbdf4e [java-import] IDEA-364508 support optimize imports
- new options are added
- changes for optimize imports

GitOrigin-RevId: 82b0223f9e7e2972d13ab182ea651cdccd28a5d3
2024-12-10 19:06:21 +00:00
Vladimir Krivosheev
8c77c9ed84 don't export ide.core.impl from lang-impl
GitOrigin-RevId: 029fef0995b0d8e6b684f463bdd856dd17021366
2024-12-02 11:32:59 +00:00
Vladimir Krivosheev
17916c90f8 libraries -> lib, resources, opt-in, test deps
GitOrigin-RevId: db66ee95dcb0f0553b40c9cc56cd6afed8634cdd
2024-11-27 13:53:42 +00:00
Georgii Ustinov
abfeea2b41 [Java. Code Formatting] Format records annotations similar to java fields
IDEA-298007

GitOrigin-RevId: 685e8020cef634d3554a70cbb35d9c5fd2fc33d1
2024-11-14 19:02:05 +00:00
Andrzej Głuszak
cbca664f6c [bazel] Second attempt at generating tests
GitOrigin-RevId: 7763c9994b7c311310b83b98a542775feb00ed68
2024-11-09 11:06:41 +00:00
Bas Leijdekkers
70a876a4fe Java: avoid changing code style api for import setting (IJ-CR-147745)
GitOrigin-RevId: b6d8223525eabd52a7973ef10927403063b3b89a
2024-10-25 14:51:18 +00:00
Bas Leijdekkers
4b1e32f7c4 Java: add "Layout on-demand import from the same package first" option (IDEA-204441)
enabled by default for consistency with other tools

GitOrigin-RevId: df5a4b65c5f31b195bd091a91d16ea0bc7bcc36c
2024-10-24 22:20: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