Skip to content

Commit bc18b5d

Browse files
author
Wilhelm Wiens
committed
Merge branch 'master' into serialPlotterLimitGrapfCount
2 parents 3141fb6 + 27f9c3e commit bc18b5d

File tree

1,010 files changed

+31348
-247450
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,010 files changed

+31348
-247450
lines changed

.classpath

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<classpathentry kind="src" path="app/test"/>
55
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
66
<classpathentry kind="lib" path="app/lib/apple.jar"/>
7-
<classpathentry kind="lib" path="app/lib/ecj.jar"/>
87
<classpathentry kind="lib" path="app/test-lib/junit-4.11.jar"/>
98
<classpathentry kind="lib" path="app/test-lib/fest-assert-1.2.jar"/>
109
<classpathentry kind="lib" path="app/test-lib/fest-reflect-1.2.jar"/>
@@ -19,14 +18,16 @@
1918
<classpathentry kind="lib" path="app/lib/jmdns-3.5.1.jar"/>
2019
<classpathentry kind="lib" path="app/lib/slf4j-api-1.7.22.jar"/>
2120
<classpathentry kind="lib" path="app/lib/jsch-0.1.50.jar"/>
22-
<classpathentry kind="lib" path="app/lib/jssc-2.8.0.jar"/>
2321
<classpathentry kind="lib" path="app/lib/bcpg-jdk15on-152.jar"/>
2422
<classpathentry kind="lib" path="app/lib/bcprov-jdk15on-152.jar"/>
25-
<classpathentry kind="lib" path="app/lib/jackson-core-2.6.3.jar"/>
26-
<classpathentry kind="lib" path="app/lib/jackson-databind-2.6.3.jar"/>
27-
<classpathentry kind="lib" path="app/lib/jackson-module-mrbean-2.6.3.jar"/>
28-
<classpathentry kind="lib" path="app/lib/jackson-annotations-2.6.3.jar"/>
23+
<classpathentry kind="lib" path="app/lib/jackson-core-2.9.5.jar"/>
24+
<classpathentry kind="lib" path="app/lib/jackson-databind-2.9.5.jar"/>
25+
<classpathentry kind="lib" path="app/lib/jackson-module-mrbean-2.9.5.jar"/>
26+
<classpathentry kind="lib" path="app/lib/jackson-annotations-2.9.5.jar"/>
2927
<classpathentry kind="lib" path="app/lib/commons-compress-1.8.jar"/>
3028
<classpathentry combineaccessrules="false" kind="src" path="/arduino-core"/>
29+
<classpathentry kind="lib" path="app/lib/jssc-2.8.0-arduino1.jar"/>
30+
<classpathentry kind="lib" path="app/lib/java-semver-0.8.0.jar"/>
31+
<classpathentry combineaccessrules="false" kind="src" path="/app"/>
3132
<classpathentry kind="output" path="app/bin"/>
3233
</classpath>

app/.classpath

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
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"/>
66
<classpathentry combineaccessrules="false" kind="src" path="/arduino-core"/>
7-
<classpathentry kind="output" path="bin"/>
87
<classpathentry kind="lib" path="lib/apple.jar"/>
98
<classpathentry kind="lib" path="lib/batik-1.8.jar"/>
109
<classpathentry kind="lib" path="lib/batik-anim-1.8.jar"/>
@@ -33,16 +32,16 @@
3332
<classpathentry kind="lib" path="lib/commons-lang3-3.3.2.jar"/>
3433
<classpathentry kind="lib" path="lib/commons-logging-1.0.4.jar"/>
3534
<classpathentry kind="lib" path="lib/commons-net-3.3.jar"/>
36-
<classpathentry kind="lib" path="lib/jackson-annotations-2.6.3.jar"/>
37-
<classpathentry kind="lib" path="lib/jackson-core-2.6.3.jar"/>
38-
<classpathentry kind="lib" path="lib/jackson-databind-2.6.3.jar"/>
39-
<classpathentry kind="lib" path="lib/jackson-module-mrbean-2.6.3.jar"/>
35+
<classpathentry kind="lib" path="lib/jackson-annotations-2.9.5.jar"/>
36+
<classpathentry kind="lib" path="lib/jackson-core-2.9.5.jar"/>
37+
<classpathentry kind="lib" path="lib/jackson-databind-2.9.5.jar"/>
38+
<classpathentry kind="lib" path="lib/jackson-module-mrbean-2.9.5.jar"/>
4039
<classpathentry kind="lib" path="lib/java-semver-0.8.0.jar"/>
41-
<classpathentry kind="lib" path="lib/jmdns-3.5.1.jar"/>
40+
<classpathentry kind="lib" path="lib/jmdns-3.5.3.jar"/>
4241
<classpathentry kind="lib" path="lib/slf4j-api-1.7.22.jar"/>
4342
<classpathentry kind="lib" path="lib/slf4j-simple-1.7.22.jar"/>
4443
<classpathentry kind="lib" path="lib/jsch-0.1.50.jar"/>
45-
<classpathentry kind="lib" path="lib/jssc-2.8.0-arduino1.jar"/>
44+
<classpathentry kind="lib" path="lib/jssc-2.8.0-arduino2.jar"/>
4645
<classpathentry kind="lib" path="lib/rsyntaxtextarea-2.6.1.jar"/>
4746
<classpathentry kind="lib" path="lib/xml-apis-1.3.04.jar"/>
4847
<classpathentry kind="lib" path="lib/xml-apis-ext-1.3.04.jar"/>
@@ -53,4 +52,6 @@
5352
<classpathentry kind="lib" path="test-lib/fest-swing-1.2.jar"/>
5453
<classpathentry kind="lib" path="test-lib/fest-util-1.1.2.jar"/>
5554
<classpathentry kind="lib" path="test-lib/jcip-annotations-1.0.jar"/>
55+
<classpathentry kind="lib" path="lib/autocomplete-2.6.1.jar"/>
56+
<classpathentry kind="output" path="bin"/>
5657
</classpath>

