<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_data(self, data):

 """Set data."""

        if data != self.editor.model.get_data():
            self.editor.set_data(data)
            self.editor.adjust_columns()