public void saveChangesTo(IDocument document) { for (Iterator<Entry<String,String>> iter = changesToSave.entrySet().iterator(); iter.hasNext();) { Entry<String,String> entry = iter.next(); iter.remove(); String propertyName = entry.getKey(); String stringValue = entry.getValue(); updateDocument(document, propertyName, stringValue); } }
public void saveChangesTo(IDocument document) { for (Iterator<Entry<String,String>> iter = changesToSave.entrySet().iterator(); iter.hasNext();) { Entry<String,String> entry = iter.next(); String propertyName = entry.getKey(); String stringValue = entry.getValue(); updateDocument(document, propertyName, stringValue); // // Ensure that properties keeps reflecting the current document // value // String value = cleanup(stringValue); if (value == null) value = ""; if (propertyName != null) properties.setProperty(propertyName, value); iter.remove(); } }
public void saveChangesTo(IDocument document) { for (Iterator<Entry<String, String>> iter = changesToSave.entrySet() .iterator(); iter.hasNext();) { Entry<String, String> entry = iter.next(); String propertyName = entry.getKey(); String stringValue = entry.getValue(); updateDocument(document, propertyName, stringValue); // // Ensure that properties keeps reflecting the current document // value // String value = cleanup(stringValue); if (value == null) value = ""; if (propertyName != null) properties.setProperty(propertyName, value); iter.remove(); } }
public void saveChangesTo(IDocument document) { for (Iterator<Entry<String,String>> iter = changesToSave.entrySet().iterator(); iter.hasNext();) { Entry<String,String> entry = iter.next(); String propertyName = entry.getKey(); String stringValue = entry.getValue(); updateDocument(document, propertyName, stringValue); // // Ensure that properties keeps reflecting the current document // value // String value = cleanup(stringValue); if (value == null) value = ""; if (propertyName != null) properties.setProperty(propertyName, value); iter.remove(); } }
public void saveChangesTo(IDocument document) { for (Iterator<Entry<String, String>> iter = changesToSave.entrySet() .iterator(); iter.hasNext();) { Entry<String, String> entry = iter.next(); String propertyName = entry.getKey(); String stringValue = entry.getValue(); updateDocument(document, propertyName, stringValue); // // Ensure that properties keeps reflecting the current document // value // String value = cleanup(stringValue); if (value == null) value = ""; if (propertyName != null) properties.setProperty(propertyName, value); iter.remove(); } }