parameters: (self)
docstring: loads the tool tables from the stored data
docstring_summary: loads the tool tables from the stored data
docstring_tokens: loads the tool tables from the stored data
function: def loadToolTables(self):
          """loads the tool tables from the stored data"""
          self.toolTables = []
          self.currentTableName = ""
  
          def addTable(tt):
              if tt:
                  self.toolTables.append(tt)
              else:
                  PathLog.error(
                      translate("PathToolLibraryManager", "Unsupported Path tooltable")
                  )
  
          prefString = self.prefs.GetString(self.PreferenceMainLibraryJSON, "")
  
          if not prefString:
              return
  
          prefsData = json.loads(prefString)
  
          if isinstance(prefsData, dict):
              tt = self.tooltableFromAttrs(prefsData)
              addTable(tt)
  
          if isinstance(prefsData, list):
              for table in prefsData:
                  tt = self.tooltableFromAttrs(table)
                  addTable(tt)
  
          if len(self.toolTables):
              self.currentTableName = self.toolTables[0].Name
function_tokens: def loadToolTables ( self ) : self . toolTables = [ ] self . currentTableName = "" def addTable ( tt ) : if tt : self . toolTables . append ( tt ) else : PathLog . error ( translate ( "PathToolLibraryManager" , "Unsupported Path tooltable" ) ) prefString = self . prefs . GetString ( self . PreferenceMainLibraryJSON , "" ) if not prefString : return prefsData = json . loads ( prefString ) if isinstance ( prefsData , dict ) : tt = self . tooltableFromAttrs ( prefsData ) addTable ( tt ) if isinstance ( prefsData , list ) : for table in prefsData : tt = self . tooltableFromAttrs ( table ) addTable ( tt ) if len ( self . toolTables ) : self . currentTableName = self . toolTables [ 0 ] . Name