ColourMenuHelper.setColourSelected(colourMenu, schemeName);
}
-
- /**
- * Disable inapplicable items in the Select menu when it is clicked
- */
- @Override
- protected void configureSelectMenu()
- {
- createGroup.setEnabled(false);
- unGroup.setEnabled(false);
- SequenceGroup sg = viewport.getSelectionGroup();
- if (sg != null)
- {
- List<SequenceGroup> groups = viewport.getAlignment().getGroups();
- createGroup.setEnabled(groups == null || !groups.contains(sg));
- unGroup.setEnabled(groups != null && groups.contains(sg));
- }
- }
}
class PrintThread extends Thread