1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00
Commit Graph

1765 Commits

Author SHA1 Message Date
Martino Facchin
6b770d0190 Fix UpdateTextAreaAction test 2019-04-18 11:15:58 +02:00
Martino Facchin
e92d5948fe
Merge pull request #8672 from Pieter12345/contextual-menus
Add contextual menus to input fields
2019-04-18 10:00:19 +02:00
Cristian Maglie
72330aaddd Fix .classpath: commons-lang3-3.3.2 -> commons-lang3-3.8.1.jar 2019-04-02 16:36:08 +02:00
Martino Facchin
26f428384b Preferences: remove outdated preferences 2019-04-02 16:20:58 +02:00
Martino Facchin
4c8ac04727 Preferences: allow smaller window since checkboxes take less space
Fixes #8238
2019-04-02 16:20:58 +02:00
Martino Facchin
b1253e2f0a Preferences: arrange checkboxes into two columns 2019-04-02 16:20:58 +02:00
Pieter12345
941050ecf0 Add contextual menus to input fields
- Add contextual menus to text-based monitors (serial / network monitor).
- Add contextual menu to installer dialog search filter fields (library manager / contribution manager).
- Make installer dialogs focus the search filter field on window-open. This prevents pastes from ending up elsewhere in the case that they are performed before the field has been focussed at least once.
Fixes #8423.
2019-03-29 02:26:41 +01:00
Pieter12345
933bbb3a39 Fix CommandLineTest.testCommandLineVersion() on Windows
Fix CommandLineTest.testCommandLineVersion() failing on Windows due to Runtime.exec() returning `\r\n` line endings where the test expected `\n` line endings.
2019-03-26 18:46:09 +01:00
Pieter12345
4c2fca6457 Replace some FileUtils calls with direct methods
Not wrapping these calls in FileUtils methods makes the code cleaner and easier to understand (FileUtils is very poorly documented, whereas direct calls contain proper documentation).
2019-03-26 18:46:09 +01:00
Pieter12345
e2d2998075 Fix MergeSketchWithUploaderText failing under Windows
When having "autocrlf=input" (as described in the Building Arduino guide), the `.hex` files used in the test will be a different size due to the test expecting `\n` and git cloning as `\r\n`. This commit fixes this issue by removing cariage returns before running the test.
2019-03-26 18:46:09 +01:00
Pieter12345
6d9dd975be Remove StringUtils class
The functionality in this class has been replaced with the Apache commons.lang3 dependency.
2019-03-26 18:46:09 +01:00
Pieter12345
09e466a4a2 Replace StringUtils.join() with library call
Use Apache commons.lang3 instead of own implementation.
2019-03-26 18:46:09 +01:00
Pieter12345
e6e10cdeb9 Update commons-lang3 from 3.3.2 to 3.8.1
Updated due to new API methods than can be useful for this project.
The license remained the same.
2019-03-26 18:46:09 +01:00
Pieter12345
61bbc382b5 Move editor font resize listener code to Base
- Move editor font resize listener code to the Base class.
- Cache and share the same listener for all components.
2019-03-26 17:18:11 +01:00
Pieter12345
3aa81b0a89 Add CTRL +/-/scroll shortcuts to adjust editor console font size
Add CTRL +/- and CTRL scroll shortcuts to increase/decrease editor console output text size. This font size is shared with the editor and serial/network monitor. Adjusting the font size on any of these will update them all.
Partially fixes #8615.
2019-03-26 17:18:11 +01:00
Pieter12345
91fc80ba69 Properly update editor console font size on change
Make the editor console font properly update with editor font size changes. Before this commit, only newly added text would have an adjusted size, making it possible to have multiple text sizes in the editor console.
2019-03-26 17:18:11 +01:00
Pieter12345
e3f129a0ee Fix compiler/IDE warnings in monitor classes + Code cleanup
No functional changes:
- Fix compiler/IDE warnings in monitor classes.
- Replace listeners to use lambda classes where convenient in monitor classes.
- Code cleanup.
2019-03-26 17:18:11 +01:00
Pieter12345
1a6d55480c Make text monitor output area font size dynamically adjustable
Add CTRL +/- and CTRL scroll shortcuts to increase/decrease serial/network monitor output text size. This font size is shared with the editor and adjusting either will update both.
Partially fixes #8615
2019-03-26 17:18:11 +01:00
Pieter12345
49242bed02 Add editor zoom "CTRL =" shortcut
Add "CTRL =" as additional shortcut to increase the editor font size. This shortcut should be added because the '+' and '=' characters are often on the same key on the keyboard and having to press SHIFT as well is not intuitive for all users (especially since many common applications support "CTRL =").
2019-03-26 17:18:11 +01:00
Martino Facchin
dd58a7254c Replace usages of jssc-2.8.0-arduino2.jar with arduino3 2019-03-11 17:05:06 +01:00
Martino Facchin
8ad6d0efcf Update aarch64 shared library in jssc
Fixes https://github.com/arduino/Arduino/issues/7302#issuecomment-422539496
2019-03-11 17:01:18 +01:00
Martino Facchin
0e45f4e0d4
Merge pull request #8038 from cmaglie/pluggable-discovery
Pluggable discovery: search in platform.txt (WIP)
2019-03-07 14:13:43 +01:00
Martino Facchin
4ae2e1f116 Fix wrong Unicode encoding on unsaved sketch
Fixes #4231
2019-03-07 12:21:12 +01:00
Martino Facchin
9518aa421c Ensure line is unfolded when highlighting for error
Fixes #8457

