Project

General

Profile

Bug #5725 » PtGUIUtilities.diff

Derik Barseghian, 12/04/2012 01:33 PM

View differences:

PtGUIUtilities.java (working copy)
134 134
                return false;
135 135
            }
136 136
        }
137
        
138
		// XXX Avoid JVM crashes in Kepler on Mac OS X 10.8 with Java 1.6 when 
139
        // trying to use Save dialog's directory drop-down chooser menu by 
140
        // not using java.awt.FileDialog.
141
		// See http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5725
142
		if (System.getProperty("os.name").equals("Mac OS X")
143
				&& System.getProperty("os.version").startsWith("10.8")
144
				&& System.getProperty("java.specification.version").equals(
145
						"1.6")) {
146
			System.out.println("Detected Mac OS X 10.8 and Java 1.6, PtGUIUtilities.useFileDialog() "
147
				+ "returning false to avoid http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5725");
148
			return false;
149
		}
150
        
137 151
        return PtGUIUtilities.macOSLookAndFeel();
138 152
    }
139 153

  
(2-2/2)