         @div class: 'form-row clearfix', =>
           @label '应用创建位置', class: 'row-title pull-left'
           @div class: 'row-content pull-left', =>
-            @subview 'appPath', new TextEditorView(mini: true)
+            # @subview 'appPath', new TextEditorView(mini: true)
+            @div class: 'textEditStyle',outlet: 'appPath'
             @span class: 'inline-block status-added icon icon-file-directory openFolder', click: 'openFolder'
         @div class: 'form-row msg clearfix', =>
-          @div '该目录已存在', class: 'text-warning hide errorMsg', outlet: 'errorMsg'
+          @div '该应用目录已存在', class: 'text-warning hide errorMsg', outlet: 'errorMsg'
 
   initialize: ->
-    @appId.getModel().onDidChange => @setPath()
+    @appId.getModel().onDidChange => @checkProjectName()
     @appName.getModel().onDidChange => @checkInput()
-    @appPath.getModel().onDidChange => @checkPath()
+    # @appPath.getModel().onDidChange => @checkPath()
 
   attached: ->
     console.log @parentView.options

    else
      @parentView.disableNext()

  setPath: ->
    currPath = @appPath.basePath
    str = @appId.getText().trim()
    console.log Util.checkProjectName str
    if Util.checkProjectName str
      @errorMsg2.addClass('hide')
    else
      @errorMsg2.removeClass('hide')
    @appPath.setText pathM.join currPath,str if currPath isnt ""
    @checkInput()

  checkPath: ->
    path = @appPath.getText().trim()
    @appPath.basePath = path if @appPath.hasFocus()
    if path isnt ""
      dir = new Directory(path);
      dir.exists()

  checkInput: ->
    flag1 = @appId.getText().trim() isnt ""
    flag2 = @appName.getText().trim() isnt ""
    flag3 = @appPath.html().trim() isnt ""
    flag4 = @errorMsg.hasClass('hide')
    flag5 = @errorMsg2.hasClass('hide')

