1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

By using syntax like file://./docs/index.html, editor will open file index.html stored in folder SKETCH_FOLDER/docs/. Fixes #224

This commit is contained in:
Federico Fissore
2015-06-08 14:39:11 +02:00
parent 8465202264
commit ccd7fdc0a3
4 changed files with 59 additions and 75 deletions

View File

@ -1006,7 +1006,7 @@ public class Editor extends JFrame implements RunnerListener {
@Override
public void hyperlinkUpdate(HyperlinkEvent hyperlinkEvent) {
try {
platform.openURL(hyperlinkEvent.getURL().toExternalForm());
platform.openURL(sketch.getFolder(), hyperlinkEvent.getURL().toExternalForm());
} catch (Exception e) {
Base.showWarning(e.getMessage(), e.getMessage(), e);
}