parameters: (self, item)
docstring: Set data and view for current tree item.
docstring_summary: Set data and view for current tree item.
docstring_tokens: Set data and view for current tree item .
function: def setData(self, item):
          '''Set data and view for current tree item.'''
  
          self.item = item
          if item == view.tree.root:
              TRACE('setData: root node')
              self.container = None
              self.comp = Manager.rootComponent
              self.panels = view.panel.SetData(self.container, self.comp, Model.mainNode)
          else:
              node = view.tree.GetPyData(item)
              if node.nodeType != node.COMMENT_NODE:
                  TRACE('setData: %s', node.getAttribute('class'))
              self.comp = Manager.getNodeComp(node)
              parentItem = view.tree.GetItemParent(item)
              parentNode = view.tree.GetPyData(parentItem)
              if parentNode == Model.mainNode:
                  self.container = Manager.rootComponent
              else:
                  parentClass = parentNode.getAttribute('class')
                  self.container = Manager.components[parentClass]
              self.panels = view.panel.SetData(self.container, self.comp, node)
          # Create new pending undo
          self.createUndoEdit(self.item)
  
          if view.testWin.IsShown():
              self.highlight(item)
function_tokens: def setData ( self , item ) : self . item = item if item == view . tree . root : TRACE ( 'setData: root node' ) self . container = None self . comp = Manager . rootComponent self . panels = view . panel . SetData ( self . container , self . comp , Model . mainNode ) else : node = view . tree . GetPyData ( item ) if node . nodeType != node . COMMENT_NODE : TRACE ( 'setData: %s' , node . getAttribute ( 'class' ) ) self . comp = Manager . getNodeComp ( node ) parentItem = view . tree . GetItemParent ( item ) parentNode = view . tree . GetPyData ( parentItem ) if parentNode == Model . mainNode : self . container = Manager . rootComponent else : parentClass = parentNode . getAttribute ( 'class' ) self . container = Manager . components [ parentClass ] self . panels = view . panel . SetData ( self . container , self . comp , node ) # Create new pending undo self . createUndoEdit ( self . item ) if view . testWin . IsShown ( ) : self . highlight ( item )