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
Cristian Maglie
c3c08e5d79
Added tests for AbstractTextMonitor "Show Timestamp" function
2018-11-16 11:11:35 +01:00
Cristian Maglie
4b7c7e886c
Replaced UpdateTextAreaAction with a lambda that performs a method call
...
The overhead is negligible and this design simplifies a lot the class
structure. More discussion here:
https://github.com/arduino/Arduino/pull/8088#issuecomment-433727423
2018-11-16 11:11:35 +01:00
nitram509
c2f324508f
Fix issue #8055 missing timestamps on serial monitor
2018-11-16 11:11:35 +01:00
Cristian Maglie
b5bfe08bd2
Better error for 'no serial ports available'
...
See https://github.com/arduino/Arduino/pull/8194#issuecomment-438180384
2018-11-14 17:41:34 +01:00
Cristian Maglie
2647ce36ea
Editor: fixed port ordering in tools menu
2018-11-14 17:41:34 +01:00
Cristian Maglie
d5e0e59fcf
Editor: the serial port selection dialog now works
2018-11-14 17:41:34 +01:00
Cristian Maglie
12b38c5fcd
Nicer serial port selection dialog box
2018-11-14 17:41:34 +01:00
Cristian Maglie
fd1b598ea2
Show port on status bar only when selected
2018-11-14 17:41:34 +01:00
Cristian Maglie
cede26883e
Fix 'Select port on upload' error message
2018-11-14 17:41:34 +01:00
Cristian Maglie
3f79d129bb
Refactor: Removed code duplication in Export(App)Handlers
2018-11-14 17:41:34 +01:00
Sandeep Mistry
df9c25692d
Only load Touch Bar images once
2018-11-14 17:14:50 +01:00
Sandeep Mistry
17a60f4e3d
Allow customization
2018-11-14 17:14:50 +01:00
Sandeep Mistry
d4d7062391
Add macOS Touch Bar support
2018-11-14 17:14:50 +01:00
Martino Facchin
b71a4969af
Kill active programmer if still alive after closing last IDE window
...
Fixes https://github.com/arduino/Arduino/issues/7498
2018-11-08 18:08:58 +01:00
Martino Facchin
e1a5be7354
Cleanup IDE quit()
...
There were two different routines andling more or less the same operations.
Let the IDE call "real" quit when the last Editor windows is being closed.
2018-11-08 18:07:33 +01:00
Cristian Maglie
edb707378f
makeup: call I18n.format using static imports in Base class
2018-10-08 12:56:22 +02:00
Cristian Maglie
6a1c1f4df9
Invalid use of toString in Optional<Version>
...
It should be used on the actual Version.
Fix #8034
2018-10-08 11:53:33 +02:00
Martino Facchin
d3cb01424f
Provide actual string to findPlatform for Optional<Version>
...
Fix https://github.com/arduino/Arduino/issues/8034
2018-10-08 09:53:36 +02:00
Cristian Maglie
ddbe80b3fa
Update library list model after a round of library_index.json update
2018-09-06 11:57:21 +02:00
Cristian Maglie
3dfe85916c
Preserve boards.txt custom menu order.
...
Fix #7955
2018-09-04 10:31:36 +02:00
PaulStoffregen
4ccf9bbd90
Show a helpful message when no Port is selected
2018-09-03 16:39:39 +02:00
Cristian Maglie
5f9ff25b3c
Added missing update to jssc lib
2018-09-03 13:29:42 +02:00
Martino Facchin
6080907ba3
Update jscc to 2.8.0-arduino2 (aarch64 support)
2018-08-28 17:53:04 +02:00
Martino Facchin
2f3a561c61
Fix rebuild being triggered on every menu open()
...
Fixes #7924
JRE 8u161 made JMenu.insert() MUCH slower on OSX.
This exposed a bug lurking there for years; in fact the menu entries were rebuilt every time since JMenu.getComponent() returns an empty list.
The correct function is JMenu.getMenuComponents().
In the meantime, also remove sketchbookMenu and examplesMenu being deleted on board change; only their content needs to be updated, not the container itself.
2018-08-27 16:22:42 +02:00
Martino Facchin
49cd9b57dd
Fix check for wrong submenu
2018-08-27 16:20:20 +02:00
Cristian Maglie
d97147826e
Serial monitor timestamp: add the arrow ' -> ' to the timestamp format
...
This saves another "append" call while streaming.
2018-08-23 10:46:32 +02:00
Cristian Maglie
986d67f1d9
Serial monitor timestamp: cache newline status
...
This saves an access to the Document object (as well as a bunch
temporary object allocations).
2018-08-23 10:46:32 +02:00
Cristian Maglie
8128525e83
Improve performance on serial monitor 'Show timestamp'
...
This patch dramatically reduce pressure on heap memory:
- use a StringTokenizer instead of the very slow String.split(...)
method to decode newlines. This avoid allocation/deallocation of
big strings array and use of regexp.
- pre allocate as many object as possible to avoid new allocation
while streaming data.
- the "timestamp" string is calculated only once per iteration.
- use StringBuilder instead of inline temporary strings (that are,
again, allocated and deallocated on each iteration)
2018-08-23 10:46:32 +02:00
Cristian Maglie
13c3750ecf
Revert "Moving a sketch to another folder should move all files"
...
This reverts commit c4f5cafd33
.
2018-08-23 10:39:20 +02:00
Cristian Maglie
4700cc3d27
Transformed some ActionListener anonumous class into lambdas
...
No code change
2018-08-15 17:23:04 +02:00