 
     return menuItems
 
+  handleContextMenuClick: (callback= noop) ->
+    callback()
+    @contextMenu?.destroy()
+
   pistachio: ->
     """
       {{> @domainName}}

          title : "Couldn't fetch your VMs"
          type  : 'mini'

      vms.sort (a,b) ->
        return a.hostnameAlias > b.hostnameAlias

      for vm in vms
        @addSubView new VMPaneListItem {}, vm

    KD.getSingleton('appManager').tell 'IDE', 'openVMWebPage', @getData()

  createContextMenu: (event) ->
    button         = @actionsButton
    @contextMenu   = new KDContextMenu
      cssClass     : 'environments'
      event        : event
      delegate     : this
