def METHOD_NAME(self, vobj, mode):
    # EditMode 1 and 2 are handled by the Part::FeaturePython code.
    # EditMode 3 (Color) does not make sense for hatches (which do not
    # have faces) and we let that default to EditMode 0.
    if mode == 1 or mode == 2:
        return None
    taskd = Draft_Hatch_TaskPanel(vobj.Object)
    taskd.form.File.setFileName(vobj.Object.File)
    taskd.form.Pattern.setCurrentText(vobj.Object.Pattern)
    taskd.form.Scale.setValue(vobj.Object.Scale)
    taskd.form.Rotation.setValue(vobj.Object.Rotation)
    Gui.Control.showDialog(taskd)
    return True