 Path = require 'path'
 fs = require 'fs-plus'
 
-{$, BufferedProcess, EditorView, View} = require 'atom'
+{BufferedProcess} = require 'atom'
+{$, TextEditorView, View} = require 'atom-space-pen-views'
 StatusView = require './status-view'
 git = require '../git'
 

          @button class: 'btn btn-error inline-block-tight gp-cancel-button', click: 'abort', 'Cancel'

  initialize: ->
    atom.workspaceView.append this
    @tagName.focus()
    @on 'core:cancel', => @abort()

  createTag: ->
    tag = name: @tagName.text().slice(2), message: @tagMessage.text().slice(2)
    new BufferedProcess
      command: 'git'
      args: ['tag', '-a', tag.name, '-m', tag.message]

  @content: ->
    @div class: 'overlay from-top', =>
      @div class: 'block', =>
        @subview 'tagName', new TextEditorView(mini: true, placeholderText: 'Tag')
      @div class: 'block', =>
        @subview 'tagMessage', new TextEditorView(mini: true, placeholderText: 'Annotation message')
      @div class: 'block', =>
        @span class: 'pull-left', =>
          @button class: 'btn btn-success inline-block-tight gp-confirm-button', click: 'createTag', 'Create Tag'
