Skip to content

Commit 3ed980f

Browse files
committed
Merge pull request #1 from arduino/master
pull master
2 parents d9b3a86 + f1d6a0c commit 3ed980f

File tree

1,028 files changed

+88448
-308996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,028 files changed

+88448
-308996
lines changed

Diff for: .classpath

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<classpathentry excluding="processing/app/tools/format/|processing/app/tools/format/src/|processing/app/Trace.java|processing/app/RunnerClassLoader.java" kind="src" path="app/src"/>
44
<classpathentry kind="src" path="app/test"/>
55
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6-
<classpathentry kind="lib" path="app/lib/antlr.jar"/>
76
<classpathentry kind="lib" path="app/lib/apple.jar"/>
87
<classpathentry kind="lib" path="app/lib/ecj.jar"/>
98
<classpathentry kind="lib" path="app/test-lib/junit-4.11.jar"/>
@@ -16,6 +15,7 @@
1615
<classpathentry kind="lib" path="app/lib/commons-exec-1.1.jar"/>
1716
<classpathentry kind="lib" path="app/lib/commons-httpclient-3.1.jar"/>
1817
<classpathentry kind="lib" path="app/lib/commons-logging-1.0.4.jar"/>
18+
<classpathentry kind="lib" path="app/lib/commons-net-3.3.jar"/>
1919
<classpathentry kind="lib" path="app/lib/jmdns-3.4.1.jar"/>
2020
<classpathentry kind="lib" path="app/lib/jsch-0.1.50.jar"/>
2121
<classpathentry kind="lib" path="app/lib/jssc-2.8.0.jar"/>

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ hardware/arduino/bootloaders/caterina_LUFA/Caterina.elf
1414
hardware/arduino/bootloaders/caterina_LUFA/Caterina.eep
1515
hardware/arduino/bootloaders/caterina_LUFA/.dep/
1616
build/*.zip
17+
build/*.tar.bz2
1718
build/windows/work/
1819
build/windows/*.zip
1920
build/windows/*.tgz
@@ -33,7 +34,7 @@ build/macosx/libastylej*
3334
build/macosx/appbundler*.jar
3435
build/macosx/appbundler*.zip
3536
build/macosx/appbundler
36-
build/macosx/appbundler-1.0ea-arduino3
37+
build/macosx/appbundler-1.0ea-arduino?
3738
build/macosx/appbundler-1.0ea-arduino*.zip
3839
build/macosx/appbundler-1.0ea-upstream*.zip
3940
build/linux/work/

Diff for: README.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ IDE can be downloaded for free at http://www.arduino.cc/en/Main/Software
1010

1111
* For more information, see the website at: http://www.arduino.cc/
1212
or the forums at: http://www.arduino.cc/forum/
13-
You can also follow Arduino on twitter at: https://twitter.com/arduino or like Arduino on Facebook at: https://www.facebook.com/official.arduino
13+
You can also follow Arduino on twitter at: https://twitter.com/arduino or
14+
like Arduino on Facebook at: https://www.facebook.com/official.arduino
1415

1516
* To report a *bug* in the software or to request *a simple enhancement* go to:
1617
http://github.com/arduino/Arduino/issues
@@ -35,11 +36,18 @@ Credits
3536
--------
3637
Arduino is an open source project, supported by many.
3738

38-
The Arduino team is composed of Massimo Banzi, David Cuartielles, Tom Igoe,
39-
Gianluca Martino, Daniela Antonietti, and David A. Mellis.
40-
41-
Arduino uses the [GNU avr-gcc toolchain](http://gcc.gnu.org/wiki/avr-gcc), [avrdude](http://www.nongnu.org/avrdude/), [avr-libc](http://www.nongnu.org/avr-libc/), and code from
42-
[Processing](http://www.processing.org) and [Wiring](http://wiring.org.co).
39+
The Arduino team is composed of Massimo Banzi, David Cuartielles, Tom Igoe
40+
and David A. Mellis.
41+
42+
Arduino uses
43+
[GNU avr-gcc toolchain](http://gcc.gnu.org/wiki/avr-gcc),
44+
[GCC ARM Embedded toolchain](https://launchpad.net/gcc-arm-embedded),
45+
[avr-libc](http://www.nongnu.org/avr-libc/),
46+
[avrdude](http://www.nongnu.org/avrdude/),
47+
[bossac](http://www.shumatech.com/web/products/bossa),
48+
[openOCD](http://openocd.org/)
49+
and code from [Processing](http://www.processing.org)
50+
and [Wiring](http://wiring.org.co).
4351

4452
Icon and about image designed by [ToDo](http://www.todo.to.it/)
4553

Diff for: app/.classpath

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
<classpathentry excluding="processing/app/tools/format/" kind="src" path="src"/>
44
<classpathentry kind="src" path="test"/>
55
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
6-
<classpathentry kind="lib" path="lib/antlr.jar"/>
7-
<classpathentry kind="lib" path="lib/ecj.jar"/>
86
<classpathentry kind="lib" path="lib/apple.jar"/>
97
<classpathentry kind="lib" path="lib/bcpg-jdk15on-152.jar"/>
108
<classpathentry kind="lib" path="lib/bcprov-jdk15on-152.jar"/>
@@ -13,6 +11,7 @@
1311
<classpathentry kind="lib" path="lib/commons-exec-1.1.jar"/>
1412
<classpathentry kind="lib" path="lib/commons-httpclient-3.1.jar"/>
1513
<classpathentry kind="lib" path="lib/commons-logging-1.0.4.jar"/>
14+
<classpathentry kind="lib" path="lib/commons-net-3.3.jar"/>
1615
<classpathentry kind="lib" path="lib/jackson-annotations-2.2.3.jar"/>
1716
<classpathentry kind="lib" path="lib/jackson-core-2.2.3.jar"/>
1817
<classpathentry kind="lib" path="lib/jackson-databind-2.2.3.jar"/>
@@ -28,8 +27,7 @@
2827
<classpathentry combineaccessrules="false" kind="src" path="/arduino-core"/>
2928
<classpathentry kind="lib" path="test-lib/jcip-annotations-1.0.jar"/>
3029
<classpathentry kind="lib" path="lib/commons-lang3-3.3.2.jar"/>
31-
<classpathentry kind="lib" path="lib/guava-18.0.jar"/>
3230
<classpathentry kind="lib" path="lib/java-semver-0.8.0.jar"/>
33-
<classpathentry kind="lib" path="lib/rsyntaxtextarea-2.5.7.1+arduino.jar"/>
31+
<classpathentry kind="lib" path="lib/rsyntaxtextarea-2.5.8.1+arduino.jar"/>
3432
<classpathentry kind="output" path="bin"/>
3533
</classpath>

Diff for: app/.classpath_macosx

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
<classpathentry combineaccessrules="false" kind="src" path="/pdf"/>
1414
<classpathentry combineaccessrules="false" kind="src" path="/serial"/>
1515
<classpathentry combineaccessrules="false" kind="src" path="/video"/>
16-
<classpathentry kind="lib" path="lib/antlr.jar"/>
1716
<classpathentry kind="lib" path="lib/ecj.jar"/>
1817
<classpathentry kind="output" path="bin"/>
1918
</classpath>

Diff for: app/build.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
<fileset dir="test" includes="**/*.json*" />
103103
<fileset dir="test" includes="**/*.key" />
104104
<fileset dir="test" includes="**/*.hex" />
105+
<fileset dir="test" includes="**/*.pac" />
105106
</copy>
106107

