private String shortcut; private String action; //}}} //{{{ getShortcut() method private String getShortcut() { if(action == null) return null; else { String shortcut1 = jEdit.getProperty(action + ".shortcut"); String shortcut2 = jEdit.getProperty(action + ".shortcut2"); if(shortcut1 == null || shortcut1.length() == 0) { if(shortcut2 == null || shortcut2.length() == 0) return null; else return shortcut2; } else { if(shortcut2 == null || shortcut2.length() == 0) return shortcut1; else return shortcut1 + " or " + shortcut2;
private String shortcut; private String action; //}}} //{{{ getShortcut() method private String getShortcut() { if(action == null) return null; else { String shortcut1 = jEdit.getProperty(action + ".shortcut"); String shortcut2 = jEdit.getProperty(action + ".shortcut2"); if(shortcut1 == null || shortcut1.length() == 0) { if(shortcut2 == null || shortcut2.length() == 0) return null; else return shortcut2; } else { if(shortcut2 == null || shortcut2.length() == 0) return shortcut1; else return shortcut1 + " or " + shortcut2;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/menu/EnhancedCheckBoxMenuItem.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/menu/EnhancedMenuItem.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
private String shortcut;
1
private String shortcut;
2
	private String action;
2
	private String action;
3
	//}}}
3
	//}}}
4
	//{{{ getShortcut() method
4
	//{{{ getShortcut() method
5
	private String getShortcut()
5
	private String getShortcut()
6
	{
6
	{
7
		if(action == null)
7
		if(action == null)
8
			return null;
8
			return null;
9
		else
9
		else
10
		{
10
		{
11
			String shortcut1 = jEdit.getProperty(action + ".shortcut");
11
			String shortcut1 = jEdit.getProperty(action + ".shortcut");
12
			String shortcut2 = jEdit.getProperty(action + ".shortcut2");
12
			String shortcut2 = jEdit.getProperty(action + ".shortcut2");
13
			if(shortcut1 == null || shortcut1.length() == 0)
13
			if(shortcut1 == null || shortcut1.length() == 0)
14
			{
14
			{
15
				if(shortcut2 == null || shortcut2.length() == 0)
15
				if(shortcut2 == null || shortcut2.length() == 0)
16
					return null;
16
					return null;
17
				else
17
				else
18
					return shortcut2;
18
					return shortcut2;
19
			}
19
			}
20
			else
20
			else
21
			{
21
			{
22
				if(shortcut2 == null || shortcut2.length() == 0)
22
				if(shortcut2 == null || shortcut2.length() == 0)
23
					return shortcut1;
23
					return shortcut1;
24
				else
24
				else
25
					return shortcut1 + " or " + shortcut2;
25
					return shortcut1 + " or " + shortcut2;
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