* @version $Revision$
*/
public class AlignFrame extends GAlignFrame implements DropTargetListener,
- IProgressIndicator, AlignViewControllerGuiI, ColourChangeListener,
- PropertyChangeListener
+ IProgressIndicator, AlignViewControllerGuiI, ColourChangeListener
{
public static final int DEFAULT_WIDTH = 700;
init();
}
- @Override
- public void propertyChange(PropertyChangeEvent evt)
- {
- Desktop.getDesktop().propertyChange(evt);
- }
-
- /**
- * BH 2018
- *
- * @return true if we have any features
- */
- @Override
- protected boolean haveAlignmentFeatures()
- {
- AlignmentI alignment = getViewport().getAlignment();
-
- for (int i = 0; i < alignment.getHeight(); i++)
- {
- SequenceI seq = alignment.getSequenceAt(i);
- for (String group : seq.getFeatures().getFeatureGroups(true))
- {
- if (group != null)
- return true;
- }
- }
- return false;
- }
-
/**
* initalise the alignframe from the underlying viewport data and the
* configurations
addMenuActionAndAccelerator(keyStroke, closeMenuItem, al);
JMenu editMenu = new JMenu(MessageManager.getString("action.edit"));
- JMenu viewMenu = new JMenu(MessageManager.getString("action.view")) {
-
- public void setPopupMenuVisible(boolean b) {
- if (b) {
- openFeatureSettings.setEnabled(haveAlignmentFeatures());
- }
- super.setPopupMenuVisible(b);
- }
-
- };
+ JMenu viewMenu = new JMenu(MessageManager.getString("action.view"));
JMenu annotationsMenu = new JMenu(
MessageManager.getString("action.annotations"));
JMenu showMenu = new JMenu(MessageManager.getString("action.show"));
// selectMenu.add(listenToViewSelections);
}
- protected boolean haveAlignmentFeatures()
- {
- // because gAlignFrame is not an abstract class -- see AlignFrame
- return false;
- }
-
protected void loadVcf_actionPerformed()
{
}