Skip to content

Commit 110a6e2

Browse files
author
Federico Fissore
committed
MacOSX: removed old Quaqua references
1 parent a9d10e0 commit 110a6e2

File tree

3 files changed

+1
-23
lines changed

3 files changed

+1
-23
lines changed

app/build.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111
<classpath>
112112
<pathelement location="bin"/>
113113
<pathelement location="test-bin"/>
114-
<pathelement path="../build/macosx/work/Arduino.app/Contents/Resources/Java/quaqua.jar"/>
115114
<path refid="class.path.test"/>
116115
</classpath>
117116

app/src/processing/app/Base.java

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,7 @@ static public void guardedMain(String args[]) throws Exception {
213213
try {
214214
BaseNoGui.getPlatform().setLookAndFeel();
215215
} catch (Exception e) {
216-
String mess = e.getMessage();
217-
if (mess.indexOf("ch.randelshofer.quaqua.QuaquaLookAndFeel") == -1) {
218-
System.err.println(_("Non-fatal error while setting the Look & Feel."));
219-
System.err.println(_("The error message follows, however Arduino should run fine."));
220-
System.err.println(mess);
221-
}
216+
// ignore
222217
}
223218

224219
// Create a location for untitled sketches
@@ -2068,8 +2063,6 @@ static public int showYesNoCancelQuestion(Editor editor, String title,
20682063
// }
20692064

20702065
} else {
2071-
// Pane formatting adapted from the Quaqua guide
2072-
// http://www.randelshofer.ch/quaqua/guide/joptionpane.html
20732066
JOptionPane pane =
20742067
new JOptionPane("<html> " +
20752068
"<head> <style type=\"text/css\">" +
@@ -2089,11 +2082,6 @@ static public int showYesNoCancelQuestion(Editor editor, String title,
20892082
// highlight the safest option ala apple hig
20902083
pane.setInitialValue(options[0]);
20912084

2092-
// on macosx, setting the destructive property places this option
2093-
// away from the others at the lefthand side
2094-
pane.putClientProperty("Quaqua.OptionPane.destructiveOption",
2095-
new Integer(2));
2096-
20972085
JDialog dialog = pane.createDialog(editor, null);
20982086
dialog.setVisible(true);
20992087

@@ -2133,8 +2121,6 @@ static public int showYesNoQuestion(Frame editor, String title,
21332121
JOptionPane.YES_NO_OPTION,
21342122
JOptionPane.QUESTION_MESSAGE);
21352123
} else {
2136-
// Pane formatting adapted from the Quaqua guide
2137-
// http://www.randelshofer.ch/quaqua/guide/joptionpane.html
21382124
JOptionPane pane =
21392125
new JOptionPane("<html> " +
21402126
"<head> <style type=\"text/css\">" +

app/src/processing/app/Editor.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,8 +2082,6 @@ protected boolean checkModified() {
20822082
// suck--workarounds for the Mac and Apple's snobby attitude about it!
20832083
// I think it's nifty that they treat their developers like dirt.
20842084

2085-
// Pane formatting adapted from the quaqua guide
2086-
// http://www.randelshofer.ch/quaqua/guide/joptionpane.html
20872085
JOptionPane pane =
20882086
new JOptionPane(_("<html> " +
20892087
"<head> <style type=\"text/css\">"+
@@ -2103,11 +2101,6 @@ protected boolean checkModified() {
21032101
// highlight the safest option ala apple hig
21042102
pane.setInitialValue(options[0]);
21052103

2106-
// on macosx, setting the destructive property places this option
2107-
// away from the others at the lefthand side
2108-
pane.putClientProperty("Quaqua.OptionPane.destructiveOption",
2109-
2);
2110-
21112104
JDialog dialog = pane.createDialog(this, null);
21122105
dialog.setVisible(true);
21132106

0 commit comments

Comments
 (0)