Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 1 | 0.982 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 215 | plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java |
2 | 19 | 52 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProcessor.java |
| ||||
/** * Tells this processor to restrict its proposal to those element * visible in the actual invocation context. * * @param restrict <code>true</code> if proposals should be restricted */ private static void restrictProposalsToVisibility(boolean restrict) { Hashtable options = JavaCore.getOptions(); Object value = options.get(VISIBILITY); if (value instanceof String) { String newValue = restrict ? ENABLED: DISABLED; if ( !newValue.equals(value)) { options.put(VISIBILITY, newValue); JavaCore.setOptions(options); } } } /** * Tells this processor to restrict is proposals to those * starting with matching cases. * * @param restrict <code>true</code> if proposals should be restricted */ private static void restrictProposalsToMatchingCases(boolean restrict) { // XXX not yet supported } |
| ||||
/** * Tells this processor to restrict its proposal to those element * visible in the actual invocation context. * * @param restrict <code>true</code> if proposals should be restricted */ public void restrictProposalsToVisibility(boolean restrict) { Hashtable options = JavaCore.getOptions(); Object value = options.get(VISIBILITY); if (value instanceof String) { String newValue = restrict ? ENABLED: DISABLED; if ( !newValue.equals(value)) { options.put(VISIBILITY, newValue); JavaCore.setOptions(options); } } } /** * Tells this processor to restrict is proposals to those * starting with matching cases. * * @param restrict <code>true</code> if proposals should be restricted */ public void restrictProposalsToMatchingCases(boolean restrict) { // not yet supported } |
| |||
[[#variable52e85c60]]void restrictProposalsToVisibility(boolean restrict) { Hashtable options = JavaCore.getOptions(); Object value = options.get(VISIBILITY); if (value instanceof String) { String newValue = restrict ? ENABLED: DISABLED; if ( !newValue.equals(value)) { options.put(VISIBILITY, newValue); JavaCore.setOptions(options); } } } [[#variable52e85c60]]void restrictProposalsToMatchingCases(boolean restrict) { // XXX not yet supported // not yet supported } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#52e85c60]] | /** * Tells this processor to restrict its proposal to those element * visible in the actual invocation context. * * @param restrict <code>true</code> if proposals should be restricted */ private static |
1 | 2 | [[#52e85c60]] | /** * Tells this processor to restrict its proposal to those element * visible in the actual invocation context. * * @param restrict <code>true</code> if proposals should be restricted */ public |