Commit Graph

116 Commits

Author SHA1 Message Date
Roman Shevchenko
d9dc08c673 [platform] using new restarter on macOS (IDEA-327235 prerequisite)
GitOrigin-RevId: 1c669198cd2d7a95358de8b79c7fb4256f2b8d1c
2023-09-28 22:39:56 +00:00
Artem Bochkarev
1d4e3aa898 IDEA-319117 call menuNeedsUpdate from menuWillOpen if necessary
and also remove unnecessary fillMenu() from menuWillOpen

GitOrigin-RevId: f7bf20c03fb629c08f66da2d21eb200cfdf728ad
2023-05-01 17:22:08 +00:00
Artem Bochkarev
ef91229aeb IDEA-315910 don't process key-events by NSMenu items
GitOrigin-RevId: 28b8d792bfe65bf8a468e17a199ca9445155c35f
2023-04-19 14:50:43 +00:00
Artem Bochkarev
1ea1c6f959 IDEA-315910 update binary
GitOrigin-RevId: 867a1cd5e6843f4dbd09231975c6feb492bb8c3b
2023-04-19 09:01:51 +00:00
Artem Bochkarev
ca6fa04dc4 IDEA-315910 update binary
GitOrigin-RevId: fdc37efa6e855c34bd7099c4063e577506ada743
2023-04-18 16:34:41 +00:00
Roman Shevchenko
26c73abdee [vfs] even stricter input checks in macOS filesystem event helper (IJ-CR-95917)
GitOrigin-RevId: 53018f36f7a79d8d10cf1e5a569e18b707aeef99
2022-10-07 18:12:01 +00:00
Roman Shevchenko
514c4286a8 [vfs] stricter input checks in macOS filesystem event helper (IJ-CR-95917)
GitOrigin-RevId: 2515283e17942a43d570c8a9cba80d4d4b26d978
2022-10-05 10:11:50 +00:00
Roman Shevchenko
1c3fcb41fd [vfs] checking input bounds in macOS filesystem event helper (IDEA-302494)
GitOrigin-RevId: fb8a71627641018341b5040655f9508847c19b4f
2022-09-27 11:06:13 +00:00
Artem Bochkarev
f39cc03d92 IDEA-298038: avoid complete clearing of appmenu
GitOrigin-RevId: 8b1e4110839b1e35b606af62dac211c5d782712a
2022-08-02 10:52:45 +00:00
Artem Bochkarev
1cdfbcad75 IDEA-296486: minor correction (syntax)
fixed remark from review

GitOrigin-RevId: cc976db4791656b6429e250b8f3c3895d72724e1
2022-07-12 08:17:42 +00:00
Artem Bochkarev
289753525f IDEA-296486: remake renaming appmenu items
rename all items in single function call on AppKit without waiting

GitOrigin-RevId: 576a5b67f2620734e4d2ff65e651202ec3af1aa5
2022-07-11 19:07:23 +00:00
Artem Bochkarev
11c77aa610 IDEA-295159: obtain appmenu pointer on AppKit-thread
GitOrigin-RevId: a4ddefe47da198159fb64a2af2962083327e3344
2022-06-11 10:29:16 +00:00
Roman Shevchenko
b9904cdf9f [platform] uniform I/O calls in macOS printenv; formatting (binary)
GitOrigin-RevId: eb9d1f07dbb3abb908d522d8e31f40fdd80be277
2022-04-22 21:52:56 +00:00
Artem Bochkarev
9d6334d012 IDEA-260857: dispose java wrapper after use
GitOrigin-RevId: a6a9da7a949db4617b959a98d2ac216360c489d4
2022-02-16 12:17:50 +00:00
Artem Bochkarev
847037b19b IDEA-260857: use localized strings for AppMenu items
GitOrigin-RevId: 0ad8adf523307a796b978cda0007482696d606c7
2022-02-16 10:26:29 +00:00
Artem Bochkarev
6212505851 IDEA-260857: implemented wrappers for AppMenu items
also cleanup warnings from native code

GitOrigin-RevId: 27081d0c43e59edd0d3b4747a132500e078354ad
2022-02-16 10:26:27 +00:00
Daniil Kalinin
ee8a848f85 Remove printenv.py script for obtaining environment variables to avoid problems like IDEA-281405. Changes:
There is no need in Python on linux anymore to obtain environment variables

Python script changed to direct `env -0` call on linux

printenv binary for macOS and its source code updated to write output directly to stdout, not to temporary file

Added tests with testcontainers to detect problems on different linux distros

(cherry picked from commit 72f7f7ad782cdb4632980d2622023d117e4485dc)

IJ-CR-19090

