Skip to content

Commit 6aff4f4

Browse files
committed
Merge branch 'ide-1.5.x-gui-refactor' into ide-1.5.x
2 parents 34c40b2 + 7b2ed12 commit 6aff4f4

File tree

382 files changed

+10466
-93994
lines changed

Some content is hidden

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

382 files changed

+10466
-93994
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
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 combineaccessrules="false" kind="src" path="/processing-core"/>
76
<classpathentry kind="lib" path="app/lib/antlr.jar"/>
87
<classpathentry kind="lib" path="app/lib/apple.jar"/>
98
<classpathentry kind="lib" path="app/lib/ecj.jar"/>
@@ -21,5 +20,6 @@
2120
<classpathentry kind="lib" path="app/lib/jmdns-3.4.1.jar"/>
2221
<classpathentry kind="lib" path="app/lib/jsch-0.1.50.jar"/>
2322
<classpathentry kind="lib" path="app/lib/jssc-2.8.0.jar"/>
23+
<classpathentry combineaccessrules="false" kind="src" path="/arduino-core"/>
2424
<classpathentry kind="output" path="app/bin"/>
2525
</classpath>

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
app/bin/
22
app/pde.jar
33
build/macosx/work/
4-
core/bin/
5-
core/core.jar
4+
arduino-core/bin/
5+
arduino-core/arduino-core.jar
66
hardware/arduino/bootloaders/caterina_LUFA/Descriptors.o
77
hardware/arduino/bootloaders/caterina_LUFA/Descriptors.lst
88
hardware/arduino/bootloaders/caterina_LUFA/Caterina.sym

app/.classpath

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
33
<classpathentry excluding="processing/app/tools/format/" kind="src" path="src"/>
4+
<classpathentry kind="src" path="test"/>
45
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
56
<classpathentry kind="lib" path="lib/antlr.jar"/>
67
<classpathentry kind="lib" path="lib/jna.jar"/>
78
<classpathentry kind="lib" path="lib/ecj.jar"/>
8-
<classpathentry combineaccessrules="false" kind="src" path="/processing-core"/>
99
<classpathentry kind="lib" path="lib/apple.jar"/>
1010
<classpathentry kind="lib" path="lib/commons-codec-1.7.jar"/>
1111
<classpathentry kind="lib" path="lib/commons-exec-1.1.jar"/>
@@ -14,5 +14,7 @@
1414
<classpathentry kind="lib" path="lib/jmdns-3.4.1.jar"/>
1515
<classpathentry kind="lib" path="lib/jsch-0.1.50.jar"/>
1616
<classpathentry kind="lib" path="lib/jssc-2.8.0.jar"/>
17+
<classpathentry kind="lib" path="test-lib/junit-4.11.jar"/>
18+
<classpathentry combineaccessrules="false" kind="src" path="/arduino-core"/>
1719
<classpathentry kind="output" path="bin"/>
1820
</classpath>

app/build.xml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<include name="*.jar"/>
77
</fileset>
88
<pathelement path="${env.JAVA_HOME}/lib/tools.jar"/>
9-
<pathelement path="../core/core.jar"/>
9+
<pathelement path="../arduino-core/arduino-core.jar"/>
1010
</path>
1111

1212
<path id="class.path.test">
@@ -25,9 +25,9 @@
2525

2626
<target name="compile" description="Compile sources">
2727
<condition property="core-built">
28-
<available file="../core/core.jar" />
28+
<available file="../arduino-core/arduino-core.jar" />
2929
</condition>
30-
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../core/core.jar" />
30+
<fail unless="core-built" message="Please build the Arduino-core library first and make sure it sits in ../arduino-core/arduino-core.jar" />
3131

3232
<mkdir dir="bin" />
3333

@@ -80,9 +80,6 @@
8080
includeAntRuntime="false"
8181
debug="true"
8282
classpathref="class.path" />
83-
<copy todir="bin" overwrite="true" verbose="true">
84-
<fileset dir="src" includes="**/*.properties" />
85-
</copy>
8683
</target>
8784

8885
<target name="test" depends="compile" description="Runs the test">
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package cc.arduino.packages;
2+
3+
import processing.app.AbstractMonitor;
4+
import processing.app.NetworkMonitor;
5+
import processing.app.SerialMonitor;
6+
7+
public class MonitorFactory {
8+
9+
public AbstractMonitor newMonitor(BoardPort port) {
10+
if ("network".equals(port.getProtocol())) {
11+
return new NetworkMonitor(port);
12+
}
13+
14+
return new SerialMonitor(port);
15+
}
16+
17+
}

app/src/processing/app/AbstractMonitor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package processing.app;
22

33
import processing.app.debug.MessageConsumer;
4-
import processing.core.PApplet;
4+
import processing.app.legacy.PApplet;
55

66
import javax.swing.*;
77
import javax.swing.border.EmptyBorder;
@@ -14,6 +14,7 @@
1414

1515
import static processing.app.I18n._;
1616

17+
@SuppressWarnings("serial")
1718
public abstract class AbstractMonitor extends JFrame implements MessageConsumer {
1819

1920
protected final JLabel noLineEndingAlert;

0 commit comments

Comments
 (0)