Commit Graph

675 Commits

Author SHA1 Message Date
Mikhail Pyltsin
d6bb45a7d4 IJPF-CR-29151 [java] IDEA-374204 JEP 512: use 'Compact Source Files' for implicitly declared classes
- fix naming

(cherry picked from commit 91c2c095f5ca3b2ac3d6fc6de8d85b4f7205cfe7)


(cherry picked from commit e9c066e0a80b0154b69f1cf94334ab1e209dd74f)

IJ-MR-169535

GitOrigin-RevId: 305bc4173b42de65872f95e867b193eaef35a8c8
2025-08-04 12:58:50 +00:00
Mikhail Pyltsin
a631076474 [java] IDEA-374204 JEP 512: use 'Compact Source Files' for implicitly declared classes
(cherry picked from commit e77a013fa84cbafbfec866f6489147115532f656)


(cherry picked from commit 4619021e3dc70c3bec362b174b02a25212b954db)

IJ-MR-169535

GitOrigin-RevId: 639568fba9e6ac43f505e88d4cd5510f6203dd55
2025-08-04 12:58:49 +00:00
Mikhail Pyltsin
845ea744cc [java] IDEA-373074 Improve SOUT templates for java 25
(cherry picked from commit 688a0f2ccefaa6f3f9b51c8528fa11e61d0798b0)


(cherry picked from commit e7979c1d2177b555cf816a20bb76720703f2e84a)

IJ-MR-169535

GitOrigin-RevId: 7cebb5b39a388c2c53e7f338f30669856bdd4c2a
2025-08-04 12:58:49 +00:00
Bartek Pacia
febaca0ca5 [java] IDEA-372997 Move localized descriptions of Structured Concurrency templates to Java plugin from platform/lang-api
(cherry picked from commit d818631c92bc070b42da3fe2b9990ace11b4fbb3)


(cherry picked from commit de31500a1e0298c180773e039d394ac0d988d4b7)

IJ-MR-169535

GitOrigin-RevId: d2436f9bf5763001f9d6e8cfec491038b66fe3bd
2025-08-04 12:58:49 +00:00
Bartek Pacia
5cba7b1050 [java] IDEA-372997 JavaFeature: create two versions of the Structured Concurrency to reflect reality in JEPs
see discussion in IJ-MR-167068

(cherry picked from commit 6d36cb4375f8f6a6d7d7b603de037c2c7a5255a8)


(cherry picked from commit bc222c301dfe54624b54c05431dadf0a5c0523dc)

IJ-MR-169535

GitOrigin-RevId: 05d36387c2949811727a8191dd8cf9a4bb70ee8e
2025-08-04 12:58:49 +00:00
Bartek Pacia
ba9ef159a8 [java] IDEA-372997 Bring back stss and stsf template and restrict to only JDK 24 preview
(cherry picked from commit d89039c7426017c35f70bdcbb11061fcfedf22a3)


(cherry picked from commit 1b673e44fa7f54e94d1015734de85344143ce493)

IJ-MR-169535

GitOrigin-RevId: fdbda50a60d7aa2ca077f334788a16245bdfe025
2025-08-04 12:58:49 +00:00
Bartek Pacia
f36a9d58bc [java] IDEA-372997 Restrict sts template to only JDK 25 preview
(cherry picked from commit 40d0c8a18018eaf2d086af82f47298e83204dcec)


(cherry picked from commit 0ef55b7e2e6016e27237414a32bf791de27a4431)

IJ-MR-169535

GitOrigin-RevId: c77ebf28ee136a711cb7a79032e8ae2f8c2d7f43
2025-08-04 12:58:49 +00:00
Mikhail Pyltsin
a36ca2612b [command-completion] IDEA-359174 i18name as main lookup
GitOrigin-RevId: 945443d9f0c0aff95fb551859287f7236191d1c4
2025-06-11 17:02:49 +00:00
Louis Vignier
4bfba9c80e [java] Support the auto-run floating toolbar in remdev
#IDEA-365843 Fixed

