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

1706 Commits

Author SHA1 Message Date
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
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
Cristian Maglie
2988136f97 Added alternative key binding for "Increase Font Size"
This commits adds the "CTRL SHIFT =" as key to increase font size.
The old shortcut "CTRL +" is still active, but it's not always
possible to produce it if the keyboard layout doesn't have the + key
on the base layer.

This add the possibility to compose "CTRL +" when the keyboard has
the "+" available as "SHIFT =", that seems to be very common in
many layouts.

Fix #6806
2018-08-15 17:22:47 +02:00
Cristian Maglie
1a576dd468 Fixed wrong keybinding for "Increase Font Size"
See https://github.com/arduino/Arduino/issues/6806#issuecomment-335044967
2018-08-15 00:11:41 +02:00
Cristian Maglie
60146b3d7d Fixed unused import warnings 2018-08-14 22:01:04 +02:00
per1234
19bfd2ada9 Correct messages re: sketch/library folder name restrictions
- Specify that library name error is about folder name.
  - We would normally expect "library name" to mean the "fancy name" (as defined by the library.properties name field).
- Specify exactly which characters are allowed.
- State that spaces are prohibited in sketch folder name.
- Remove outdated message about library folders not being allowed to start with a number.
  - This restriction was removed by 4545283ae7.
- State library folder name length restriction.
- Make sketch and library messages consistent with each other.
2018-08-10 10:53:15 +02:00
Jose Juan Juarez Monsivais
9d904dad31 Fixed the bug that doesn't updates the title when an example sketch is saved 2018-08-10 10:50:43 +02:00
Martino Facchin
f2b9328d30 Fix build by restoring onIndexesUpdated override 2018-07-19 10:08:32 +02:00
Martino Facchin
0ee0fcc018 [Lib manager] Fix only member being rendered incorrectly if filter active and update/install 2018-07-18 14:31:17 +02:00
Martino Facchin
fa51a39b58 Fix SerialMonitor and SerialPlotter lifecycles
Fixes #7683

When the selected serial port is busy both monitors now avoid displaying a useless window, cleaning the status area once the open succeeds.
2018-06-12 10:41:45 +02:00
Cristian Maglie
a76588cf5d Added newline at the end of --version output
See #7549
2018-05-22 17:48:29 +02:00
Yohsuke FURUTA
24029c5ace CLI: Add --version to CLI option (#7549)
* CLI: Add --version to CLI option

I added to get the Arduino IDE version from the command line
It will allow to check easily if the new Arduino is already installed.

This feature makes it easier to build external systems linked to specific versions of Arduino.

1. I added `--version` action, which shows version name and exit
  1. Currently, VERSION_NAME_LONG (like `1.8.5`, `1.9.0-beta`, `1.8.6 Hourly Build XXX`, etc...) is used. Because I want to know its version number and stable/beta/hourly.
  2. Finish with `0`. Because it is `SUCCESSFLLY FINISHED`.
2. Updated man page.

* Split "parse" and "action".
Move print action to probably suitable place.

This commit will fix the behavior of multiple actions about --version.

* add testcase
2018-05-22 17:46:11 +02:00
Cristian Maglie
60021c1e63 Library search now works also for headers (.h) provided by libraries
Fixes #7604
2018-05-22 16:28:52 +02:00
Cristian Maglie
e18261f486 library manager: installed element is now displayed correctly 2018-05-22 09:53:37 +02:00
Cristian Maglie
901d8c77fe Fixed UpdatableLibrarieyTest 2018-05-21 12:04:01 +02:00
Cristian Maglie
b4efa5589b Moved cc.arduino.i18n.Language* classes in arduino-core project 2018-05-21 11:27:53 +02:00
Cristian Maglie
b70e876c0c Removed et_EE localization.
Fix #4747
2018-05-21 10:43:19 +02:00
Martino Facchin
397f4e81ea Fixed LibraryOfSameTypeComparator comparator 2018-05-21 10:00:47 +02:00
Cristian Maglie
3bce82092e Command line: added more verbosity and made output coherent 2018-05-17 09:14:25 +02:00
Cristian Maglie
8d27171b74 Fixed error in cmd-line lib installer 2018-05-17 09:14:25 +02:00
Cristian Maglie
fee5848a02 Removed no more used predicates 2018-05-17 09:14:25 +02:00
Cristian Maglie
8fa45a3a07 Removed useless double sort
Removed also the weird LibraryByTypeComparator comparator that is no
more used.
2018-05-17 09:14:25 +02:00
Cristian Maglie
ac570c50bd UserLibrary: ensure that types field is always not-null 2018-05-17 09:14:25 +02:00
Cristian Maglie
b3d01d8281 Moved install-related fields out of DownloadableContribution
Those fields have a slightly different meaning on each object that
extends DownloadableContribution and having them grouped in
DownloadableContribution only increase confusion in change of a
(very) tiny code reuse.

Moreover:

- the `readOnly` field has been renamed to `builtIn`
- predicates have been replaced by lambdas
- DownloadableContributionBuiltInAtTheBottomComparator has been replaced
  with a singleton instance
2018-05-17 09:14:25 +02:00
Cristian Maglie
0042a30c81 Simplified version display logic in Library Manager
- replaced the logic to check if an installed-library is a
  builtin library by reusing the same method available in
  ContributedLibraryReleases
- renamed some local vars to better reflect their contents:

  uninstalledLibraries        -> notInstalled
  uninstalledNewerReleases    -> notInstalledNewer
  uninstalledPreviousReleases -> notInstalledPrevious
2018-05-17 09:14:25 +02:00
Cristian Maglie
ac6d3c1aff Core and ref-Core libraries are not handled by the library manager. 2018-05-17 09:14:25 +02:00
Cristian Maglie
b03a9af19a ContributedLibraryReleases: removed getLibrary() method
this method is now useless
2018-05-17 09:14:25 +02:00
Cristian Maglie
5cc66e9715 Moved ContributedLibraryReleases in arduino-core 2018-05-17 09:14:25 +02:00
Cristian Maglie
1089378575 Preparing ContributedLibraryReleases to move in arduino-core
Removed dependency on FilteredAbstractTableModel.getLatestOf() method.
2018-05-17 09:14:25 +02:00
Cristian Maglie
904a898108 Fixed UpdatableLibraryPredicate 2018-05-17 09:14:25 +02:00
Cristian Maglie
86441e4341 Added first tests for library manager engine 2018-05-17 09:14:25 +02:00