CloneSet2078


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
28220.993class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12858
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/search/NLSSearchResultPage.java
22860
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/OccurrencesSearchResultPage.java
Clone Instance
1
Line Count
28
Source Line
58
Source File
plugins/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/search/NLSSearchResultPage.java

        /*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#elementsChanged(java.lang.Object[])
         */
        protected void elementsChanged(Object[] objects) {
                if (fContentProvider != null)
                        fContentProvider.elementsChanged(objects);
        }

        /*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#clear()
         */
        protected void clear() {
                if (fContentProvider != null)
                        fContentProvider.clear();
        }

        /*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#configureTreeViewer(org.eclipse.jface.viewers.TreeViewer)
         */
        protected void configureTreeViewer(TreeViewer viewer) {
                throw new IllegalStateException("Doesn\'t support tree mode."); //$NON-NLS-1$
        }

        /*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#configureTableViewer(org.eclipse.jface.viewers.TableViewer)
         */
        protected void configureTableViewer(TableViewer viewer) {
                viewer.setSorter(new NLSSorter());
                viewer.setLabelProvider(new NLSSearchResultLabelProvider2(this ));
                fContentProvider = new TextSearchTableContentProvider();
                viewer.setContentProvider(fContentProvider);
        }


Clone Instance
2
Line Count
28
Source Line
60
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/OccurrencesSearchResultPage.java

        /*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#elementsChanged(java.lang.Object[])
         */
        protected void elementsChanged(Object[] objects) {
                if (fContentProvider != null)
                        fContentProvider.elementsChanged(objects);
        }

        /*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#clear()
         */
        protected void clear() {
                if (fContentProvider != null)
                        fContentProvider.clear();
        }

        /*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#configureTreeViewer(org.eclipse.jface.viewers.TreeViewer)
         */
        protected void configureTreeViewer(TreeViewer viewer) {
                throw new IllegalStateException("Doesn\'t support tree mode."); //$NON-NLS-1$
        }

        /*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#configureTableViewer(org.eclipse.jface.viewers.TableViewer)
         */
        protected void configureTableViewer(TableViewer viewer) {
                viewer.setSorter(new JavaElementLineSorter());
                viewer.setLabelProvider(new OccurrencesSearchLabelProvider(this ));
                fContentProvider = new TextSearchTableContentProvider();
                viewer.setContentProvider(fContentProvider);
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#elementsChanged(java.lang.Object[])
         */
protected void elementsChanged(Object[] objects) {
  if (fContentProvider != null)
    fContentProvider.elementsChanged(objects);
}

/*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#clear()
         */
protected void clear() {
  if (fContentProvider != null)
    fContentProvider.clear();
}

/*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#configureTreeViewer(org.eclipse.jface.viewers.TreeViewer)
         */
protected void configureTreeViewer(TreeViewer viewer) {
  throw new IllegalStateException("Doesn\'t support tree mode."); //$NON-NLS-1$
}

/*
         * @see org.eclipse.search.ui.text.AbstractTextSearchViewPage#configureTableViewer(org.eclipse.jface.viewers.TableViewer)
         */
protected void configureTableViewer(TableViewer viewer) {
  viewer.setSorter(new [[#variable8fda01c0]]());
  viewer.setLabelProvider(new [[#variable8fda0800]](this ));
  fContentProvider = new TextSearchTableContentProvider();
  viewer.setContentProvider(fContentProvider);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#8fda01c0]]
NLSSorter 
12[[#8fda01c0]]
JavaElementLineSorter 
21[[#8fda0800]]
NLSSearchResultLabelProvider2 
22[[#8fda0800]]
OccurrencesSearchLabelProvider