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

1569 Commits

Author SHA1 Message Date
Sandeep Mistry
3e9448d34b Disable serial monitor for non-SSH network ports 2017-03-20 15:09:54 +01:00
tomneutens
938df21778 Added a CompilerProgressListenerList to the EditorStatus class so you can add a listener for compiler progress from an external tool. To enable this the build method in the compiler class had to be changed 2017-03-15 19:32:53 +02:00
Petri Laarne
1fc0997f71 Do not delete the source if source = destination
While the previous version could handle the case, it only did so after
deleting the destination file, therefore causing data loss.
2017-03-08 13:23:50 +01:00
Cristian Maglie
1f35bfca53 Fixed regression tests on Indent/Unindent and Comment/Uncomment actions
RSTA for some reason doesn't fire update signals on DocumentListeners.
2017-03-01 10:38:09 +01:00
Matthijs Kooijman
f5eb673f44 Update RSyntaxTextArea to 2.6.1
This imports the unmodified upstream version of RSTA from
http://repo1.maven.org/maven2/com/fifesoft/rsyntaxtextarea/2.6.1/rsyntaxtextarea-2.6.1.jar
since the Arduino-specific changes are no longer required.

This fixes #5888
2017-03-01 10:38:09 +01:00
Cristian Maglie
5f12bb9a3e Removed the need for get/setUndoManager()
This dramatically simplifies undo/redo handling and allows to use
unpatched RSyntaxTextArea library.
2017-03-01 10:38:09 +01:00
Cristian Maglie
1062307c52 Removed some redundant this keyword 2017-02-27 13:48:54 +01:00
Cristian Maglie
dd17388280 Removed unneeded up-cast 2017-02-27 13:48:54 +01:00
Matthijs Kooijman
87c917f4ea Remove unused CaretAwareUndoableEdit class
It seems this class has been unused since the switch to RSyntaxTextArea
was made.
2017-02-27 13:46:38 +01:00
Cristian Maglie
ad503bce6d Added missing license 2017-02-27 13:45:16 +01:00
Martino Facchin
c0a99f9ec9 Disallow opening Serial monitor during compilation
Commit 6d5597b070 introduced a guard against multiple concurrent operations.
This guard also avoid any real serial monitor "open" during the compile+upload phase, but it didn't handle keyboard shortcuts.

Fixes https://github.com/arduino/Arduino/issues/6015
2017-02-24 16:42:58 +01:00
Cristian Maglie
ffe6aee5a6 Updated eclipse formatter options 2017-02-20 15:22:27 +01:00
Cristian Maglie
4d6385ab6d Serial monitor: input textfield is automatically selected
When the serial monitor window is focused again (not reopened but put
in background and selected again) the text input field is now
automatically focused.

Fix #5810
2017-02-17 10:57:20 +01:00
Martino Facchin
e9e24bd369 Merge pull request #5879 from facchinm/better-mdns
Update jmdns to 3.5.1
2017-02-10 18:36:14 +01:00
Dan Stutts
a095d2a3c8 Add 500Kbps, 1Mbps and 2Mbps to the list of available serial speeds 2017-02-08 17:21:12 +01:00
Cristian Maglie
61cccc0151 verify/upload from CLI with relative path works again
Fix #5836
2017-01-23 13:41:03 +01:00
Cristian Maglie
3f74631762 Added test for command line regression
See #5836
2017-01-23 13:41:03 +01:00
Martino Facchin
0c8aebd6e8 Port fixes for upstream jmdns 2017-01-19 17:02:50 +01:00
Martino Facchin
0df438b817 Update jmdns to 3.5.1 2017-01-19 11:47:53 +01:00
Cristian Maglie
34fb802793 Fix font anti-alias on windows
The properties:

      System.setProperty("awt.useSystemAAFontSettings", "on");
      System.setProperty("swing.aatext", "true");

actually works on Linux (where the hint helps X11 to enable antialiased
rendering) but makes things worse on Windows where the outcome is exactly
the opposite (anti-alias is disabled).

Previously those settings had no effect because they were executed
*after* the initialization of the graphics. This is no more true
after the merge of #5578, that moved the graphics initialization
after commmand line parsing and consequently revealed the weird
behaviour on windows.

Fix #5750
2016-12-28 11:09:33 +01:00
Martino Facchin
e9709689de Add extra field to serial discovery targeting Tian board 2016-12-16 10:59:00 +01:00
Martino Facchin
55b55b29e6 Swap "Copy for Forum" and "Copy as HTML" actions
Fixes #5401

