 class IDE.MachineStateModal extends IDE.ModalView
+
+  {
+    Stopped, Running, NotInitialized, Terminated, Unknown,
+    Starting, Building, Stopping, Rebooting, Terminating
+  } = Machine.State
 
   constructor: (options = {}, data) ->
 


    @createStateLabel()

    if @state in ['Stopped', 'Running', 'NotInitialized', 'Terminated', 'Unknown']
      @createStateButton()
    else if @state in [ 'Starting', 'Building', 'Stopping' ]
      @createLoading()

    @createFooter()  unless @footer

      methodName   = 'start'
      nextState    = 'Starting'

      if @state in [ NotInitialized, Terminated, Unknown ]
        methodName = 'build'
        nextState  = 'Building'