107108
<junit printsummary="yes" dir="${work.dir}" fork="true">
@@ -111,7 +112,6 @@
111112
<classpath>
112113
<pathelement location="bin"/>
113114
<pathelement location="test-bin"/>
114-
<pathelement path="../build/macosx/work/Arduino.app/Contents/Resources/Java/quaqua.jar"/>
115115
<path refid="class.path.test"/>
116116
</classpath>
117117

Diff for: app/format/src/AutoFormat.java

-160
This file was deleted.

Diff for: app/format/tool/jalopy.jar

-1.27 MB
Binary file not shown.

Diff for: app/format/tool/log4j.jar

-344 KB
Binary file not shown.

Diff for: app/lib/antlr-2.7.7.LICENSE.PUBLIC-DOMAIN.txt

Whitespace-only changes.

Diff for: app/lib/antlr.jar

-433 KB
Binary file not shown.

Diff for: app/lib/commons-net-3.3.jar

274 KB
Binary file not shown.

Diff for: app/lib/guava-18.0.LICENSE.ASL-2.0.txt renamed to app/lib/commons-net.LICENSE.ASL-2.0.txt

-1
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,3 @@
200200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201201
See the License for the specific language governing permissions and
202202
limitations under the License.
203-

Diff for: app/lib/ecj.LICENSE.EPL-1.0.txt

