def initialize(): # this is called when WB finishes initializing itself # register ourselves for when SQL Editor tabs are opened nc = NotificationCenter() nc.add_observer(attachToSQLEditor, name = "GRNSQLEditorOpened") nc.add_observer(handleReconnect, name = "GRNSQLEditorReconnected") return 1
def initialize(): # this is called when WB finishes initializing itself # register ourselves for when SQL Editor tabs are opened nc = NotificationCenter() nc.add_observer(attachToSQLEditor, name="GRNSQLEditorOpened") nc.add_observer(handleReconnect, name="GRNSQLEditorReconnected") return 1
def initialize0(): nc = NotificationCenter() nc.add_observer(handleResultsetContextMenu, name = "GRNSQLResultsetMenuWillShow") sqlide_schematree_ext.init() # register a handler for when the SQLIDE live schema tree context menu is about to be shown nc.add_observer(sqlide_schematree_ext.handleLiveTreeContextMenu, name = "GRNLiveDBObjectMenuWillShow") # must be 1st nc.add_observer(sqlide_catalogman_ext.handleLiveTreeContextMenu, name = "GRNLiveDBObjectMenuWillShow")