GitOrigin-RevId: 632b97cdb34f31ab99c802d08094c863c3119fcd
2025-05-14 19:51:38 +00:00
Tagir Valeev
25e7779fcb [java] AddAnnotationModCommandAction: proofreading
GitOrigin-RevId: 1ba57b76cb69d5c8712e2db089a0a4f7b0faf827
2025-05-09 18:02:40 +00:00
Mikhail Pyltsin
0acd402d7f [java-inspections] IDEA-360279 Unable to convert a class into implicit declaration when package is present
GitOrigin-RevId: 60ea75dd154ad17728ad9732c1819916cbaf5751
2025-05-09 17:47:47 +00:00
Mikhail Pyltsin
b1cfbfa235 IJ-CR-162106 [java] IDEA-360079 live templates for instance main methods in implicitly declared classes
- add psvm for normal class, implicit class and normal class with instance 'main' method

GitOrigin-RevId: 46858978ef26162826e951e032d8eca4e85cac49
2025-05-09 14:12:08 +00:00
Mikhail Pyltsin
b2368cb44b [java] IDEA-360079 add simple source file
GitOrigin-RevId: 16e846dabdf1235053f53ac95e5c0183e74ec3e0
2025-05-09 09:06:33 +00:00
Mikhail Pyltsin
38f373ab40 [java] IDEA-362896 JavaReferenceAdjuster.process executed on EDT slows down typing event processing
GitOrigin-RevId: cb0ac1e0396eb34272b17cea4a6835dcd67997b1
2025-05-06 19:49:35 +00:00
Mikhail Pyltsin
ec18253a22 [java] IDEA-360079 live templates for instance main methods in implicitly declared classes
GitOrigin-RevId: 60f08b8d4575de163bcba438933cf146fdbcd020
2025-05-06 08:46:49 +00:00
Mikhail Pyltsin
3bc213afc9 [java] IDEA-371449 fix format messages
GitOrigin-RevId: 562cefa551473ae5806065d2e08b584e6f6ca78b
2025-04-23 18:02:02 +00:00
Dmitry Batkovich
7839a41189 java: fix missing properties
GitOrigin-RevId: b759ad927d0f4953b5b8ca59666e2176e095093b
2025-04-23 13:32:00 +00:00
Dmitry Batkovich
6319a70ded java: move code style and formatter to frontback. It activates features like smart indent on frontend side
GitOrigin-RevId: 5e124ce9dc73155495ebf82ce283c3f9d5516e53
2025-04-19 21:43:40 +00:00
Maksim Zuev
dcd2a74aae [rd debugger] IDEA-370752 Move ThreadDumpAction to java.frontback module to be available at FE
GitOrigin-RevId: 66f767742d0bdcfb3baa5c2612d23a985346dd78
2025-04-16 20:14:15 +00:00
Vladimir Parfinenko
a0d9adde47 [debugger] thread dump panel, show 'loading' text while loading the dump
GitOrigin-RevId: d42dbe26db4afbcb60aff3143364e311880e7f45
2025-04-15 15:57:20 +00:00
Bas Leijdekkers
9838188e46 Java: rework "Inconsistent whitespace indentation in text block" inspection (IDEA-353100)
GitOrigin-RevId: f2b3042e93e5b9e94fc1b2ee1d7341dd9224d480
2025-04-15 08:34:10 +00:00
Dmitry Batkovich
26fa2e4612 java: drop duplicated property declaration
GitOrigin-RevId: 4ecd5ee80d1f743855458dba2d1bbbd28b835932
2025-04-13 15:15:41 +00:00
Tagir Valeev
288801be45 [java-intentions] AddAnnotationModCommandAction as a replacement for AddAnnotationFix and AddAnnotationPsiFix
Used in many places; also AnnotateIntentionAction and AnnotateCapitalizationIntention converted
Part of IDEA-369745

GitOrigin-RevId: 224155324475db2e36a82f79ec64186f0acee676
2025-03-31 11:33:30 +00:00
Bartek Pacia
a6ff3d6fbc [java-inspections] ClassCanBeRecord: support running in batch mode + update description
Follow up to IJ-MR-156343

#IDEA-252930 fixed

Merge-request: IJ-MR-158206
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com>

