//						if(gtn.getChildCount() == 2){
// TODO: currently we only support two way comparison
@Override
				public void actionPerformed(ActionEvent e) {
					if(currSel!= null && currSel instanceof GroupTreeNode){
						// differentiate clones in this group
						GroupTreeNode gtn = (GroupTreeNode)currSel;
//						if(gtn.getChildCount() == 2){
							// TODO: currently we only support two way comparison
							CloneTreeNode ctn1 = (CloneTreeNode)gtn.getChildAt(0);
							CloneTreeNode ctn2 = (CloneTreeNode)gtn.getChildAt(1);
							String file1 = ctn1.getFile();
							String file2 = ctn2.getFile();
							CloneComparison comparison = new CloneComparison(panel, new File(file1), new File(file2), ctn1.start, ctn1.end, ctn2.start, ctn2.end);
							comparison.setOpenInBackground(false);
							comparison.execute();
//						}
					}
				}
// differentiate clones in this group
GroupTreeNode gtn = (GroupTreeNode)currSel;
// if(gtn.getChildCount() == 2){
// TODO: currently we only support two way comparison
CloneTreeNode ctn1 = (CloneTreeNode)gtn.getChildAt(0);
CloneTreeNode ctn2 = (CloneTreeNode)gtn.getChildAt(1);
@Override
public void actionPerformed(ActionEvent e) {
if(currSel!= null && currSel instanceof GroupTreeNode){
// differentiate clones in this group
GroupTreeNode gtn = (GroupTreeNode)currSel;
// if(gtn.getChildCount() == 2){
// TODO: currently we only support two way comparison
CloneTreeNode ctn1 = (CloneTreeNode)gtn.getChildAt(0);
CloneTreeNode ctn2 = (CloneTreeNode)gtn.getChildAt(1);
String file1 = ctn1.getFile();
String file2 = ctn2.getFile();
CloneComparison comparison = new CloneComparison(panel, new File(file1), new File(file2), ctn1.start, ctn1.end, ctn2.start, ctn2.end);
comparison.setOpenInBackground(false);
comparison.execute();
// }
}
}
@Override
public void actionPerformed(ActionEvent e) {
if(currSel!= null && currSel instanceof GroupTreeNode){
// differentiate clones in this group
GroupTreeNode gtn = (GroupTreeNode)currSel;
// if(gtn.getChildCount() == 2){
// TODO: currently we only support two way comparison
CloneTreeNode ctn1 = (CloneTreeNode)gtn.getChildAt(0);
CloneTreeNode ctn2 = (CloneTreeNode)gtn.getChildAt(1);
String file1 = ctn1.getFile();
String file2 = ctn2.getFile();
CloneComparison comparison = new CloneComparison(panel, new File(file1), new File(file2), ctn1.start, ctn1.end, ctn2.start, ctn2.end);
comparison.setOpenInBackground(false);
comparison.execute();
// }
}
}