CloneSet1887


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
10310.995class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1101173
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
210174
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaStringAutoIndentStrategy.java
310360
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocAutoIndentStrategy.java
Clone Instance
1
Line Count
10
Source Line
1173
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java

        private boolean computeSmartMode() {
                IWorkbenchPage page = JavaPlugin.getActivePage();
                if (page != null)  {
                        IEditorPart part = page.getActiveEditor();
                        if (part instanceof ITextEditorExtension3) {
                                ITextEditorExtension3 extension = (ITextEditorExtension3) part;
                                return extension.getInsertMode() == ITextEditorExtension3.SMART_INSERT;
                        }
                }
                return false;
        }


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

        private boolean isSmartMode() {
                IWorkbenchPage page = JavaPlugin.getActivePage();
                if (page != null)  {
                        IEditorPart part = page.getActiveEditor();
                        if (part instanceof ITextEditorExtension3) {
                                ITextEditorExtension3 extension = (ITextEditorExtension3) part;
                                return extension.getInsertMode() == ITextEditorExtension3.SMART_INSERT;
                        }
                }
                return false;
        }


Clone Instance
3
Line Count
10
Source Line
360
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDocAutoIndentStrategy.java

        private boolean isSmartMode() {
                IWorkbenchPage page = JavaPlugin.getActivePage();
                if (page != null)  {
                        IEditorPart part = page.getActiveEditor();
                        if (part instanceof ITextEditorExtension3) {
                                ITextEditorExtension3 extension = (ITextEditorExtension3) part;
                                return extension.getInsertMode() == ITextEditorExtension3.SMART_INSERT;
                        }
                }
                return false;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

private boolean  [[#variableb931cec0]]() {
  IWorkbenchPage page = JavaPlugin.getActivePage();
  if (page != null) {
    IEditorPart part = page.getActiveEditor();
    if (part instanceof ITextEditorExtension3) {
      ITextEditorExtension3 extension = (ITextEditorExtension3) part;
      return extension.getInsertMode() == ITextEditorExtension3.SMART_INSERT;
    }
  }
  return false;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b931cec0]]
isSmartMode 
12[[#b931cec0]]
computeSmartMode 
13[[#b931cec0]]
isSmartMode