code: public void setMapping(SQLPPTriplesMap mapping) {
  		this.mapping = mapping;
  
  		cmdInsertMapping.setText("Update");
  		txtMappingID.setText(mapping.getId());
  
  		OBDASQLQuery sourceQuery = mapping.getSourceQuery();
  		String srcQuery = SourceQueryRenderer.encode(sourceQuery);
  		txtSourceQuery.setText(srcQuery);
  
  		ImmutableList<TargetAtom> targetQuery = mapping.getTargetAtoms();
  		String trgQuery = TargetQueryRenderer.encode(targetQuery, prefixManager);
  		txtTargetQuery.setText(trgQuery);
  	}
docs: *
  Sets the current mapping to the input. Note, if the current mapping is
  set, this means that this dialog is "updating" a mapping, and not
  creating a new one.