GitOrigin-RevId: 95b4cc5cca0cff27856a4e92d4ed26fd8aead416
2022-01-31 12:03:49 +00:00
Artem Bochkarev
a115c5ba82 IDEA-286810: cleanup menu on close
GitOrigin-RevId: 35d5543b8cebee02446bce1359f1779ab5b55ea9
2022-01-20 13:43:09 +00:00
Vladislav Rassokhin
78bf05b263 IDEA-283733 [followup] replace libmacscreenmenu64.dylib library with unsigned one
GitOrigin-RevId: 02a443dd4578fd40cf554d44d3e7c9b6b103e818
2021-12-08 08:31:44 +00:00
Anton Tarasov
31c7db6db0 IDEA-283733 [followup] Icons in main menu submenus are low-resolution
cmake -G "Unix Makefiles" does not honor CMAKE_OSX_ARCHITECTURES and does not produce universal binary. Changed to "Xcode".

GitOrigin-RevId: cc86b53eb342a60c55d4247485d53c1339f4a53d
2021-12-07 15:05:39 +00:00
Anton Tarasov
86620ee085 IDEA-283733 Icons in main menu submenus are low-resolution
GitOrigin-RevId: 994c7dfb66b23cf29b22f4419d4e5adf2844667c
2021-12-07 08:17:46 +00:00
Artem Bochkarev
8a1bde5527 IDEA-277709: update screen menubar on window activation event
fixed IDEA-282646

GitOrigin-RevId: d5b6050be5453b6931659ad0d57978b56e249241
2021-11-21 07:38:39 +00:00
Artem Bochkarev
abebd64acd IDEA-277709: listen for presentation changes
remove copy/paste

GitOrigin-RevId: 778915a89e52846c132632ae12fc2fd3112db734
2021-11-17 18:19:10 +00:00
Artem Bochkarev
5cbce00380 IDEA-277709: code cleanup
restore 'simplified shortcuts' finctionality
fixed key-events processing of CustomMenuItemView

GitOrigin-RevId: db7fa756542b87c1943d8c7b589410c28c7b38ee
2021-11-11 04:28:02 +00:00
Artem Bochkarev
cc315fa836 IDEA-277709: enable new menu implementation with VM-option 'jbScreenMenuBar.enable'
also use LWCToolkit.invokeAndWait for initial filling of menu

GitOrigin-RevId: 3687d61b5bfd57778d6e570e55ae990b7acc0754
2021-11-01 12:31:42 +00:00
Artem Bochkarev
65a3a8f399 IDEA-277709: rebuild universal binary
GitOrigin-RevId: 710d25558b6006375b1d54785bb0f64a1e0cb9ce
2021-10-22 10:54:50 +00:00
Artem Bochkarev
242bc6167a IDEA-277709: cache jclass objects
empiric observation: JNI can't find loaded class when
1. class is located in signed jar
2. class was requested from AppKit thread (when JNIEnv is obtained via global JavaVM)

GitOrigin-RevId: 02b275c3696a9903c3805346ae2bbebe863f8449
2021-10-18 11:49:40 +00:00
Artem Bochkarev
cc2cce677f IDEA-277709: reimplement ScreenMenu for OS X with external library
force disable with VM-option: -DdisableJbScreenMenuBar=true

GitOrigin-RevId: 14ff2216fcc6b112369b89708f18c220764273a1
2021-10-17 15:15:00 +00:00
Artem Bochkarev
29e29f2649 IDEA-272894: code cleanup
remove Popover.m

GitOrigin-RevId: 0a56fdc61d7078da8da7ec0d4cb37d3a467f774b
2021-07-05 07:00:36 +00:00
Artem Bochkarev
b28894eb2e IDEA-272894: release items of touchbar in AppKit
theoretically it can fix SIGSEGV at [libobjc.A.dylib] objc_msgSend in -[NSTouchBarViewController _updateTree]

GitOrigin-RevId: f545b89f023bf8a599f7785ab359cba83a520c53
2021-07-01 21:23:48 +00:00
Roman Shevchenko
b8e65d78aa [platform] replacing locally-built macOS environment reader with a CI artifact (IDEA-216133)
GitOrigin-RevId: fb14d25ae706e6b027d2dcaff6aba6024da81017
2021-06-17 11:38:13 +00:00
Roman Shevchenko
a355c402ff [platform] native environment reader for macOS (IDEA-216133)
GitOrigin-RevId: 8a43082ba32b4955cbb5bf48247026329f65b707
2021-06-17 06:39:12 +00:00
Artem Bochkarev
67ba8a6286 IDEA-269957: intercept outOfRange exception
just workaround (real exception reason is unknown), fixed IDEA-269957

