CloneSet3024


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113315
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionAssistant.java
213280
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/PropertiesFileCorrectionAssistant.java
Clone Instance
1
Line Count
13
Source Line
315
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/JavaCorrectionAssistant.java

        private void restorePosition() {
                if (fPosition != null && !fPosition.isDeleted() && fViewer.getDocument() != null) {
                        fViewer.setSelectedRange(fPosition.offset, fPosition.length);
                        fViewer.revealRange(fPosition.offset, fPosition.length);
                }
                fPosition = null;
        }

        /**
         * Returns true if the last invoked completion was called with an updated offset.
         */
        public boolean isUpdatedOffset() {
                return fPosition != null;
        }


Clone Instance
2
Line Count
13
Source Line
280
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/PropertiesFileCorrectionAssistant.java

        private void restorePosition() {
                if (fPosition != null && !fPosition.isDeleted() && fViewer.getDocument() != null) {
                        fViewer.setSelectedRange(fPosition.offset, fPosition.length);
                        fViewer.revealRange(fPosition.offset, fPosition.length);
                }
                fPosition = null;
        }

        /**
         * Returns true if the last invoked completion was called with an updated offset.
         */
        public boolean isUpdatedOffset() {
                return fPosition != null;
        }


Clone AbstractionParameter Count: 0Parameter Bindings

private void restorePosition() {
  if (fPosition != null && !fPosition.isDeleted() && fViewer.getDocument() != null) {
    fViewer.setSelectedRange(fPosition.offset, fPosition.length);
    fViewer.revealRange(fPosition.offset, fPosition.length);
  }
  fPosition = null;
}

/**
         * Returns true if the last invoked completion was called with an updated offset.
         */
public boolean isUpdatedOffset() {
  return fPosition != null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None