GitOrigin-RevId: 07013864ce6a86007fb82addb1b9a04f03844911
2025-03-28 14:50:23 +00:00
Tagir Valeev
98de135081 [mod-commands] Fully ModCommand-based add external annotation; MakeAnnotationExternal converted
IDEA-369600 finished

GitOrigin-RevId: 55faecc97fb46194a6f76a17a6b8c337bf1e9ef1
2025-03-26 18:21:27 +00:00
Tagir Valeev
2fb27de94c [java] ExternalAnnotationsManager: use OptPane to render file chooser
Part of IDEA-369600 Convert MakeAnnotationExternal to ModCommand

GitOrigin-RevId: 342596b443c2679aa93ae6c8e992cd4f876baa9c
2025-03-26 18:21:27 +00:00
Bas Leijdekkers
9f5203ebb8 Java: move message to the appropriate bundle
GitOrigin-RevId: b5d75853c7aa206eff6e961439c4e4a489cba157
2025-03-20 18:24:49 +00:00
Bartek Pacia
c1c91cd441 [java-inspections] ClassCanBeRecordInspection: fix behavior and options phrasing
Changes summary:
- make conflicts view always show up if accessibility would be weakened by class->record conversion
- add checkbox to control whether to highlight or not cases where class->record conversion would weaken accessibility

Merge-request: IJ-MR-156343
Merged-by: Bartek Pacia <bartek.pacia@jetbrains.com>

GitOrigin-RevId: e40d44b40c0b680b7a94229eec065836257d9543
2025-03-14 20:26:44 +00:00
Mikhail Pyltsin
e4963f56d8 [command-completion] IDEA-359174 command completion
- plural 'getter' and 'setter'

GitOrigin-RevId: 72baab4184338cd2e49d156358e6df8dd7b1bcf6
2025-02-21 12:05:41 +00:00
Mikhail Pyltsin
b5b56ff75d [command-completion] IDEA-359174 command completion
- fix delete command
- improve moving intentions

GitOrigin-RevId: 048e070d8f83fc2ef24c806fc437549712762ddd
2025-02-21 12:05:41 +00:00
Louis Vignier
ac93475ae9 [java] Maximize horizontal space in ImportLayoutPanelUI
IJ-CR-146082

GitOrigin-RevId: dfc38a23b55712b672a9637800a3e27b14c0e066
2025-02-19 19:08:35 +00:00
Mikhail Pyltsin
71b95a736f Revert "[java-runner] IJ-CR-154797 IDEA-363985 Temporary workaround for JNI restriction"
This reverts commit dda8badb

GitOrigin-RevId: a52b17f30c338d7bb11caecf17e32690f6621582
2025-02-18 12:51:57 +00:00
Bas Leijdekkers
c65665d0e9 Java: fix "Selected scope contain no Java classes" message
GitOrigin-RevId: 3c0a4fe362e6f68c05f5639b4c1e9e0502119e51
2025-02-16 22:58:12 +00:00
Tagir Valeev
2350d69472 [java-highlighting] JavaCompilationErrorBundle.properties proofreading (DOC-34381)
GitOrigin-RevId: 05bdca159a63027ea0d1e3d767d4adb9b258f47e
2025-02-14 12:45:24 +00:00
Maria Sokolova
c8c9b54efb [coroutines-debugger] Introduced a new type DumpItem to represent entities shown ThreadDumpPanel.
DumpItem is supposed to represent threads, virtual threads or coroutines.

Related tickets:
IDEA-355724
IDEA-367130

GitOrigin-RevId: 738b6dd7f72e87e0e8d5e5fb453eb6df95846e26
2025-02-11 17:55:10 +00:00
Mikhail Pyltsin
f101871c0c [java-runner] IDEA-363985 Temporary workaround for JNI restriction
GitOrigin-RevId: 636caa3aaf46f8bbe6b37ca474662bb95f705f97
2025-02-11 12:06:41 +00:00
Mikhail Pyltsin
6150820425 [command-completion] IDEA-359174 first draft of command completion
- move to platform part

