CloneSet5027


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9230.979class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19253
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
29270
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
Clone Instance
1
Line Count
9
Source Line
253
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java

                /**
                 * Installs this selection changed listener with the given selection provider. If
                 * the selection provider is a post selection provider, post selection changed
                 * events are the preferred choice, otherwise normal selection changed events
                 * are requested.
                 *
                 * @param selectionProvider
                 */
                public void install(ISelectionProvider selectionProvider) {
                        if (selectionProvider == null)
                                return;

                        if (selectionProvider instanceof IPostSelectionProvider)  {
                                IPostSelectionProvider provider = (IPostSelectionProvider) selectionProvider;
                                provider.addPostSelectionChangedListener(this );
                        }
                        else    {
                                selectionProvider.addSelectionChangedListener(this );
                        }
                }


Clone Instance
2
Line Count
9
Source Line
270
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java

                /**
                 * Removes this selection changed listener from the given selection provider.
                 *
                 * @param selectionProvider the selection provider
                 */
                public void uninstall(ISelectionProvider selectionProvider) {
                        if (selectionProvider == null)
                                return;

                        if (selectionProvider instanceof IPostSelectionProvider)  {
                                IPostSelectionProvider provider = (IPostSelectionProvider) selectionProvider;
                                provider.removePostSelectionChangedListener(this );
                        }
                        else    {
                                selectionProvider.removeSelectionChangedListener(this );
                        }
                }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
                 * Installs this selection changed listener with the given selection provider. If
                 * the selection provider is a post selection provider, post selection changed
                 * events are the preferred choice, otherwise normal selection changed events
                 * are requested.
                 *
                 * @param selectionProvider
                 */
/**
                 * Removes this selection changed listener from the given selection provider.
                 *
                 * @param selectionProvider the selection provider
                 */
public void [[#variable961d7900]](ISelectionProvider selectionProvider) {
  if (selectionProvider == null)
    return;
  if (selectionProvider instanceof IPostSelectionProvider) {
    IPostSelectionProvider provider = (IPostSelectionProvider) selectionProvider;
    provider. [[#variable961d7840]](this );
  }
  else {
    selectionProvider. [[#variable961d7760]](this );
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#961d7900]]
install 
12[[#961d7900]]
uninstall 
21[[#961d7840]]
addPostSelectionChangedListener 
22[[#961d7840]]
removePostSelectionChangedListener 
31[[#961d7760]]
addSelectionChangedListener 
32[[#961d7760]]
removeSelectionChangedListener