use of org.wikipediacleaner.gui.swing.action.SetComparatorAction in project wpcleaner by WPCleaner.
the class DisambiguationWindow method createSortMenu.
/**
* @return Sort menu.
*/
private JMenu createSortMenu() {
JMenu menu = Utilities.createJMenu(GT._T("Sort"));
List<CompositeComparator<Page>> comparators = PageComparator.getComparators();
for (CompositeComparator<Page> comparator : comparators) {
JMenuItem menuItem = Utilities.createJMenuItem(comparator.getName(), true);
menuItem.addActionListener(new SetComparatorAction(modelLinks, comparator));
menu.add(menuItem);
}
return menu;
}
use of org.wikipediacleaner.gui.swing.action.SetComparatorAction in project wpcleaner by WPCleaner.
the class OnePageAnalysisWindow method createSortMenu.
/**
* @return Sort menu.
*/
private JMenu createSortMenu() {
JMenu menu = Utilities.createJMenu(GT._T("Sort"));
List<CompositeComparator<Page>> comparators = PageComparator.getComparators();
for (CompositeComparator<Page> comparator : comparators) {
JMenuItem menuItem = Utilities.createJMenuItem(comparator.getName(), true);
menuItem.addActionListener(new SetComparatorAction(modelLinks, comparator));
menu.add(menuItem);
}
return menu;
}
Aggregations