CloneSet677


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27201.000class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
127135
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java
22798
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java
Clone Instance
1
Line Count
27
Source Line
135
Source File
plugins/org.eclipse.jdt.apt.ui/src/org/eclipse/jdt/apt/ui/internal/preferences/BaseConfigurationBlock.java

                public String getStoredValue(IScopeContext context, IWorkingCopyManager manager) {
                        return getNode(context, manager).get(fKey, null);
                }

                public String getStoredValue(IScopeContext[] lookupOrder, boolean ignoreTopScope, IWorkingCopyManager manager) {
                        for (int i = ignoreTopScope ? 1:  0; i < lookupOrder.length; i++) {
                                String value = getStoredValue(lookupOrder[i], manager);
                                if (value != null) {
                                        return value;
                                }
                        }
                        return null;
                }

                public void setStoredValue(IScopeContext context, String value, IWorkingCopyManager manager) {
                        if (value != null) {
                                getNode(context, manager).put(fKey, value);
                        }
                        else   {
                                getNode(context, manager).remove(fKey);
                        }
                }

                /* (non-Javadoc)
                 * @see java.lang.Object#toString()
                 */
                public String toString() {
                        return fQualifier + '/' + fKey;
                }


Clone Instance
2
Line Count
27
Source Line
98
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/OptionsConfigurationBlock.java

                public String getStoredValue(IScopeContext context, IWorkingCopyManager manager) {
                        return getNode(context, manager).get(fKey, null);
                }

                public String getStoredValue(IScopeContext[] lookupOrder, boolean ignoreTopScope, IWorkingCopyManager manager) {
                        for (int i = ignoreTopScope ? 1:  0; i < lookupOrder.length; i++) {
                                String value = getStoredValue(lookupOrder[i], manager);
                                if (value != null) {
                                        return value;
                                }
                        }
                        return null;
                }

                public void setStoredValue(IScopeContext context, String value, IWorkingCopyManager manager) {
                        if (value != null) {
                                getNode(context, manager).put(fKey, value);
                        }
                        else   {
                                getNode(context, manager).remove(fKey);
                        }
                }

                /* (non-Javadoc)
                 * @see java.lang.Object#toString()
                 */
                public String toString() {
                        return fQualifier + '/' + fKey;
                }


Clone AbstractionParameter Count: 0Parameter Bindings

public String getStoredValue(IScopeContext context, IWorkingCopyManager manager) {
  return getNode(context, manager).get(fKey, null);
}

public String getStoredValue(IScopeContext[] lookupOrder, boolean ignoreTopScope, IWorkingCopyManager manager) {
  for (int i = ignoreTopScope ? 1: 0; i < lookupOrder.length; i++) {
    String value = getStoredValue(lookupOrder[i], manager);
    if (value != null) {
      return value;
    }
  }
  return null;
}

public void setStoredValue(IScopeContext context, String value, IWorkingCopyManager manager) {
  if (value != null) {
    getNode(context, manager).put(fKey, value);
  }
  else {
    getNode(context, manager).remove(fKey);
  }
}

/* (non-Javadoc)
                 * @see java.lang.Object#toString()
                 */
public String toString() {
  return fQualifier + '/' + fKey;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None