         self.init(windowNibName: "Incident")
 
         self.dispatchQueueController = dispatchQueueController
+        self.incident = incident
     }
 
 

        if loadingIndicator               == nil { arghEvilDeath("loading indicator"                ) }
        if reloadButton                   == nil { arghEvilDeath("reload button"                    ) }

        reloadButton.hidden     = false
        loadingIndicator.hidden = true


    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }


    func updateView() {
        guard let incident = self.incident else {
            logError("Incident controller has no incident?")
            return
        }

        let numberToDisplay: String

        if let number = incident.number {
            numberToDisplay = "\(number)"
        } else {
            numberToDisplay = "(new)"
        }

        numberField?.stringValue = "\(numberToDisplay)"

        window?.title = "\(numberToDisplay): \(incident.summaryAsText)"

        let stateTag: IncidentStateTag

        if let state = incident.state {
            switch state {
            case .New       : stateTag = .New
            case .OnHold    : stateTag = .OnHold
            case .Dispatched: stateTag = .Dispatched
            case .OnScene   : stateTag = .OnScene
            case .Closed    : stateTag = .Closed
            }
        } else {
            stateTag = .New
        }

        statePopUp.selectItemWithTag(stateTag.rawValue)
    }


