" Author: Eric Van Dewoestine " " Description: {{{ " Plugin to generate gvim eclim menus. " " License: " " Copyright (C) 2005 - 2013 Eric Van Dewoestine " " This program is free software: you can redistribute it and/or modify " it under the terms of the GNU General Public License as published by " the Free Software Foundation, either version 3 of the License, or " (at your option) any later version. " " This program is distributed in the hope that it will be useful, " but WITHOUT ANY WARRANTY; without even the implied warranty of " MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the " GNU General Public License for more details. " " You should have received a copy of the GNU General Public License " along with this program. If not, see . " " }}} " Script Variables {{{ let s:eclim_menus_root = [] let s:eclim_menus = {} " }}} " Generate() {{{ " Generate gvim menu items for available eclim commands. function! eclim#display#menu#Generate() " check that the menu bar is enabled or that we are running in a mac gui where " the menu bar always exists regardless of guioptions if &guioptions !~ 'm' && !has('gui_macvim') if exists('b:eclim_menus') unlet b:eclim_menus endif return endif redir => commands silent exec 'command' redir END if !exists('b:eclim_menus') let b:eclim_menus = {} let pattern = '\