The bug was introduced by 982d4f3f, when DiscourseFormat(Editor, bool html) declarations were swapped. The contextual/right click menu in EditorTab already behaves correctly.
2016-12-13 10:07:05 +01:00
Martino Facchin
e39560ecfd Rebuild header on "Save as"
Fixes #5550
2016-11-28 15:07:42 +01:00
Fabián Inostroza
b17c5122c2 Set default color of text for descriptions shown in library manager. 2016-11-25 15:19:36 +01:00
Cristian Maglie
3d52de7191 Removed useless showEditor parameter from Base.handleOpen
Previously it was used to prevent the Editor from being displayed
when running in command-line mode. Now the Editor is not created at
all, so this parameter is useless.

This is also confirmed by the remaining calls to `handleOpen` that
all have the parameter set to `true`.
2016-11-25 15:10:38 +01:00
Cristian Maglie
1a640f6139 ...and Upload too (part 3/3)
This commit concludes the refactoring.
2016-11-25 15:10:37 +01:00
Cristian Maglie
ae990954d3 ...now Verify works again... (part 2/3) 2016-11-25 15:10:36 +01:00
Cristian Maglie
611ed081b3 Use PreferenceData.setBoolean() where appropriate 2016-11-25 15:09:51 +01:00
Cristian Maglie
df1841f0cd Initialize Editor only in GUI mode (part 1/3)
Move the initialization of Editor into the GUI section of the big
if-then-elseif chain. This actually breaks cases for Verify and
Upload that uses Editor to access core functions.

This will be fixed in next commits.
2016-11-25 15:04:35 +01:00
Cristian Maglie
21bcb6417c Build menus only in gui mode 2016-11-25 15:04:33 +01:00
Cristian Maglie
8d84432f71 Prompt for sketchbook folder only if in GUI mode 2016-11-25 15:04:33 +01:00
Cristian Maglie
fedc2b6cd2 Give sense to isCommandLine() method 2016-11-25 15:04:27 +01:00
Cristian Maglie
b73bc92a5c Moving some other graphic related parts into GUI initialization 2016-11-25 15:04:24 +01:00
Cristian Maglie
cf54cce660 SplashScreenHelper output progress in console for text-only mode
This commit makes this changes:

- SplashScreenHelper is now local in Base constructor
- if SplashScreenHelper is instantiated with a null SplashScreen
  instance then it outputs progress in console and avoid to make
  calls to Swing toolkit
- The parsing of command line arguments is anticipated so we can
  determine if we are in command line or GUI mode early and setup
  objects that produces output to not use graphics toolkits.
- In this case the SplashScreenHelper is initialized with a real
  splashscreen only if we are in GUI mode
2016-11-25 15:04:24 +01:00
Cristian Maglie
fbe6bf3792 Moved all initializations into Base constructor 2016-11-25 15:04:24 +01:00
Cristian Maglie
27d1b8d9a1 Merge branch 'windows-dpi-awareness' 2016-11-21 12:43:01 +01:00
Cristian Maglie
41092be596 Merge branch 'editor-refactor-fixup' 2016-11-09 14:25:45 +01:00
Cristian Maglie
650840381f Small cleanup, no code change 2016-11-07 14:51:25 +01:00
Cristian Maglie
5b4af28f47 Removed dead code 2016-11-07 14:47:33 +01:00
Cristian Maglie
10dcc1d932 When a new tab is created is also selected
Previously it was selected always the last tab because the action
sequence was:

 - create the new tab (in the last position)
 - select the new tab index (last)
 - sort the tabs (the new tab is now in the middle but the selected
   is always the last)

instead the correct action sequence is

 - create the new tab (in the last position)
 - sort the tabs (now the new tab is in the middle)
 - select the new tab index (now the correct index is selected)
2016-11-07 12:25:53 +01:00
Cristian Maglie
5244daa5d1 Use the same Comparator to sort EditorTab and SketchFile 2016-11-07 12:13:30 +01:00
Cristian Maglie
d63162b5a1 Added Platform.getSystemDPI() API 2016-11-04 10:23:48 +02:00
Cristian Maglie
b00185e63d juint tests now use the correct jna lib again 2016-11-03 15:01:36 +02:00
Cristian Maglie
21ff728c59 Merge remote-tracking branch 'cmaglie/fix-win-paths' 2016-11-03 12:10:24 +01:00
Martino Facchin
1d74bb87ac Trigger Keywords update if a new library is added
Fixes #5415
2016-10-27 12:47:00 +02:00
Martino Facchin
c6642c1bd2 Reorder tabs when a new file is inserted/renamed
Fixes #5402
2016-10-27 12:47:00 +02:00
Martino Facchin
4e84238527 Restore "Delete" tab functionality
The file was being deleted but the tab was still there
2016-10-27 12:47:00 +02:00
Cristian Maglie
2856600463 Windows: Use Shell32 utility to determine known paths 2016-10-19 16:28:21 +02:00
Cristian Maglie
7d9ec39ca9 Update jna.jar to 4.2.2 2016-10-19 16:28:20 +02:00
Cristian Maglie
3d6abacee4 Merge branch 'master' of git://github.com/duff2013/Arduino 2016-10-18 16:39:30 +02:00