// Initialization
Page page = DataManager.getPage(wikipedia, link.getLink(), null, null, null);
// Menu creation
BasicMenuCreator menu = new BasicMenuCreator();
JPopupMenu popup = menu.createPopupMenu(GT._(
"Page: {0}",
limitTextLength(page.getTitle(), 50)));
menu.addCurrentChapter(popup, position, pageAnalysis);
menu.addSeparator(popup);
menu.addView(wikipedia, popup, page, false);
menu.addAnalyze(wikipedia, popup, page);
menu.addDisambiguation(wikipedia, popup, page);
menu.addSeparator(popup);
menu.addItemRemoveLink(
popup, link.getDisplayedText(),
textPane, link.getBeginIndex(), link.getEndIndex());
return popup;
}