1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 11:35:35 +03:00
vimr/VimR/OpenQuicklyWindowManager.swift

29 lines
750 B
Swift
Raw Normal View History

/**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
import Cocoa
import RxSwift
class OpenQuicklyWindowManager: StandardFlow {
2016-09-01 21:10:40 +03:00
private let openQuicklyWindow: OpenQuicklyWindowComponent
private let fileItemService: FileItemService
init(source: Observable<Any>, fileItemService: FileItemService) {
self.fileItemService = fileItemService
self.openQuicklyWindow = OpenQuicklyWindowComponent(source: source, fileItemService: fileItemService)
2016-09-01 21:10:40 +03:00
super.init(source: source)
}
func open(forMainWindow mainWindow: MainWindowComponent) {
2016-09-03 00:35:18 +03:00
self.openQuicklyWindow.show(forMainWindow: mainWindow)
2016-09-01 21:10:40 +03:00
}
override func subscription(source source: Observable<Any>) -> Disposable {
return NopDisposable.instance
}
}