578579580581582583584585586587588
public synchronized void addToMenu(int menuId, JMenu menu) { final MainFrame mf = getMainFrame(); if (mf != null) { mf.addToMenu(menuId, menu); } else { throw new IllegalStateException(s_stringMgr.getString("Application.error.menuadding")); }
591592593594595596597598599600601
public synchronized void addToMenu(int menuId, Action action) { final MainFrame mf = getMainFrame(); if (mf != null) { mf.addToMenu(menuId, action); } else { throw new IllegalStateException(s_stringMgr.getString("Application.error.menuadding")); }