GitOrigin-RevId: 9dde441fccb6ea470faa08a8df8bad75f60fcad4
2025-02-11 09:31:20 +00:00
Tagir Valeev
178b721cf7 [java-highlighting] Preview warning migrated
Also improve reporting, different messages for errors and warnings; reflective preview use reported by inspection
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: d7c85058aed3202d0599fc879a61c0fa56388fea
2025-02-10 14:02:54 +00:00
Tagir Valeev
9b9ed3498f [java-core] Move JavaPreviewFeatureUtil to codeserver.core
Part of IDEA-365344 Create a new Java error highlighter with minimal dependencies (PSI only)

GitOrigin-RevId: 79db63637514eef45284a8535d8fa8d9bad129f7
2025-02-07 16:16:33 +00:00
Mikhail Pyltsin
4543b3fe66 [java-import] IDEA-366927 and IDEA-366926 improve auto-import
- fix inspections

GitOrigin-RevId: 629202f11b819d73aadbf9d0a6c6ce85b58bf39b
2025-02-05 15:36:45 +00:00
Mikhail Pyltsin
3402d737d7 [java-import] IDEA-366927 and IDEA-366926 improve auto-import
- use code style for on-demand imports
- support members for auto-import, not the whole class

GitOrigin-RevId: 32d14c06819a1b1062b081756f614113e22c9858
2025-02-04 20:23:25 +00:00
Bas Leijdekkers
b4544c7a42 Java: clearer name for inspection and quick-fix
GitOrigin-RevId: 0ee29991b00d4ac8341c031a4a111b23bb44b800
2025-02-04 14:01:33 +00:00
Mikhail Pyltsin
4453ec0191 [java-imports] IJ-CR-153077 IDEA-13817 Create "favorites" for static import and completion
- improve localization

GitOrigin-RevId: f930fb24872b9a126ee445e5e7bcaa777264b327
2025-01-31 15:49:15 +00:00
Louis Vignier
5561c58027 [java] Notify after using an action to add a JDK
If add JDK / download JDK actions are called when the project JDK is not defined, it is set and a notification is now shown.

IJ-CR-138757

GitOrigin-RevId: d7e49bc88a1a920036cb9919054dd8c66287d8b4
2025-01-31 00:45:11 +00:00
Mikhail Pyltsin
c31dc919a9 [java-imports] IJ-CR-153077 IDEA-13817 Create "favorites" for static import and completion
- new intention to add to auto-import
- fix conflict with packages

GitOrigin-RevId: 5a42079a0eb7bc798a5cc6b0602487381e1141ce
2025-01-28 12:41:42 +00:00
Mikhail Pyltsin
0e5380e1c0 [java-completion] IDEA-359174 first draft of command completion
- comment for element

GitOrigin-RevId: 4e95c325a0468bf50c002426bfd06b42537aa88d
2025-01-22 18:23:48 +00:00
Mikhail Pyltsin
3cb38fccaa [java-imports] IDEA-13817 Create "favorites" for static import and completion
- part of "favorites" for static import. Inspection and refactoring

GitOrigin-RevId: a764a70000c3f0918e50a814908e5969b93688d7
2025-01-16 14:21:49 +00:00
Mikhail Pyltsin
b1a1f903ba [java-imports] IDEA-13817 Create "favorites" for static import and completion
GitOrigin-RevId: 786ff0d07a68ecb53f3c929600353bc28f483bf0
2025-01-16 14:21:49 +00:00
Mikhail Pyltsin
f931a399f4 [java-import] IDEA-364508 IJ-CR-151305 support optimize imports
- add missed message

GitOrigin-RevId: 6885ba91554a04653cf2a2010b337988d6bd9325
2025-01-10 13:19:34 +00:00
Tagir Valeev
2ab7e44f8d [java] Remove FindJarFix
It relies on the findjar.com service which doesn't work for a very long time
Makes obsolete IJPL-9359 "Find Jar On Web" feature doesn't work
Makes obsolete IDEA-240221 Find Jar On Web fails to download some jars
Also fixes IDEA-335544 Request: extension points to disable FindJarFix intention actions

GitOrigin-RevId: a2295375eea2d585ce924818e899bab12294a450
2025-01-08 19:09:54 +00:00