Moved a method to here from the dataEditor