mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-19 08:52:15 +01:00
Trim trailing spaces from Editor.java
This commit is contained in:
parent
bafd66ba4f
commit
4a80f50d28
@ -399,8 +399,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
statusNotice(tr("One file added to the sketch."));
|
||||
|
||||
} else {
|
||||
statusNotice(
|
||||
I18n.format(tr("{0} files added to the sketch."), successful));
|
||||
statusNotice(I18n.format(tr("{0} files added to the sketch."), successful));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@ -948,14 +947,14 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
} finally {
|
||||
if (zipFile != null) {
|
||||
try {
|
||||
zipFile.close();
|
||||
} catch (IOException e) {
|
||||
// noop
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
zipFile.close();
|
||||
} catch (IOException e) {
|
||||
// noop
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void updateKeywords(PdeKeywords keywords) {
|
||||
for (EditorTab tab : tabs)
|
||||
@ -2097,18 +2096,19 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
names[i] = portMenu.getItem(i).getText();
|
||||
}
|
||||
|
||||
// FIXME: This is horribly unreadable
|
||||
String result = (String)
|
||||
JOptionPane.showInputDialog(this,
|
||||
I18n.format(
|
||||
tr("Serial port {0} not found.\n" +
|
||||
"Retry the upload with another serial port?"),
|
||||
PreferencesData.get("serial.port")
|
||||
),
|
||||
"Serial port not found",
|
||||
JOptionPane.PLAIN_MESSAGE,
|
||||
null,
|
||||
names,
|
||||
0);
|
||||
JOptionPane.showInputDialog(this,
|
||||
I18n.format(
|
||||
tr("Serial port {0} not found.\n" +
|
||||
"Retry the upload with another serial port?"),
|
||||
PreferencesData.get("serial.port")
|
||||
),
|
||||
"Serial port not found",
|
||||
JOptionPane.PLAIN_MESSAGE,
|
||||
null,
|
||||
names,
|
||||
0);
|
||||
if (result == null) return false;
|
||||
selectSerialPort(result);
|
||||
base.onBoardOrPortChange();
|
||||
|
Loading…
x
Reference in New Issue
Block a user