Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
13 | 2 | 4 | 0.980 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 13 | 138 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java |
2 | 13 | 154 | 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); } } |
| ||||
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); } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a0666c80]] | changeDisplayProcessor |
1 | 2 | [[#a0666c80]] | changeJavaSnippetProcessor |
2 | 1 | [[#a0666bc0]] | JavaDebugContentAssistProcessor |
2 | 2 | [[#a0666bc0]] | JavaSnippetCompletionProcessor |
3 | 1 | [[#a0666b40]] | dcp |
3 | 2 | [[#a0666b40]] | cp |
4 | 1 | [[#a0666ae0]] | getDisplayProcessor |
4 | 2 | [[#a0666ae0]] | getJavaSnippetProcessor |