CloneSet2001


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19210.982class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119215
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.java
21952
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaCompletionProcessor.java
Clone Instance
1
Line Count
19
Source Line
215
Source File
plugins/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIContentAssistPreference.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
        }


Clone Instance
2
Line Count
19
Source Line
52
Source File
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
         */
        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
        }


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#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 
12[[#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