Whitespace-only changes.

Diff for: app/lib/ecj.jar

-1.57 MB
Binary file not shown.

Diff for: app/lib/guava-18.0.jar

-2.15 MB
Binary file not shown.

Diff for: app/src/cc/arduino/ConsoleOutputStream.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ private void clearBuffer() {
116116
if (document != null) {
117117
SwingUtilities.invokeLater(() -> {
118118
try {
119-
String lineWithoutSlashR = line.replace("\r\n", "\n").replace("\r", "\n");
119+
String lineWithoutCR = line.replace("\r\n", "\n").replace("\r", "\n");
120120
int offset = document.getLength();
121-
document.insertString(offset, lineWithoutSlashR, attributes);
121+
document.insertString(offset, lineWithoutCR, attributes);
122122
} catch (BadLocationException ble) {
123123
//ignore
124124
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/*
2+
* This file is part of Arduino.
3+
*
4+
* Arduino is free software; you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation; either version 2 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program; if not, write to the Free Software
16+
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17+
*
18+
* As a special exception, you may use this file as part of a free software
19+
* library without restriction. Specifically, if other files instantiate
20+
* templates or use macros or inline functions from this file, or you compile
21+
* this file and link it with other files to produce an executable, this
22+
* file does not by itself cause the resulting executable to be covered by
23+
* the GNU General Public License. This exception does not however
24+
* invalidate any other reasons why the executable file might be covered by
25+
* the GNU General Public License.
26+
*
27+
* Copyright 2015 Arduino LLC (http://www.arduino.cc/)
28+
*/
29+
30+
package cc.arduino;
31+
32+
import processing.app.Base;
33+
34+
import javax.swing.event.HyperlinkEvent;
35+
import javax.swing.event.HyperlinkListener;
36+
import java.net.URL;
37+
38+
public class UpdatableBoardsLibsFakeURLsHandler implements HyperlinkListener {
39+
40+
private static final String BOARDSMANAGER = "boardsmanager";
41+
private static final String LIBRARYMANAGER = "librarymanager";
42+
43+
private final Base base;
44+
45+
public UpdatableBoardsLibsFakeURLsHandler(Base base) {
46+
this.base = base;
47+
}
48+
49+
@Override
50+
public void hyperlinkUpdate(HyperlinkEvent event) {
51+
if (event.getEventType() != HyperlinkEvent.EventType.ACTIVATED) {
52+
return;
53+
}
54+
55+
URL url = event.getURL();
56+
57+
if (BOARDSMANAGER.equals(url.getHost())) {
58+
try {
59+
base.openBoardsManager("", "DropdownUpdatableCoresItem");
60+
} catch (Exception e) {
61+
e.printStackTrace();
62+
}
63+
return;
64+
}
65+
66+
if (LIBRARYMANAGER.equals(url.getHost())) {
67+
base.openLibraryManager("DropdownUpdatableLibrariesItem");
68+
return;
69+
}
70+
71+
throw new IllegalArgumentException(url.getHost() + " is invalid");
72+
}
73+
74+
}

0 commit comments

Comments
 (0)