9910

          單飛

             :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
          <extension
                   
          id="product"
                   point
          ="org.eclipse.core.runtime.products">
                
          <product
                      
          application="org.test.a.application"
                      name
          ="%productName">
                   
          <property
                         
          name="windowImages"
                         value
          ="icons/a.16.gif"/>
                   
          <property
                         
          name="appName"
                         value
          ="Test">
                   
          </property>
                   
          <property
                         
          name="preferenceCustomization"
                         value
          ="plugin_customization.ini">
                   
          </property>


          plugin_customization.ini
          # new-style tabs by default
          org.eclipse.ui/SHOW_TRADITIONAL_STYLE_TABS=false

          # put the perspective switcher on the top right
          org.eclipse.ui/DOCK_PERSPECTIVE_BAR=topRight

          # show progress on startup
          org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP=false
          org.eclipse.ui/SHOW_TEXT_ON_PERSPECTIVE_BAR=true

             1public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {  
             
          2.     /* (non-Javadoc) 
             3.      * @see org.eclipse.ui.application.WorkbenchAdvisor#initialize(org.eclipse.ui.application.IWorkbenchConfigurer) 
             4.      
          */  
             
          5.     public void initialize(IWorkbenchConfigurer configurer) {  
             
          6.         PlatformUI.getPreferenceStore().setDefault(  
             
          7.             IWorkbenchPreferenceConstants.SHOW_PROGRESS_ON_STARTUP, true);  
             
          8.         PlatformUI.getPreferenceStore().setDefault(  
             
          9.             IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS, false);  
            
          10.     }  
            
          11. } 

          1. SHOW_PROGRESS_ON_STARTUP           在splash的畫面中, 是否顯示進(jìn)度條
          2. DISABLE_NEW_FAST_VIEW                   是否禁止左下角的Show View As a Fast View按鈕
          3. SHOW_MEMORY_MONITOR                    是否顯示內(nèi)存情況, 并可進(jìn)行GC操作, 這個(gè)比較有意思
          4. SHOW_OPEN_ON_PERSPECTIVE_BAR    在PerspectiveBar上,是否顯示New Perspective按鈕
          5. SHOW_TEXT_ON_PERSPECTIVE_BAR     在PerspectiveBar上,是否顯示Perspective的名稱
          6. SHOW_TRADITIONAL_STYLE_TABS         Editor或ViewPart是否使用傳統(tǒng)的Tab的樣式. 這個(gè)肯定用true, false的太老土了.
          7. DOCK_PERSPECTIVE_BAR                      PerspectiveBar的顯示位置, 左上 還是 右上.



          posted on 2009-10-14 15:13 單飛 閱讀(418) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 巫山县| 衡东县| 伊通| 二手房| 龙泉市| 崇礼县| 陇南市| 双辽市| 罗田县| 宣城市| 平阴县| 旺苍县| 来安县| 普兰县| 张家口市| 华安县| 福清市| 泉州市| 清河县| 烟台市| 噶尔县| 永兴县| 富阳市| 鸡泽县| 德钦县| 濮阳市| 浮山县| 平顶山市| 黄山市| 镇原县| 仙居县| 重庆市| 浮山县| 东明县| 吉木乃县| 嘉禾县| 信阳市| 河北区| 七台河市| 宁陵县| 宜阳县|