else if (menu.getText().contains("View"))
{
menu.addSeparator();
- menu.add(new JMenuItem("Sort alignment by tree"));
+ JMenuItem sortByTree = new JMenuItem("Sort alignment by tree");
+ menu.add(sortByTree);
+ sortByTree.setVisible(false); // don't show unless it's actually
+ // possible
}
}
}
@Override
- public void sortByTree_actionPerformed()// modify for Aptx
+ public void sortByTree_actionPerformed()
{
-
+ //
// if (treeCanvas.applyToAllViews)
// {
// final ArrayList<CommandI> commands = new ArrayList<>();