9910

          單飛

             :: 首頁(yè) :: 聯(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 單飛 閱讀(417) 評(píng)論(0)  編輯  收藏

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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 嘉善县| 龙口市| 霍林郭勒市| 安多县| 海淀区| 周至县| 涞源县| 常熟市| 北票市| 长治市| 大港区| 绥棱县| 长海县| 尖扎县| 纳雍县| 禹城市| 东丰县| 喀什市| 普安县| 上蔡县| 平阳县| 比如县| 南靖县| 广汉市| 资兴市| 玛多县| 五原县| 广安市| 铜川市| 五峰| 徐汇区| 孝感市| 射洪县| 林周县| 安龙县| 揭西县| 中方县| 祁阳县| 彭州市| 郧西县| 九江县|