}
private void createRecentFilesMenu()
{
final XulMenupopup reopenMenu = context.getView().getXulComponent("file-reopen-popup", XulMenupopup.class); // NON-NLS
final XulMenuitem clearMenuitem = context.getView().getXulComponent("file-clear-recent", XulMenuitem.class);// NON-NLS
if (reopenMenu != null && clearMenuitem != null)
{
final RecentFilesUpdateHandler updateHandler = new RecentFilesUpdateHandler(context, reopenMenu, clearMenuitem);
updateHandler.settingsChanged();
context.getRecentFilesModel().addSettingsListener(updateHandler);