     @moduleId.getModel().onDidChange => @checkMoudleID()
     @moduleName.getModel().onDidChange => @checkInput()
     @mainEntry.getModel().onDidChange => @checkInput()
+    @selectProject.on 'change',(e) => @onSelectChange(e)
 
   attached: ->
     @mainEntry.setText desc.mainEntryFileName

      @setSelectItem path for path in projectPaths
      @modulePath.parents('.form-group').addClass 'hide'
      @selectProject.parents('.form-group').removeClass 'hide'
    else
      @selectProject.parents('.form-group').addClass 'hide'
      @modulePath.parents('.form-group').removeClass 'hide'

      if paths?
        console.log paths[0]
        @modulePath.setText paths[0]

  onSelectChange: (e) ->
    el = e.currentTarget
    console.log el.value
    @modulePath.setText pathM.join el.value,'modules'

  checkMoudleID: ->
    path = @moduleId.getText().trim()
