String encodeValueAsString = PropertyTypeSupport.encodeValueAsString(newRow.getValue(), type);
if (type!=PropertyType.STRING && type!=PropertyType.NAME) {
encodeValueAsString = "{"+PropertyType.nameFromValue(type)+"}"+encodeValueAsString;
}
final String propertyName = String.valueOf(newRow.getName());
jcrNode.addProperty(propertyName, encodeValueAsString);
view.refreshContent();
} else {
tableViewer.update(newRow, null);
}
}