Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 2 | 0.973 | statement_sequence[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 56 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaCompareWithEditionActionImpl.java |
2 | 11 | 86 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionActionImpl.java |
| ||||
IMember input = getEditionElement(selection); if (input == null) { String invalidSelectionMessage = CompareMessages.CompareWithHistory_invalidSelectionMessage; MessageDialog.openInformation(getShell(), errorTitle, invalidSelectionMessage); return; } IFile file = getFile(input); if (file == null) { MessageDialog.openError(getShell(), errorTitle, errorMessage); return; } |
| ||||
IMember input = getEditionElement(selection); if (input == null) { String invalidSelectionMessage = CompareMessages.ReplaceFromHistory_invalidSelectionMessage; MessageDialog.openInformation(shell, errorTitle, invalidSelectionMessage); return; } IFile file = getFile(input); if (file == null) { MessageDialog.openError(shell, errorTitle, errorMessage); return; } |
| |||
IMember input = getEditionElement(selection); if (input == null) { String invalidSelectionMessage = CompareMessages. [[#variableb9e86a00]]; MessageDialog.openInformation( [[#variableb9e87c00]], errorTitle, invalidSelectionMessage); return; } IFile file = getFile(input); if (file == null) { MessageDialog.openError( [[#variableb9e87c00]], errorTitle, errorMessage); return; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b9e86a00]] | ReplaceFromHistory_invalidSelectionMessage |
1 | 2 | [[#b9e86a00]] | CompareWithHistory_invalidSelectionMessage |
2 | 1 | [[#b9e87c00]] | shell |
2 | 2 | [[#b9e87c00]] | getShell() |