I am devloping phonegap application using eclipse whenever  i am trying to open .js extension files it by default open "Alert"  of Adobe DreamViewer and my adobe has been expired so its show me "Adobe Alert do u want to buy ? "  Moreover its not opening any .js file and when i am trying to open file by 
    rightclick---->open with ----->TextEditor
   then there is only code appearing in editor no "Code Completion "  appears no error indication ....nothing how can i resolve this issue ? 
here is the result after following answer.....
when trying to open file i am getting "The Class File Viewer cannot handle the given input."  in Editor .Snapshots added 
    when opening file then:
when opening file then: 
    
 
     
    