CloneSet2280


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11220.973statement_sequence[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11156
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaCompareWithEditionActionImpl.java
21186
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionActionImpl.java
Clone Instance
1
Line Count
11
Source Line
56
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaCompareWithEditionActionImpl.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;
                }


Clone Instance
2
Line Count
11
Source Line
86
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaReplaceWithEditionActionImpl.java

                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;
                }


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9e86a00]]
ReplaceFromHistory_invalidSelectionMessage 
12[[#b9e86a00]]
CompareWithHistory_invalidSelectionMessage 
21[[#b9e87c00]]
shell 
22[[#b9e87c00]]
getShell()