@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){
					
						GroupTreeNode gtn = (GroupTreeNode)currSel;
						
							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){ grouptreenode gtn = (grouptreenode)currsel; 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(); } }