-
- /**
- * Prompt the user to set/edit the path to gnuplot
- */
- private void setGnuplotPath()
- {
- String currPath = Config.getGnuplotPath();
- Object path = JOptionPane.showInputDialog(_dialog,
- I18nManager.getText("dialog.charts.gnuplotpath"),
- I18nManager.getText(getNameKey()),
- JOptionPane.QUESTION_MESSAGE, null, null, "" + currPath);
- if (path != null)
- {
- String pathString = path.toString().trim();
- if (!pathString.equals("") && !pathString.equals(currPath)) {
- Config.setGnuplotPath(pathString);
- // warn if gnuplot still not found
- if (!ExternalTools.isGnuplotInstalled()) {
- _app.showErrorMessage(getNameKey(), "dialog.charts.gnuplotnotfound");
- }
- }
- }
- }