posts - 495,comments - 227,trackbacks - 0
          1、到spket官方網(wǎng)站(http://www.spket.com/)下Extjs編輯的IDE(其實(shí)就是一個(gè)jar文件,使用java -jar spket-1.6.22.jar命令來安裝IDE)。
          2、安裝完之后需要配置IDE對(duì)Extjs的支持,官方網(wǎng)站http://www.spket.com/extjs.html有說明

          Create JavaScript profile for Ext 4.x

          1. Download Ext 4.x, unzip it, do not delete the src folder..
          2. Select the menu item Window > Preferences... to open the workbench preferences.
          3. Select the Spket > JavaScript Profile preference page to display the installed JavaScript Profiles.
          4. Click the New.. button. In the Name field, type Ext 4 as the name for the new profile. Then click OK.
          5. Click the Add Library button. From the Library drop-down list, select ExtJS. Then click OK.
          6. Click the Add File button, choose sdk.jsb3 which can be found in build folder.
          7. Select the Ext profile created in step 4, click the Default button make it the default profile for all project. The default profile can also be configured per project by using Configure Project Specific Settings... link.
          8. If everything done correctly, your profile should looks like this.
          9. Click on OK to save the preferences.
          10. Open javascript file with Spket JavaScript Editor. If you not sure which editor you used, take a look at this screen shot. click Ctrl+Space or Alt+/, the code assist window will looks like this if there is no code.

          Create JavaScript profile

          1. Select the menu item Window > Preferences... to open the workbench preferences.
          2. Select the Spket > JavaScript Profile preference page to display the installed JavaScript Profiles.
          3. Click the New.. button. In the Name field, type Ext as the name for the new profile. Then click OK.
          4. Click the Add Library button. From the Library drop-down list, select ExtJS. Then click OK.
          5. Click the Add File button, choose ext.jsb which can be found in Ext source folder
          6. Select the Ext profile created in step 3, click the Default button make it the default profile for all project. The default profile can also be configured per project by using Configure Project Specific Settings... link.
          7. Click on OK to save the preferences.

          Features

          Code assist for Ext JS

          Code assist The code assist for Ext JS is very accurate and thorough, and it supports Ext JS 1.x - Ext JS 2.x, the code assist list all the properties/methods with full documentation.

          Code assist for Config Options

          config option The code assist will list all the config options and where it was defined.

          Open declaration

          config option Select Ext function, use the Ctrl+Click combination or F3, you can jump to the Ext source code, help you to learn how Ext works.

          Code assist for custom class

          custom class The code assist works well for custom class, including config option and properties/methods.

          custom class



          3、創(chuàng)建一個(gè)空項(xiàng)目,在空項(xiàng)目下創(chuàng)建一個(gè)xxx.theme文件,打開這個(gè)文件之后,可以看到主題顏色的修改,name就是你主題的名稱,path就是你Extjs源文件的根目錄,這時(shí)就可以看到所有的png主題圖片。修改完之后,點(diǎn)擊“explort”導(dǎo)出,便看到相應(yīng)的主題文件夾。

          posted on 2012-04-17 16:54 SIMONE 閱讀(1519) 評(píng)論(0)  編輯  收藏 所屬分類: JavaScript
          主站蜘蛛池模板: 大城县| 紫金县| 莒南县| 内江市| 望城县| 印江| 通化市| 文山县| 册亨县| 方山县| 永修县| 茌平县| 师宗县| 武定县| 咸阳市| 海丰县| 漳平市| 逊克县| 沛县| 庆城县| 上林县| 慈溪市| 静乐县| 石屏县| 资溪县| 彩票| 广元市| 兴和县| 板桥市| 永城市| 略阳县| 克山县| 白河县| 河北区| 利津县| 瑞金市| 巴东县| 始兴县| 汉阴县| 南川市| 贡嘎县|