public boolean hasSourceChange() { if (hasStateChanged()) { return true; } if (fState == EXTERNALIZED) { if (!fInitialKey.equals(fKey)) { return true; // change of key } if (isAccessorRename()) { return true; } } else { if (!fInitialValue.equals(fValue)) { return true; // change of value } } return false; }
public boolean hasSourceChange() { if (hasStateChanged()) { return true; } if (fState == EXTERNALIZED) { if (!fInitialKey.equals(fKey)) { return true; // change of key } if (isAccessorRename()) { return true; } } else { if (!fInitialValue.equals(fValue)) { return true; // change of value } } return false; }
public boolean hasSourceChange() { if (hasStateChanged()) { return true; } if (fState == EXTERNALIZED) { if (!fInitialKey.equals(fKey)) { return true; // change of key } if (isAccessorRename()) { return true; } } else { if (!fInitialValue.equals(fValue)) { return true; // change of value } } return false; }
private String createStaticFields() { HashSet<String> added= new HashSet<>(); List<NLSSubstitution> subs= new ArrayList<>(); for (int i= 0; i < fNLSSubstitutions.length; i++) { NLSSubstitution substitution= fNLSSubstitutions[i]; int newState= substitution.getState(); if ((substitution.hasStateChanged() || substitution.isAccessorRename())&& newState == NLSSubstitution.EXTERNALIZED) { if (added.add(substitution.getKey())) subs.add(substitution); } } Collections.sort(subs, new Comparator<NLSSubstitution>() { private Collator fCollator= Collator.getInstance(); @Override public int compare(NLSSubstitution s0, NLSSubstitution s1) { return fCollator.compare(s0.getKey(), s1.getKey()); } }); StringBuffer buf= new StringBuffer(); for (Iterator<NLSSubstitution> iter= subs.iterator(); iter.hasNext();) { NLSSubstitution element= iter.next(); appendStaticField(buf, element); } return buf.toString(); }
private String createStaticFields() { HashSet<String> added= new HashSet<>(); List<NLSSubstitution> subs= new ArrayList<>(); for (int i= 0; i < fNLSSubstitutions.length; i++) { NLSSubstitution substitution= fNLSSubstitutions[i]; int newState= substitution.getState(); if ((substitution.hasStateChanged() || substitution.isAccessorRename())&& newState == NLSSubstitution.EXTERNALIZED) { if (added.add(substitution.getKey())) subs.add(substitution); } } Collections.sort(subs, new Comparator<NLSSubstitution>() { private Collator fCollator= Collator.getInstance(); @Override public int compare(NLSSubstitution s0, NLSSubstitution s1) { return fCollator.compare(s0.getKey(), s1.getKey()); } }); StringBuilder buf= new StringBuilder(); for (Iterator<NLSSubstitution> iter= subs.iterator(); iter.hasNext();) { NLSSubstitution element= iter.next(); appendStaticField(buf, element); } return buf.toString(); }
private String createStaticFields(String lineDelim) { HashSet added= new HashSet(); List subs= new ArrayList(); for (int i= 0; i < fNLSSubstitutions.length; i++) { NLSSubstitution substitution= fNLSSubstitutions[i]; int newState= substitution.getState(); if ((substitution.hasStateChanged() || substitution.isAccessorRename())&& newState == NLSSubstitution.EXTERNALIZED) { if (added.add(substitution.getKey())) subs.add(substitution); } } Collections.sort(subs, new Comparator() { private Collator fCollator= Collator.getInstance(); public int compare(Object o1, Object o2) { NLSSubstitution s0= (NLSSubstitution)o1; NLSSubstitution s1= (NLSSubstitution)o2; return fCollator.compare(s0.getKey(), s1.getKey()); } }); StringBuffer buf= new StringBuffer(); for (Iterator iter= subs.iterator(); iter.hasNext();) { NLSSubstitution element= (NLSSubstitution)iter.next(); appendStaticField(buf, element); } return buf.toString(); }
sourceModification.replaceKey(substitution, change); if (substitution.isAccessorRename()) { sourceModification.replaceAccessor(substitution, change);
sourceModification.replaceKey(substitution, change); if (substitution.isAccessorRename()) { sourceModification.replaceAccessor(substitution, change);
sourceModification.replaceKey(substitution, change); if (substitution.isAccessorRename()) { sourceModification.replaceAccessor(substitution, change);