parameters: (self,vobj,menu)
docstring: Add the component specific options to the context menu.
  
          The context menu is the drop down menu that opens when the user right
          clicks on the component in the tree view.
  
          Add a menu choice to call the Arch_ToggleSubs Gui command. See
          ArchCommands._ToggleSubs
  
          Parameters
          ----------
          vobj: <Gui.ViewProviderDocumentObject>
              The component's view provider object.
          menu: <PySide2.QtWidgets.QMenu>
              The context menu already assembled prior to this method being
              called.
docstring_summary: Add the component specific options to the context menu.
docstring_tokens: Add the component specific options to the context menu .
function: def setupContextMenu(self,vobj,menu):
          """Add the component specific options to the context menu.
  
          The context menu is the drop down menu that opens when the user right
          clicks on the component in the tree view.
  
          Add a menu choice to call the Arch_ToggleSubs Gui command. See
          ArchCommands._ToggleSubs
  
          Parameters
          ----------
          vobj: <Gui.ViewProviderDocumentObject>
              The component's view provider object.
          menu: <PySide2.QtWidgets.QMenu>
              The context menu already assembled prior to this method being
              called.
          """
  
          from PySide import QtCore,QtGui
          action1 = QtGui.QAction(QtGui.QIcon(":/icons/Arch_ToggleSubs.svg"),translate("Arch","Toggle subcomponents"),menu)
          QtCore.QObject.connect(action1,QtCore.SIGNAL("triggered()"),self.toggleSubcomponents)
          menu.addAction(action1)
function_tokens: def setupContextMenu ( self , vobj , menu ) : from PySide import QtCore , QtGui action1 = QtGui . QAction ( QtGui . QIcon ( ":/icons/Arch_ToggleSubs.svg" ) , translate ( "Arch" , "Toggle subcomponents" ) , menu ) QtCore . QObject . connect ( action1 , QtCore . SIGNAL ( "triggered()" ) , self . toggleSubcomponents ) menu . addAction ( action1 )