public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { super.getListCellRendererComponent(list,value,index, isSelected,cellHasFocus); Button button = (Button)value; setIcon(button.icon); return this;
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { super.getListCellRendererComponent(list,value,index, isSelected,cellHasFocus); IconListEntry icon = (IconListEntry)value; setIcon(icon.icon); return this;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ToolBarOptionPane.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/ToolBarOptionPane.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public Component getListCellRendererComponent(JList list,
1
public Component getListCellRendererComponent(JList list,
2
			Object value, int index, boolean isSelected,
2
			Object value, int index, boolean isSelected,
3
			boolean cellHasFocus)
3
			boolean cellHasFocus)
4
		{
4
		{
5
			super.getListCellRendererComponent(list,value,index,
5
			super.getListCellRendererComponent(list,value,index,
6
				isSelected,cellHasFocus);
6
				isSelected,cellHasFocus);
7
			Button button = (Button)value;
7
			IconListEntry icon = (IconListEntry)value;
8
			setIcon(button.icon);
8
			setIcon(icon.icon);
9
			return this;
9
			return this;
10
		
10
		
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0