if (hasDefaultValue()) templateInstance.removeProperty(macro.getName()); else if (!templateInstance.properties.containsKey(macro.getName())) templateInstance.addProperty(macro.getName(), newValue); else templateInstance.getProperties().put(macro.getName(), newValue);
updateProperty();
public void setValue(java.lang.String newValue) {	// buffer value	super.setValue(newValue);	// mapping to properties 	if (hasDefaultValue())		templateInstance.removeProperty(macro.getName());	else if (!templateInstance.properties.containsKey(macro.getName()))		templateInstance.addProperty(macro.getName(), newValue);	else		templateInstance.getProperties().put(macro.getName(), newValue);	// field changed	Template visualTemplate = (Template)Group.getRoot().findObject(templateInstance.getName(), true);	if (visualTemplate!=null)	{		if (visualTemplate.manageLink(this)) {			visualTemplate.unconditionalValidation();			com.cosylab.vdct.events.CommandManager.getInstance().execute("RepaintWorkspace");		}		InspectorManager.getInstance().updateProperty(visualTemplate, this);	}}