CloneSet1400


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
24220.992class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
124382
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/CompletionProposalComputerDescriptor.java
224415
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/CompletionProposalComputerDescriptor.java
Clone Instance
1
Line Count
24
Source Line
382
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/CompletionProposalComputerDescriptor.java

        /**
         * Notifies the described extension of a proposal computation session start.
         * <p><em>
         * Note: This method is called every time code assist is invoked and
         * is <strong>not</strong> filtered by partition type.
         * </em></p>
         */
        public void sessionStarted() {
                if ( !isEnabled())
                        return;

                IStatus status;
                try {
                        IJavaCompletionProposalComputer computer = getComputer();
                        if (computer == null) // not active yet
                                return;

                        PerformanceStats stats = startMeter(SESSION_STARTED, computer);
                        computer.sessionStarted();
                        stopMeter(stats, SESSION_ENDED);

                        return;
                } catch (InvalidRegistryObjectException x) {
                        status = createExceptionStatus(x);
                  }
                  catch (CoreException x) {
                        status = createExceptionStatus(x);
                  }
                  catch (RuntimeException x) {
                        status = createExceptionStatus(x);
                  }
                fRegistry.informUser(this, status);
        }


Clone Instance
2
Line Count
24
Source Line
415
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/CompletionProposalComputerDescriptor.java

        /**
         * Notifies the described extension of a proposal computation session end.
         * <p><em>
         * Note: This method is called every time code assist is invoked and
         * is <strong>not</strong> filtered by partition type.
         * </em></p>
         */
        public void sessionEnded() {
                if ( !isEnabled())
                        return;

                IStatus status;
                try {
                        IJavaCompletionProposalComputer computer = getComputer();
                        if (computer == null) // not active yet
                                return;

                        PerformanceStats stats = startMeter(SESSION_ENDED, computer);
                        computer.sessionEnded();
                        stopMeter(stats, SESSION_ENDED);

                        return;
                } catch (InvalidRegistryObjectException x) {
                        status = createExceptionStatus(x);
                  }
                  catch (CoreException x) {
                        status = createExceptionStatus(x);
                  }
                  catch (RuntimeException x) {
                        status = createExceptionStatus(x);
                  }
                fRegistry.informUser(this, status);
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * Notifies the described extension of a proposal computation session start.
         * <p><em>
         * Note: This method is called every time code assist is invoked and
         * is <strong>not</strong> filtered by partition type.
         * </em></p>
         */
/**
         * Notifies the described extension of a proposal computation session end.
         * <p><em>
         * Note: This method is called every time code assist is invoked and
         * is <strong>not</strong> filtered by partition type.
         * </em></p>
         */
public void [[#variable9687ec80]]() {
  if ( !isEnabled())
    return;
  IStatus status;
  try {
    IJavaCompletionProposalComputer computer = getComputer();
    if (computer == null) // not active yet
      return;
    PerformanceStats stats = startMeter( [[#variable9687ec20]], computer);
    computer. [[#variable9687ec80]]();
    stopMeter(stats, SESSION_ENDED);
    return;
  }
  catch (InvalidRegistryObjectException x) {
    status = createExceptionStatus(x);
  }
  catch (CoreException x) {
    status = createExceptionStatus(x);
  }
  catch (RuntimeException x) {
    status = createExceptionStatus(x);
  }
  fRegistry.informUser(this, status);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9687ec80]]
sessionStarted 
12[[#9687ec80]]
sessionEnded 
21[[#9687ec20]]
SESSION_STARTED 
22[[#9687ec20]]
SESSION_ENDED