mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Updated offline docs
This commit is contained in:
@ -186,7 +186,6 @@ public class Base {
|
||||
try {
|
||||
Class.forName("com.sun.jdi.VirtualMachine");
|
||||
} catch (ClassNotFoundException cnfe) {
|
||||
showPlatforms();
|
||||
showError(_("Please install JDK 1.5 or later"),
|
||||
_("Arduino requires a full JDK (not just a JRE)\n" +
|
||||
"to run. Please install JDK 1.5 or later.\n" +
|
||||
@ -1901,43 +1900,40 @@ public class Base {
|
||||
|
||||
|
||||
static public void showReference(String filename) {
|
||||
File referenceFolder = getContentFile("reference");
|
||||
File referenceFolder = getContentFile("reference/arduino.cc/en");
|
||||
File referenceFile = new File(referenceFolder, filename);
|
||||
if (!referenceFile.exists())
|
||||
referenceFile = new File(referenceFolder, filename + ".html");
|
||||
openURL(referenceFile.getAbsolutePath());
|
||||
}
|
||||
|
||||
static public void showGettingStarted() {
|
||||
if (OSUtils.isMacOS()) {
|
||||
showReference(_("Guide_MacOSX.html"));
|
||||
showReference("Guide/MacOSX");
|
||||
} else if (OSUtils.isWindows()) {
|
||||
showReference(_("Guide_Windows.html"));
|
||||
showReference("Guide/Windows");
|
||||
} else {
|
||||
openURL(_("http://www.arduino.cc/playground/Learning/Linux"));
|
||||
openURL("http://www.arduino.cc/playground/Learning/Linux");
|
||||
}
|
||||
}
|
||||
|
||||
static public void showReference() {
|
||||
showReference(_("index.html"));
|
||||
showReference("Reference/HomePage");
|
||||
}
|
||||
|
||||
|
||||
static public void showEnvironment() {
|
||||
showReference(_("Guide_Environment.html"));
|
||||
}
|
||||
|
||||
|
||||
static public void showPlatforms() {
|
||||
showReference(_("environment") + File.separator + _("platforms.html"));
|
||||
showReference("Guide/Environment");
|
||||
}
|
||||
|
||||
|
||||
static public void showTroubleshooting() {
|
||||
showReference(_("Guide_Troubleshooting.html"));
|
||||
showReference("Guide/Troubleshooting");
|
||||
}
|
||||
|
||||
|
||||
static public void showFAQ() {
|
||||
showReference(_("FAQ.html"));
|
||||
showReference("Main/FAQ");
|
||||
}
|
||||
|
||||
|
||||
|
@ -1881,7 +1881,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
if (referenceFile == null) {
|
||||
statusNotice(I18n.format(_("No reference available for \"{0}\""), text));
|
||||
} else {
|
||||
Base.showReference(I18n.format(_("{0}.html"), referenceFile));
|
||||
Base.showReference("Reference/" + referenceFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user