This commit is contained in:
joelmoniz
2014-07-27 17:17:55 +04:00
parent 6a74bbe3d7
commit 49f414c6ea

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());
}