super(yk, DictionaryRRDocumentComparisonAction.class.getName());
}
public void actionPerformed(ActionEvent e) {
if (yoshikoder.getProject().getDocumentList().size() > 1){
ComparisonPanel panel = new ComparisonPanel(yoshikoder);
int ret = JOptionPane.showConfirmDialog(yoshikoder, panel, "Comparison",
JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);
if (ret != JOptionPane.OK_OPTION) return;
final YKDocument doc1 = panel.getFirstDocument();
final YKDocument doc2 = panel.getSecondDocument();
if ((doc1 == null) || (doc2 == null)){
return;
}