void installMacros(String text, boolean installInPluginsMenu) { String functions = Interpreter.getAdditionalFunctions(); if (functions!=null && text!=null) { if (!(text.endsWith("\n") || functions.startsWith("\n"))) text = text + "\n" + functions; else text = text + functions; } installer = new MacroInstaller(); installer.setFileName(getTitle()); int nShortcutsOrTools = installer.install(text, macrosMenu); if (installInPluginsMenu || nShortcutsOrTools>0) installer.install(null); dontShowWindow = installer.isAutoRunAndHide(); currentMacroEditor = this; }
void installMacros(String text, boolean installInPluginsMenu) { String functions = Interpreter.getAdditionalFunctions(); if (functions!=null && text!=null) { if (!(text.endsWith("\n") || functions.startsWith("\n"))) text = text + "\n" + functions; else text = text + functions; } installer = new MacroInstaller(); installer.setFileName(getTitle()); int nShortcutsOrTools = installer.install(text, macrosMenu); if (installInPluginsMenu || nShortcutsOrTools>0) installer.install(null); dontShowWindow = installer.isAutoRunAndHide(); currentMacroEditor = this; }