GitOrigin-RevId: 02b423811c400d49e889fcf17a40e225b09f5225
2021-06-04 08:10:04 +00:00
Artem Bochkarev
e2caa543c3 IDEA-267047: update binary
GitOrigin-RevId: 9f8c6a9ece811057698c7f3f68f44dc42cfa4b67
2021-04-16 15:07:07 +03:00
Artem Bochkarev
1a4a1db684 IDEA-223893: reimplement touchbar support
GitOrigin-RevId: 07a8609a530749570bc2084b91f88aeea41144af
2021-04-10 10:49:17 +00:00
Roman Shevchenko
826ac0c0f7 [platform] replacing locally built macOS binaries with CI-provisioned ones
GitOrigin-RevId: b3f8c7ddb21eeebf4aa5db99652fde80fd65d1bb
2020-11-20 10:09:33 +00:00
Artem Bochkarev
d01c977615 touchbar: make universal native library (x86 & aarch64)
GitOrigin-RevId: 9d2ad327bc23b01e529ea92ff789f9552dc9405a
2020-11-18 13:27:41 +00:00
Konstantin Bulenkov
242892465f restarter and fsnotifier in universal format
GitOrigin-RevId: de95cf53d15707773e4e5e9af047e9c2d0dacb3a
2020-11-15 12:27:54 +00:00
Andrey Vlasovskikh
f07f53d38e PY-40974 Always treat environment variables as raw bytes
It's unnecessary and sometimes wrong to assume any encoding
for an environment variable. They can be encoded differently
depending on the requirements of programs that utilize them.
In our case we just need to pass all the environment
variables "as is" to the IDE process.

I've modified printenv.py so that it's the same version of
the script for both Linux and macOS and for all the Python
versions from 2.3 to at least 3.9.

GitOrigin-RevId: 40d73ef6eb56da8609d75fbce8a4a04c52e317b4
2020-05-31 15:45:29 +03:00
Sergey Ignatov
4ce0b0496d get rid of power supply
we've been not using it since 2015

GitOrigin-RevId: 5eb20b8916fda30d47d96fb02bf61eb0947a8e15
2019-11-07 02:40:58 +00:00
Artem Bochkarev
e883f16a2d touchbar: make native code more exception-safe
Scrubber item of touchbar can throw NSInternalInconsistencyException during
items update. This is undocumented behaviour (so the reason is unknown) and it's better to suppress such exceptions now.

fixed IDEA-223539 Crash on Alt+Enter

GitOrigin-RevId: 7297e7f3eabb02d83d18558ff91052a7699387fd
2019-09-25 14:32:26 +00:00
Artem Bochkarev
f36d45304d touchbar: rebuild libnst64 with xcode10
fixed IDEA-223503 IntelliJ crash

GitOrigin-RevId: 74b36f69e51f77541c135be11a7b091f523bdb27
2019-09-25 10:33:48 +00:00
Artem Bochkarev
0017fa5e7d touchbar: calculate images of buttons in background thread
fixed IDEA-217863

GitOrigin-RevId: 04c9cec59114d856e55062aea56d0f6cd9063098
2019-09-24 18:02:16 +00:00
Artem Bochkarev
25a93ee13a touchbar: implemented async update for the images of scrubber items
fixed IDEA-217863 Run configuration icon calculation takes so long

GitOrigin-RevId: c3c5b8c8cb00a44bc8be881961e05f0ccba8fe04
2019-09-24 18:02:16 +00:00
Artem Bochkarev
c4421d3859 touchbar: fixed IDEA-218342 IDEA crash on a dropdown filtering
1. remake update logic: load all items on creation, but invisible items are loaded without heavy data (string and text)

2. more compact items packing

3. minor fixes and code cleanup

GitOrigin-RevId: 4a9e73ffae59f145474a263fc8a731b4c612f755
2019-07-16 19:33:13 +03:00
Artem Bochkarev
15fa8329d5 touchbar: fixed IDEA-203207 Touch Bar: Options on the Touch Bar should be filtered when searching in popup
GitOrigin-RevId: 1b09df8d8f5804e64cd4846ac52a98e205cc8e8a
2019-07-08 12:04:21 +03:00
Artem Bochkarev
c737b34595 fixed: JBR-1347 Instaneous exit on using Alt-Enter to add an import automatically (MenuData::HandleGetNamedAccessibleAttribute)
add extra npe checks
2019-04-08 13:24:01 +07:00
Artem Bochkarev
c71c65f1e7 touchbar: fixed IDEA-208708 JVM crashes when creating vcs diff window 2019-03-13 12:37:39 +07:00
Artem Bochkarev
a82d09f74e touchbar: load scrubber items by parts (to speedup creation)
for example, git-branches popup of IDEA-project has thousands of items
2019-03-06 13:59:59 +03:00
Artem Bochkarev
607d3cc44d MacBook touch bar: remove arrow-icon from 'Add configuration' button (of default touchbar)
also hide run-buttons when configuration isn't defined
fixed point 3 from IDEA-194893 MacBook touch bar: improve Configurations popover
2018-07-16 19:14:41 +07:00