博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

在NetBeans上支持ExtJS插件使用

Posted on 2009-05-01 12:20  Watir  阅读(4135)  评论(0编辑  收藏  举报

I am using NetBeans 6.5 and Ext JS 2.2.

  1. NetBeans menu "Tools" and then submenu "Libraries"
  2. Click the "New Library..." button
  3. Set Library Name: as "ExtJS2.2" and Library Type: as "JavaScript Libraries" and then click "OK"
  4. Click the "Add Zip..." button
  5. Select the location of where you have your "ext-2.2.zip" file
  6. Click "OK" to close the Library Manager window.
Now, one can hook up the new Ext JS library to the project you would like code completion with
  1. Right click the proposed project and select "Properties"
  2. Select the "JavaScript Libraries" Category
  3. Click the "Add..." button to open up the "Add JavaScript Libraries" window
  4. ExtJS2.2 should be listed as an available JavaScript Library
  5. Check the Add box for the ExtJS2.2 Library and click "OK"
  6. The Extracting JavaScript Libraries window should pop up and it should take a good couple minutes to extract the Ext JS libraries for use with NetBeans to activate the code completion functionality.
  7. Click "OK" to close the Project Properties window
  8. Open up a javascript file in your project and start with typing "Ext."
  9. Notice how the code completion is activated and one may now scroll thorugh the language and enjoy NetBeans taking care of some of the guess work we coders must deal with when coding to multiple APIs and various syntax oddities.