bnVcsBeforeRev.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
CommittedChangeList changeList = selectChangeList();
if (changeList != null)
{
tfVcsBeforeRev.setText(String.valueOf(changeList.getNumber()));
}
}
});
bnVcsAfterRev.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
CommittedChangeList changeList = selectChangeList();
if (changeList != null)
{
try {
if (changeList instanceof GitCommittedChangeList) {
final VcsRevisionNumber revisionNumber = ((GitCommittedChangeList) changeList).getRevisionNumber();
tfVcsAfterRev.setText(null == revisionNumber ? null : revisionNumber.asString());
} else {
tfVcsAfterRev.setText(String.valueOf(changeList.getNumber()));
}
} catch (NoClassDefFoundError ex) {
tfVcsAfterRev.setText(String.valueOf(changeList.getNumber()));
}
}
}
});
}