int getColumnCount() { return 2; } //}}} //{{{ getRowCount() method public int getRowCount() { return styleChoices.size(); } //}}} //{{{ getValueAt() method public Object getValueAt(int row, int col) { StyleChoice ch = (StyleChoice)styleChoices.elementAt(row); switch(col) { case 0: return ch.label; case 1: return ch.style; default: return null; } }
int getColumnCount() { return 2; } //}}} //{{{ getRowCount() method public int getRowCount() { return abbrevs.size(); } //}}} //{{{ getValueAt() method public Object getValueAt(int row, int col) { Abbrev abbrev = (Abbrev)abbrevs.elementAt(row); switch(col) { case 0: return abbrev.abbrev; case 1: return abbrev.expand; default: return null; } }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/SyntaxHiliteOptionPane.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/options/AbbrevsOptionPane.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
int getColumnCount()
1
int getColumnCount()
2
	{
2
	{
3
		return 2;
3
		return 2;
4
	} //}}}
4
	} //}}}
5
	//{{{ getRowCount() method
5
	//{{{ getRowCount() method
6
	public int getRowCount()
6
	public int getRowCount()
7
	{
7
	{
8
		return styleChoices.size();
8
		return abbrevs.size();
9
	} //}}}
9
	} //}}}
10
	//{{{ getValueAt() method
10
	//{{{ getValueAt() method
11
	public Object getValueAt(int row, int col)
11
	public Object getValueAt(int row, int col)
12
	{
12
	{
13
		StyleChoice ch = (StyleChoice)styleChoices.elementAt(row);
13
		Abbrev abbrev = (Abbrev)abbrevs.elementAt(row);
14
		switch(col)
14
		switch(col)
15
		{
15
		{
16
		case 0:
16
		case 0:
17
			return ch.label;
17
			return abbrev.abbrev;
18
		case 1:
18
		case 1:
19
			return ch.style;
19
			return abbrev.expand;
20
		default:
20
		default:
21
			return null;
21
			return null;
22
		}
22
		}
23
	}
23
	}
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