app/build.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@
130130
</target>
131131

132132
<target name="build" depends="compile" description="Build PDE">
133-
<jar basedir="bin" destfile="pde.jar" />
133+
<jar basedir="bin" destfile="pde.jar" >
134+
<fileset dir="src" includes="**/icons/**" />
135+
</jar>
134136
</target>
135137
</project>

app/lib/autocomplete-2.6.1.jar

148 KB
Binary file not shown.

app/lib/jackson-annotations-2.6.3.jar

-45.9 KB
Binary file not shown.

app/lib/jackson-annotations-2.9.5.jar

65.4 KB
Binary file not shown.

app/lib/jackson-core-2.6.3.jar

-253 KB
Binary file not shown.

app/lib/jackson-core-2.9.5.jar

314 KB
Binary file not shown.

app/lib/jackson-databind-2.6.3.jar

-1.12 MB
Binary file not shown.

app/lib/jackson-databind-2.9.5.jar

1.28 MB
Binary file not shown.
-78 KB
Binary file not shown.
78.8 KB
Binary file not shown.

app/lib/jmdns-3.5.1.jar

-208 KB
Binary file not shown.

app/lib/jmdns-3.5.3.jar

209 KB
Binary file not shown.

app/src/cc/arduino/ConsoleOutputStream.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
*/
5353
public class ConsoleOutputStream extends ByteArrayOutputStream {
5454

55-
private final SimpleAttributeSet attributes;
55+
private SimpleAttributeSet attributes;
5656
private final PrintStream printStream;
5757
private final Timer timer;
5858

@@ -73,6 +73,10 @@ public ConsoleOutputStream(SimpleAttributeSet attributes, PrintStream printStrea
7373
timer.setRepeats(false);
7474
}
7575

76+
public void setAttibutes(SimpleAttributeSet attributes) {
77+
this.attributes = attributes;
78+
}
79+
7680
public void setCurrentEditorConsole(EditorConsole console) {
7781
this.editorConsole = console;
7882
}

app/src/cc/arduino/UpdatableBoardsLibsFakeURLsHandler.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
import javax.swing.event.HyperlinkEvent;
3535
import javax.swing.event.HyperlinkListener;
3636
import java.net.URL;
37+
import java.net.URI;
38+
import java.awt.Desktop;
39+
import java.io.IOException;
40+
import java.net.URISyntaxException;
3741

3842
public class UpdatableBoardsLibsFakeURLsHandler implements HyperlinkListener {
3943

@@ -71,6 +75,18 @@ public void openBoardLibManager(URL url) {
7175
return;
7276
}
7377

78+
if(Desktop.isDesktopSupported())
79+
{
80+
try {
81+
Desktop.getDesktop().browse(url.toURI());
82+
return;
83+
} catch (IOException e) {
84+
throw new IllegalArgumentException(url.getHost() + " is invalid");
85+
} catch (URISyntaxException e) {
86+
throw new IllegalArgumentException(url.getHost() + " is invalid");
87+
}
88+
}
89+
7490
throw new IllegalArgumentException(url.getHost() + " is invalid");
7591

7692
}
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
/*
2+
* This file is part of Arduino.
3+
*
4+
* Copyright 2017 Arduino LLC (http://www.arduino.cc/)
5+
*
6+
* Arduino is free software; you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation; either version 2 of the License, or
9+
* (at your option) any later version.
10+
*
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
*
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program; if not, write to the Free Software
18+
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19+
*
20+
* As a special exception, you may use this file as part of a free software
21+
* library without restriction. Specifically, if other files instantiate
22+
* templates or use macros or inline functions from this file, or you compile
23+
* this file and link it with other files to produce an executable, this
24+
* file does not by itself cause the resulting executable to be covered by
25+
* the GNU General Public License. This exception does not however
26+
* invalidate any other reasons why the executable file might be covered by
27+
* the GNU General Public License.
28+
*/
29+
30+
package cc.arduino.autocomplete;
31+
32+
import java.util.ArrayList;
33+
import java.util.List;
34+
35+
public class ArduinoCompletionsList extends ArrayList<ArduinoCompletion> {
36+
}
37+
38+
class ArduinoCompletion {
39+
ArduinoCompletionDetail completion;
40+
String type;
41+
String location;
42+
List<ArduinoParameter> parameters;
43+
44+
public ArduinoCompletionDetail getCompletion() {
45+
return completion;
46+
}
47+
48+
public String getType() {
49+
return type;
50+
}
51+
52+
public String getLocation() {
53+
return location;
54+
}
55+
56+
public List<ArduinoParameter> getParameters() {
57+
return parameters;
58+
}
59+
}
60+
61+
class ArduinoParameter {
62+
String name;
63+
String type;
64+
65+
public String getName() {
66+
return name;
67+
}
68+
69+
public String getType() {
70+
return type;
71+
}
72+
}
73+
74+
class ArduinoCompletionDetail {
75+
List<CompletionChunk> chunks;
76+
String brief;
77+
78+
public List<CompletionChunk> getChunks() {
79+
return chunks;
80+
}
81+
82+
public String getBrief() {
83+
return brief;
84+
}
85+
86+
public String getResultType() {
87+
for (CompletionChunk c : chunks) {
88+
if (c.res != null)
89+
return c.res;
90+
}
91+
return null;
92+
}
93+
94+
public String getTypedText() {
95+
for (CompletionChunk c : chunks) {
96+
if (c.typedtext != null)
97+
return c.typedtext;
98+
}
99+
return null;
100+
}
101+
}
102+
103+
class CompletionChunk {
104+
String typedtext;
105+
String t;
106+
String placeholder;
107+
String res;
108+
String info;
109+
ArduinoCompletionDetail optional;
110+
111+
public String getTypedtext() {
112+
return typedtext;
113+
}
114+
115+
public String getT() {
116+
return t;
117+
}
118+
119+
public String getPlaceholder() {
120+
return placeholder;
121+
}
122+
123+
public String getRes() {
124+
return res;
125+
}
126+
127+
public ArduinoCompletionDetail getOptional() {
128+
return optional;
129+
}
130+
131+
public String getInfo() {
132+
return info;
133+
}
134+
}

arduino-core/src/cc/arduino/contributions/filters/BuiltInPredicate.java renamed to app/src/cc/arduino/autocomplete/BaseCCompletionProvider.java

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/*
22
* This file is part of Arduino.
33
*
4-
* Copyright 2015 Arduino LLC (http://www.arduino.cc/)
4+
* Copyright 2017 Arduino LLC (http://www.arduino.cc/)
5+
* Ricardo JL Rufino (ricardo@criativasoft.com.br)
56
*
67
* Arduino is free software; you can redistribute it and/or modify
78
* it under the terms of the GNU General Public License as published by
@@ -27,21 +28,15 @@
2728
* the GNU General Public License.
2829
*/
2930

30-
package cc.arduino.contributions.filters;
31+
package cc.arduino.autocomplete;
3132

32-
import cc.arduino.contributions.DownloadableContribution;
33-
34-
import java.util.function.Predicate;
35-
36-
public class BuiltInPredicate implements Predicate<DownloadableContribution> {
33+
import org.fife.ui.autocomplete.DefaultCompletionProvider;
3734

35+
public class BaseCCompletionProvider extends DefaultCompletionProvider {
36+
3837
@Override
39-
public boolean test(DownloadableContribution input) {
40-
return input.isReadOnly();
38+
protected boolean isValidChar(char ch) {
39+
return super.isValidChar(ch) || '.' == ch || '>' == ch || '-' == ch || '<' == ch || '#' == ch || ':' == ch /**|| getParameterListStart() == ch */;
4140
}
4241

43-
@Override
44-
public boolean equals(Object obj) {
45-
return obj instanceof BuiltInPredicate;
46-
}
4742
}

0 commit comments

Comments
 (0)