CloneSet2257


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10220.992class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
110162
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ExperimentalProposal.java
210279
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ParameterGuessingProposal.java
Clone Instance
1
Line Count
10
Source Line
162
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ExperimentalProposal.java

        /*
         * @see ICompletionProposal#getSelection(IDocument)
         */
        public Point getSelection(IDocument document) {
                if (fSelectedRegion == null)
                        return new Point(getReplacementOffset(), 0);

                return new Point(fSelectedRegion.getOffset(), fSelectedRegion.getLength());
        }

        private void openErrorDialog(BadLocationException e) {
                Shell shell = getTextViewer().getTextWidget().getShell();
                MessageDialog.openError(shell, JavaTextMessages.ExperimentalProposal_error_msg, e.getMessage());
        }


Clone Instance
2
Line Count
10
Source Line
279
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ParameterGuessingProposal.java

        /*
         * @see ICompletionProposal#getSelection(IDocument)
         */
        public Point getSelection(IDocument document) {
                if (fSelectedRegion == null)
                        return new Point(getReplacementOffset(), 0);

                return new Point(fSelectedRegion.getOffset(), fSelectedRegion.getLength());
        }

        private void openErrorDialog(Exception e) {
                Shell shell = getTextViewer().getTextWidget().getShell();
                MessageDialog.openError(shell, JavaTextMessages.ParameterGuessingProposal_error_msg, e.getMessage());
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/*
         * @see ICompletionProposal#getSelection(IDocument)
         */
public Point getSelection(IDocument document) {
  if (fSelectedRegion == null)
    return new Point(getReplacementOffset(), 0);
  return new Point(fSelectedRegion.getOffset(), fSelectedRegion.getLength());
}

private void openErrorDialog( [[#variable594e9d60]] e) {
  Shell shell = getTextViewer().getTextWidget().getShell();
  MessageDialog.openError(shell, JavaTextMessages. [[#variable51f96940]], e.getMessage());
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#594e9d60]]
BadLocationException 
12[[#594e9d60]]
Exception 
21[[#51f96940]]
ExperimentalProposal_error_msg 
22[[#51f96940]]
ParameterGuessingProposal_error_msg