CloneSet1028


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23201.000statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123114
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewFlatContentProvider.java
223427
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java
Clone Instance
1
Line Count
23
Source Line
114
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewFlatContentProvider.java

                final IJavaElement element = delta.getElement();

                if (isClassPathChange(delta)) {
                        Object input = fViewer.getInput();
                        if (input != null) {
                                if (fInputIsProject && input.equals(element.getJavaProject())) {
                                        postRefresh(input);
                                        return;
                                }
                                else   if ( !fInputIsProject && input.equals(element)) {
                                        if (element.exists())
                                                postRefresh(input);
                                        else
                                                postRemove(input);
                                        return;
                                       }
                        }
                }
                if (kind == IJavaElementDelta.REMOVED) {
                        Object input = fViewer.getInput();
                        if (input != null && input.equals(element)) {
                                        postRemove(input);
                                        return;
                        }
                }


Clone Instance
2
Line Count
23
Source Line
427
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java

                final IJavaElement element = delta.getElement();

                if (isClassPathChange(delta)) {
                        Object input = fViewer.getInput();
                        if (input != null) {
                                if (fInputIsProject && input.equals(element.getJavaProject())) {
                                        postRefresh(input);
                                        return;
                                }
                                else   if ( !fInputIsProject && input.equals(element)) {
                                        if (element.exists())
                                                postRefresh(input);
                                        else
                                                postRemove(input);
                                        return;
                                       }
                        }
                }
                if (kind == IJavaElementDelta.REMOVED) {
                        Object input = fViewer.getInput();
                        if (input != null && input.equals(element)) {
                                        postRemove(input);
                                        return;
                        }
                }


Clone AbstractionParameter Count: 0Parameter Bindings

final IJavaElement element = delta.getElement();
if (isClassPathChange(delta)) {
  Object input = fViewer.getInput();
  if (input != null) {
    if (fInputIsProject && input.equals(element.getJavaProject())) {
      postRefresh(input);
      return;
    }
    else
      if ( !fInputIsProject && input.equals(element)) {
        if (element.exists())
          postRefresh(input);
        else
          postRemove(input);
        return;
      }
  }
}
if (kind == IJavaElementDelta.REMOVED) {
  Object input = fViewer.getInput();
  if (input != null && input.equals(element)) {
    postRemove(input);
    return;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None