Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 4 | 0.982 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 62 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java |
2 | 19 | 82 | 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); } |
| ||||
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); } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52ac0d20]] | configureDisplayProcessor |
1 | 2 | [[#52ac0d20]] | configureJavaSnippetProcessor |
2 | 1 | [[#52ac0cc0]] | JavaDebugContentAssistProcessor |
2 | 2 | [[#52ac0cc0]] | JavaSnippetCompletionProcessor |
3 | 1 | [[#52ac0c60]] | dcp |
3 | 2 | [[#52ac0c60]] | cp |
4 | 1 | [[#52ac0c00]] | getDisplayProcessor |
4 | 2 | [[#52ac0c00]] | getJavaSnippetProcessor |