CloneSet1414


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13240.980class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113138
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java
213154
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java
Clone Instance
1
Line Count
13
Source Line
138
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java

        private static void changeDisplayProcessor(ContentAssistant assistant, IPreferenceStore store, String key) {
                JavaDebugContentAssistProcessor dcp = getDisplayProcessor(assistant);
                if (dcp == null) {
                        return;
                }
                if (PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA.equals(key)) {
                        String triggers = store.getString(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA);
                        if (triggers != null) {
                                dcp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
                        }
                }
                else   if (PreferenceConstants.CODEASSIST_ORDER_PROPOSALS.equals(key)) {
                        boolean enable = store.getBoolean(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS);
                        dcp.orderProposalsAlphabetically(enable);
                       }
        }


Clone Instance
2
Line Count
13
Source Line
154
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java

        private static void changeJavaSnippetProcessor(ContentAssistant assistant, IPreferenceStore store, String key) {
                JavaSnippetCompletionProcessor cp = getJavaSnippetProcessor(assistant);
                if (cp == null) {
                        return;
                }
                if (PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA.equals(key)) {
                        String triggers = store.getString(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA);
                        if (triggers != null) {
                                cp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
                        }
                }
                else   if (PreferenceConstants.CODEASSIST_ORDER_PROPOSALS.equals(key)) {
                        boolean enable = store.getBoolean(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS);
                        cp.orderProposalsAlphabetically(enable);
                       }
        }


Clone AbstractionParameter Count: 4Parameter Bindings

private static void [[#variablea0666c80]](ContentAssistant assistant, IPreferenceStore store, String key) {
   [[#variablea0666bc0]]  [[#variablea0666b40]]= [[#variablea0666ae0]](assistant);
  if ( [[#variablea0666b40]]== null) {
    return;
  }
  if (PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA.equals(key)) {
    String triggers = store.getString(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA);
    if (triggers != null) {
       [[#variablea0666b40]].setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
    }
  }
  else
    if (PreferenceConstants.CODEASSIST_ORDER_PROPOSALS.equals(key)) {
      boolean enable = store.getBoolean(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS);
       [[#variablea0666b40]].orderProposalsAlphabetically(enable);
    }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a0666c80]]
changeDisplayProcessor 
12[[#a0666c80]]
changeJavaSnippetProcessor 
21[[#a0666bc0]]
JavaDebugContentAssistProcessor 
22[[#a0666bc0]]
JavaSnippetCompletionProcessor 
31[[#a0666b40]]
dcp 
32[[#a0666b40]]
cp 
41[[#a0666ae0]]
getDisplayProcessor 
42[[#a0666ae0]]
getJavaSnippetProcessor