public void setExtendedFrameTitle(String fname) { // file New operation may set to null, so just return app name if (fname == null) { setTitle(DEFAULT_TITLE); return; } // allow for windows / chars in filename String temp = fname.replace('\\', '/'); // $NON-NLS-1$ // $NON-NLS-2$ String simpleName = temp.substring(temp.lastIndexOf("/") + 1);// $NON-NLS-1$ setTitle(simpleName + " (" + fname + ") - " + DEFAULT_TITLE); // $NON-NLS-1$ // $NON-NLS-2$
public void setExtendedFrameTitle(String fname) { // file New operation may set to null, so just return app name if (fname == null) { setTitle(DEFAULT_TITLE); return; } // allow for windows / chars in filename String temp = fname.replace('\\', '/'); // $NON-NLS-1$ // $NON-NLS-2$ String simpleName = temp.substring(temp.lastIndexOf("/") + 1);// $NON-NLS-1$ setTitle(simpleName + " (" + fname + ") - " + DEFAULT_TITLE); // $NON-NLS-1$ // $NON-NLS-2$
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/MainFrame.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/ReportMainFrame.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void setExtendedFrameTitle(String fname) {
1
public void setExtendedFrameTitle(String fname) {
2
		// file New operation may set to null, so just return app name
2
		// file New operation may set to null, so just return app name
3
		if (fname == null) {
3
		if (fname == null) {
4
			setTitle(DEFAULT_TITLE);
4
			setTitle(DEFAULT_TITLE);
5
			return;
5
			return;
6
		}
6
		}
7
		// allow for windows / chars in filename
7
		// allow for windows / chars in filename
8
		String temp = fname.replace('\\', '/'); // $NON-NLS-1$ // $NON-NLS-2$
8
		String temp = fname.replace('\\', '/'); // $NON-NLS-1$ // $NON-NLS-2$
9
		String simpleName = temp.substring(temp.lastIndexOf("/") + 1);// $NON-NLS-1$
9
		String simpleName = temp.substring(temp.lastIndexOf("/") + 1);// $NON-NLS-1$
10
		setTitle(simpleName + " (" + fname + ") - " + DEFAULT_TITLE); // $NON-NLS-1$ // $NON-NLS-2$
10
		setTitle(simpleName + " (" + fname + ") - " + DEFAULT_TITLE); // $NON-NLS-1$ // $NON-NLS-2$
11
	
11
	
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