Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 1 | 0.994 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 153 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/launcher/AbstractJavaMainTab.java |
2 | 13 | 559 | plugins/org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitMainTab.java |
| ||||
/** * Return the IJavaProject corresponding to the project name in the project name * text field, or null if the text does not match a project name. */ protected IJavaProject getJavaProject() { String projectName = fProjText.getText().trim(); if (projectName.length() < 1) { return null; } //end if return getJavaModel().getJavaProject(projectName); } /** * Convenience method to get the workspace root. */ protected IWorkspaceRoot getWorkspaceRoot() { return ResourcesPlugin.getWorkspace().getRoot(); } |
| ||||
/* * Return the IJavaProject corresponding to the project name in the project name * text field, or null if the text does not match a project name. */ protected IJavaProject getJavaProject() { String projectName = fProjText.getText().trim(); if (projectName.length() < 1) { return null; } return getJavaModel().getJavaProject(projectName); } /* * Convenience method to get the workspace root. */ private IWorkspaceRoot getWorkspaceRoot() { return ResourcesPlugin.getWorkspace().getRoot(); } |
| |||
/** * Return the IJavaProject corresponding to the project name in the project name * text field, or null if the text does not match a project name. */ /* * Return the IJavaProject corresponding to the project name in the project name * text field, or null if the text does not match a project name. */ protected IJavaProject getJavaProject() { String projectName = fProjText.getText().trim(); if (projectName.length() < 1) { return null; } //end if return getJavaModel().getJavaProject(projectName); } [[#variable9c05ffc0]]IWorkspaceRoot getWorkspaceRoot() { return ResourcesPlugin.getWorkspace().getRoot(); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9c05ffc0]] | /** * Convenience method to get the workspace root. */ protected |
1 | 2 | [[#9c05ffc0]] | /* * Convenience method to get the workspace root. */ private |