Skip to content

Commit df9835e

Browse files
committed
Merge branch 'master' of github.com:arduino/Arduino into diskloader_reboot
Conflicts: app/src/processing/app/Editor.java app/src/processing/app/Sketch.java build/shared/examples/4.Communication/SerialCallResponse/SerialCallResponse.pde build/shared/lib/theme/theme.txt hardware/arduino/cores/arduino/HardwareSerial.h hardware/arduino/cores/arduino/Print.cpp hardware/arduino/cores/arduino/WString.h hardware/arduino/variants/mega/pins_arduino.h libraries/Ethernet/examples/PachubeClient/PachubeClient.ino libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino libraries/Firmata/examples/EchoString/EchoString.ino libraries/SD/File.cpp libraries/SoftwareSerial/SoftwareSerial.cpp libraries/SoftwareSerial/SoftwareSerial.h libraries/SoftwareSerial/examples/SoftwareSerialExample/SoftwareSerialExample.ino libraries/SoftwareSerial/keywords.txt
2 parents ec45af8 + f093cc6 commit df9835e

File tree

42 files changed

+2413
-1990
lines changed

Some content is hidden

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

42 files changed

+2413
-1990
lines changed

app/src/processing/app/Base.java

+9-19
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ protected String createNewUntitled() throws IOException {
545545
newbieDir.mkdirs();
546546

547547
// Make an empty pde file
548-
File newbieFile = new File(newbieDir, newbieName + ".ino");
548+
File newbieFile = new File(newbieDir, newbieName + ".pde");
549549
new FileOutputStream(newbieFile); // create the file
550550
return newbieFile.getAbsolutePath();
551551
}
@@ -637,8 +637,7 @@ public void handleOpenPrompt() {
637637
public boolean accept(File dir, String name) {
638638
// TODO this doesn't seem to ever be used. AWESOME.
639639
//System.out.println("check filter on " + dir + " " + name);
640-
return name.toLowerCase().endsWith(".ino")
641-
|| name.toLowerCase().endsWith(".pde");
640+
return name.toLowerCase().endsWith(".pde");
642641
}
643642
});
644643

@@ -1025,28 +1024,22 @@ public void actionPerformed(ActionEvent actionevent) {
10251024
}
10261025

10271026

1028-
public void rebuildProgrammerMenu(JMenu menu) {
1029-
//System.out.println("rebuilding programmer menu");
1027+
public void rebuildBurnBootloaderMenu(JMenu menu) {
1028+
//System.out.println("rebuilding burn bootloader menu");
10301029
menu.removeAll();
1031-
ButtonGroup group = new ButtonGroup();
10321030
for (Target target : targetsTable.values()) {
10331031
for (String programmer : target.getProgrammers().keySet()) {
10341032
AbstractAction action =
10351033
new AbstractAction(
1036-
target.getProgrammers().get(programmer).get("name")) {
1034+
"w/ " + target.getProgrammers().get(programmer).get("name")) {
10371035
public void actionPerformed(ActionEvent actionevent) {
1038-
Preferences.set("programmer", getValue("target") + ":" +
1039-
getValue("programmer"));
1036+
activeEditor.handleBurnBootloader((String) getValue("target"),
1037+
(String) getValue("programmer"));
10401038
}
10411039
};
10421040
action.putValue("target", target.getName());
10431041
action.putValue("programmer", programmer);
1044-
JMenuItem item = new JRadioButtonMenuItem(action);
1045-
if (Preferences.get("programmer").equals(target.getName() + ":" +
1046-
programmer)) {
1047-
item.setSelected(true);
1048-
}
1049-
group.add(item);
1042+
JMenuItem item = new JMenuItem(action);
10501043
menu.add(item);
10511044
}
10521045
}
@@ -1106,10 +1099,7 @@ public void actionPerformed(ActionEvent e) {
11061099
File subfolder = new File(folder, list[i]);
11071100
if (!subfolder.isDirectory()) continue;
11081101

1109-
File entry = new File(subfolder, list[i] + ".ino");
1110-
if (!entry.exists() && (new File(subfolder, list[i] + ".pde")).exists()) {
1111-
entry = new File(subfolder, list[i] + ".pde");
1112-
}
1102+
File entry = new File(subfolder, list[i] + ".pde");
11131103
// if a .pde file of the same prefix as the folder exists..
11141104
if (entry.exists()) {
11151105
//String sanityCheck = sanitizedName(list[i]);

0 commit comments

Comments
 (0)