| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 2 | 0 | 1.000 | class_body_declaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 1185 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java |
| 2 | 8 | 1415 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerPart.java |
| ||||
/**
* Returns the element contained in the EditorInput
*/
Object getElementOfInput(IEditorInput input) {
if (input instanceof IClassFileEditorInput)
return ((IClassFileEditorInput) input).getClassFile();
else if (input instanceof IFileEditorInput)
return ((IFileEditorInput) input).getFile();
else
if (input instanceof JarEntryEditorInput)
return ((JarEntryEditorInput) input).getStorage();
return null;
}
|
| ||||
/**
* Returns the element contained in the EditorInput
*/
Object getElementOfInput(IEditorInput input) {
if (input instanceof IClassFileEditorInput)
return ((IClassFileEditorInput) input).getClassFile();
else if (input instanceof IFileEditorInput)
return ((IFileEditorInput) input).getFile();
else
if (input instanceof JarEntryEditorInput)
return ((JarEntryEditorInput) input).getStorage();
return null;
}
|
| |||
/**
* Returns the element contained in the EditorInput
*/
Object getElementOfInput(IEditorInput input) {
if (input instanceof IClassFileEditorInput)
return ((IClassFileEditorInput) input).getClassFile();
else
if (input instanceof IFileEditorInput)
return ((IFileEditorInput) input).getFile();
else
if (input instanceof JarEntryEditorInput)
return ((JarEntryEditorInput) input).getStorage();
return null;
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| None | |||