         @emitStatusUpdate @lastEventBeforeDisabling
         @emitEnableDisableAllControls true
       else
-        if @currentStatusEvent.getStatus() != StatusFactory.getDisabledStatus()
+        if @currentStatusEvent.getStatus() != StatusUpdateEventFactory.getDisabledStatus()
           @lastEventBeforeDisabling = @currentStatusEvent
-        @emitStatusUpdate StatusFactory.createDisabled @isReplay
+        @emitStatusUpdate StatusUpdateEventFactory.createDisabled @isReplay
         @emitEnableDisableAllControls false
     return

  runToNextBreakpoint: ->
    if @isExecutableInDebuggingMode
      @emitStatusUpdate StatusFactory.createRunning @isReplay
      @socketChannel.sendMessage OutgoingMessageFactory.createRunToNextBreakpointMessage()
    return

  runToEndOfMethod: ->
    if @isExecutableInDebuggingMode
      @emitStatusUpdate StatusFactory.createRunning @isReplay
      @socketChannel.sendMessage OutgoingMessageFactory.createRunToEndOfMethodMessage()
    return


  setLevelsWorkspace: (workspace) ->
    levelsWorkspaceManager.attachWorkspace workspace
    workspace.onDidEnterWorkspace => @handleWorkspaceEntered()
    workspace.onDidExitWorkspace => @handleWorkspaceExited()

    @handleWorkspaceEntered()
    return

  startDebugging: ->
    if @saveDocument() && !@isExecutableInDebuggingMode
