void (T tool, Element element) { element.setAttribute(SHOW_IN_MAIN_MENU, Boolean.toString(tool.isShownInMainMenu())); element.setAttribute(SHOW_IN_EDITOR, Boolean.toString(tool.isShownInEditor())); element.setAttribute(SHOW_IN_PROJECT, Boolean.toString(tool.isShownInProjectViews())); element.setAttribute(SHOW_IN_SEARCH_POPUP, Boolean.toString(tool.isShownInSearchResultsPopup())); element.setAttribute(DISABLED, Boolean.toString(!tool.isEnabled())); element.setAttribute(USE_CONSOLE, Boolean.toString(tool.isUseConsole())); element.setAttribute(SHOW_CONSOLE_ON_STDOUT, Boolean.toString(tool.isShowConsoleOnStdOut())); element.setAttribute(SHOW_CONSOLE_ON_STDERR, Boolean.toString(tool.isShowConsoleOnStdErr())); element.setAttribute(SYNCHRONIZE_AFTER_EXECUTION, Boolean.toString(tool.synchronizeAfterExecution())); }