directLoadItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
if (Gitools.canConnect() ) {
GeneListManagerUI dialog = GeneListManagerUI.getInstance(IGV.getMainFrame(),
"Gitools Load", new Gitools.DirectLoadListener());
dialog.setVisible(true);
} else {
JOptionPane.showMessageDialog(IGV.getMainFrame(), "To be able to browse the gene matrix you need to install and open Gitools.\n Download it from http://www.gitools.org.");
}
}
});
gitoolsMenu.add(directLoadItem);
JMenuItem gitoolsItem = new JMenuItem("Export Gene Matrix (TDM)...");
gitoolsItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
GeneListManagerUI dialog = GeneListManagerUI.getInstance(IGV.getMainFrame(),
"Export TDM", new Gitools.ExportFileListener());
dialog.setVisible(true);
}
});
gitoolsMenu.add(gitoolsItem);
IGV.getInstance().addOtherToolMenu(gitoolsMenu);
}