CloneSet1250


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

        private static void configureDisplayProcessor(ContentAssistant assistant, IPreferenceStore store) {
                JavaDebugContentAssistProcessor dcp = getDisplayProcessor(assistant);
                if (dcp == null) {
                        return;
                }
                String triggers = store.getString(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA);
                if (triggers != null) {
                        dcp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
                }

                boolean enabled = store.getBoolean(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS);
                restrictProposalsToVisibility(enabled);

                enabled = store.getBoolean(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY);
                restrictProposalsToMatchingCases(enabled);

                enabled = store.getBoolean(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS);
                dcp.orderProposalsAlphabetically(enabled);
        }


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

        private static void configureJavaSnippetProcessor(ContentAssistant assistant, IPreferenceStore store) {
                JavaSnippetCompletionProcessor cp = getJavaSnippetProcessor(assistant);
                if (cp == null) {
                        return;
                }

                String triggers = store.getString(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA);
                if (triggers != null) {
                        cp.setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
                }

                boolean enabled = store.getBoolean(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS);
                restrictProposalsToVisibility(enabled);

                enabled = store.getBoolean(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY);
                restrictProposalsToMatchingCases(enabled);

                enabled = store.getBoolean(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS);
                cp.orderProposalsAlphabetically(enabled);
        }


Clone AbstractionParameter Count: 4Parameter Bindings

private static void [[#variable52ac0d20]](ContentAssistant assistant, IPreferenceStore store) {
   [[#variable52ac0cc0]]  [[#variable52ac0c60]]= [[#variable52ac0c00]](assistant);
  if ( [[#variable52ac0c60]]== null) {
    return;
  }
  String triggers = store.getString(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA);
  if (triggers != null) {
     [[#variable52ac0c60]].setCompletionProposalAutoActivationCharacters(triggers.toCharArray());
  }
  boolean enabled = store.getBoolean(PreferenceConstants.CODEASSIST_SHOW_VISIBLE_PROPOSALS);
  restrictProposalsToVisibility(enabled);
  enabled = store.getBoolean(PreferenceConstants.CODEASSIST_CASE_SENSITIVITY);
  restrictProposalsToMatchingCases(enabled);
  enabled = store.getBoolean(PreferenceConstants.CODEASSIST_ORDER_PROPOSALS);
   [[#variable52ac0c60]].orderProposalsAlphabetically(enabled);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#52ac0d20]]
configureDisplayProcessor 
12[[#52ac0d20]]
configureJavaSnippetProcessor 
21[[#52ac0cc0]]
JavaDebugContentAssistProcessor 
22[[#52ac0cc0]]
JavaSnippetCompletionProcessor 
31[[#52ac0c60]]
dcp 
32[[#52ac0c60]]
cp 
41[[#52ac0c00]]
getDisplayProcessor 
42[[#52ac0c00]]
getJavaSnippetProcessor