public void run(String path) { if (path == null || path.equals("")) path = showDialog(); if (path == null) return; openingStartupMacrosInEditor = path.indexOf("StartupMacros") != -1; String text = open(path); if (text != null) { String functions = Interpreter.getAdditionalFunctions(); if (functions != null) { if (!(text.endsWith("\n") || functions.startsWith("\n"))) text = text + "\n" + functions; else text = text + functions; } install(text); } }