For some reason, getCurrentTab().getTextArea().getFoldManager().ensureOffsetNotInClosedFold(line) doesn't work here; there no documentation on what offset is.
Also, getFoldForLine(line) returns null even if the line is folded (bug in rsyntaxtextarea?)
2019-03-07 11:19:46 +01:00
Cristian Maglie
a5e866f731 makeup: using some lambdas where possible 2019-03-06 13:18:53 +01:00
Martino Facchin
8f5f4f594d [LibManager] Restore "search on type" with 1 second grace period 2019-02-15 10:44:56 +01:00
Martino Facchin
f3d521d820 [Lib Manager] Avoid updating the UI at every keystroke
Fixes #8282
2019-02-14 15:34:21 +01:00
Martino Facchin
2b11e94afe Correctly handle cancellation on last open sketch exit
Fixes #8488
2019-02-04 10:03:17 +01:00
Sandeep Mistry
3c8f201024 macOS touchbar: Run event handler later to prevent hanging if a dialog needs to be open 2019-01-24 11:58:37 -05:00
Sandeep Mistry
980b70e3d6 Upgrade jtouchbar to 1.0.0 2019-01-23 10:46:28 -05:00
Cristian Maglie
e1caaf1c45 Perform port selection after initializing packages
Fix #8400
2019-01-23 15:46:41 +01:00
Cristian Maglie
651dcd5271 Removed unused field 2019-01-23 13:51:41 +01:00
Cristian Maglie
4fffcd6e1a Editor: use TargetBoard.getName() to get board name 2019-01-23 13:51:41 +01:00
Cristian Maglie
6c50007e22 Editor: renamed status bar field serialport -> port 2019-01-23 13:51:41 +01:00
Cristian Maglie
349af4b5cf Added BoardPort.protocolLabel and simplified port menu rendering 2019-01-23 13:51:41 +01:00
Cristian Maglie
9ba172b0db Show BoardName.boardName field in 'Ports' menu
...instead of putting it into the 'label' field during discovery.
2019-01-23 13:51:41 +01:00
Cristian Maglie
8d6fa72667 Removing fixed fields in BoardPort 2019-01-23 13:51:41 +01:00
Martino Facchin
3ba85835bf Merge branch 'master' of github.com:arduino/Arduino 2019-01-21 09:41:32 +01:00
Martino Facchin
7248affd7e Avoid double confirmation when closing sketch
Fixes #8413

handleQuit() already checks for confirmation if the sketch has been modified (when invoked directly).
When invoked indirectly (via handleClose(), as we are closing the last open Editor instance), checkModified() is redundant.
2019-01-21 09:37:19 +01:00
Martino Facchin
f15ddeb846 Update rsyntaxtextarea to 3.0.2
The name is misleading since 3.0.2 had been officially released (but the filename is totally wrong).
The jar comes from https://netcologne.dl.sourceforge.net/project/rsyntaxtextarea/rsyntaxtextarea/3.0.2/rsyntaxtextarea-3.0.2.zip

Fixes #7861
2019-01-18 09:51:46 +01:00
Cristian Maglie
f5f8b7f29c Renamed wrong named variable 2019-01-14 16:53:47 +01:00
Martino Facchin
2efd090e81 Remove last editor window after saving its properties
Only OSX needs the "app" to stay open after handleQuit and to remove the editor windows when called.

Fixes #8337
2019-01-02 10:24:53 +01:00
Sandeep Mistry
b3b62d0c44
Only display touch bar on macOS 10.12 and higher (#8281) 2018-12-11 09:37:41 -05:00
Martino Facchin
d7963f04c5 Add scroller to INCOMPATIBLE examples menu
You need A LOT of libraries to trigger this :)
2018-11-30 11:54:57 +01:00
Martino Facchin
4d26ec85e6 Make "Export compiled binary" comply with specifications 2018-11-27 15:09:10 +01:00
Martino Facchin
36da22c086 [macOS] Modify behaviour when last editor gets closed
Don't call System.exit() but trust the ThinkDifferent handler
Handle reopen only if no editor is visible
Don't dispose last closing editor (so its toolbars are still in active state)
2018-11-23 12:39:54 +01:00
Martino Facchin
c1d9c588b5
Merge pull request #8184 from facchinm/kill_programmer_at_exit
Kill active programmer if still alive after closing last IDE window
2018-11-23 12:07:13 +01:00
Georges A
8309fb2428 typo: renamed showPrerefencesData to showPreferencesData 2018-11-21 12:04:58 +01:00
Cristian Maglie
3e9a3ec743 Fixed CommandLineTest.testCommandLineVersion 2018-11-16 12:34:04 +01:00
Cristian Maglie
ff952fc053 Fixed VersionHelperTest 2018-11-16 12:33:38 +01:00