exitAction = new ExitAction();
createMenuItems();
}
public void createMenuItems() {
add(new KongaMenuItem(openAction));
add(new KongaMenuItem(saveAction));
add(new KongaMenuItem(saveAsAction));
add(new KongaMenuItem(saveAllAction));
addSeparator();
add(new KongaMenuItem(closeAllAction));
addSeparator();
List<JMenuItem> liRecentFiles = openAndSaveManager.getRecentFileMenuItems();
if (liRecentFiles != null && !liRecentFiles.isEmpty()) {
for (JMenuItem item : liRecentFiles) {
add(item);
}
addSeparator();
}
add(new KongaMenuItem(exitAction));
}