#NEWLINE# def __init__( self , window = None , on_done = None , on_cancel = None ) : #NEWLINE# #INDENT# '\n        @param window: window to open panel\n        @param on_done: a callback function which will receive Python object\n            converted from JSON data when panel is saved\n        @param on_cancel: a callback function which will be called when\n            panel is closed\n        ' #NEWLINE# self . window = window #NEWLINE# if ( self . window is None ) : #NEWLINE# #INDENT# self . window = sublime . active_window ( ) #NEWLINE# #UNINDENT# self . on_done = on_done #NEWLINE# self . on_cancel = on_cancel