Merge pull request #2657 from joelmoniz/fixReferenceNotShowing

Help>References and Help>Environment open in default browser in Windows
This commit is contained in:
Ben Fry
2014-07-28 18:12:47 -04:00

View File

@@ -1232,6 +1232,11 @@ public abstract class Editor extends JFrame implements RunnerListener {
public void showReference(String filename) {
File file = new File(mode.getReferenceFolder(), filename);
try {
file = file.getCanonicalFile();
} catch (IOException e) {
e.printStackTrace();
}
// Prepend with file:// and also encode spaces & other characters
Base.openURL(file.toURI().toString());
}