CloneSet2431


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111172
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaNavigatorLabelProvider.java
21088
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/StatusBarUpdater.java
Clone Instance
1
Line Count
11
Source Line
172
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/navigator/JavaNavigatorLabelProvider.java

        private String formatJavaElementMessage(IJavaElement element) {
                return JavaElementLabels.getElementLabel(element, LABEL_FLAGS);
        }

        private String formatResourceMessage(IResource element) {
                IContainer parent = element.getParent();
                if (parent != null && parent.getType() != IResource.ROOT)
                        return element.getName() + JavaElementLabels.CONCAT_STRING + 
                                          parent.getFullPath().makeRelative().toString();
                else
                        return element.getName();
        }


Clone Instance
2
Line Count
10
Source Line
88
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/StatusBarUpdater.java

        private String formatJavaElementMessage(IJavaElement element) {
                return JavaElementLabels.getElementLabel(element, LABEL_FLAGS);
        }

        private String formatResourceMessage(IResource element) {
                IContainer parent = element.getParent();
                if (parent != null && parent.getType() != IResource.ROOT)
                        return element.getName() + JavaElementLabels.CONCAT_STRING + parent.getFullPath().makeRelative().toString();
                else
                        return element.getName();
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private String formatJavaElementMessage(IJavaElement element) {
  return JavaElementLabels.getElementLabel(element, LABEL_FLAGS);
}

private String formatResourceMessage(IResource element) {
  IContainer parent = element.getParent();
  if (parent != null && parent.getType() != IResource.ROOT)
    return element.getName() + JavaElementLabels.CONCAT_STRING + parent.getFullPath().makeRelative().toString();
  else
    return element.getName();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None