9910

          單飛

             :: 首頁 :: 聯系 :: 聚合  :: 管理
          <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的畫面中, 是否顯示進度條
          2. DISABLE_NEW_FAST_VIEW                   是否禁止左下角的Show View As a Fast View按鈕
          3. SHOW_MEMORY_MONITOR                    是否顯示內存情況, 并可進行GC操作, 這個比較有意思
          4. SHOW_OPEN_ON_PERSPECTIVE_BAR    在PerspectiveBar上,是否顯示New Perspective按鈕
          5. SHOW_TEXT_ON_PERSPECTIVE_BAR     在PerspectiveBar上,是否顯示Perspective的名稱
          6. SHOW_TRADITIONAL_STYLE_TABS         Editor或ViewPart是否使用傳統的Tab的樣式. 這個肯定用true, false的太老土了.
          7. DOCK_PERSPECTIVE_BAR                      PerspectiveBar的顯示位置, 左上 還是 右上.



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

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 萍乡市| 贵溪市| 安新县| 湟源县| 博乐市| 延安市| 溧水县| 石狮市| 周至县| 九龙坡区| 尼玛县| 灵山县| 喀喇沁旗| 上饶市| 安多县| 遂溪县| 马尔康县| 奉节县| 海口市| 宿松县| 修武县| 湖州市| 满城县| 绿春县| 上饶县| 陕西省| 驻马店市| 富平县| 富阳市| 蕉岭县| 中卫市| 安远县| 当雄县| 本溪| 永嘉县| 新野县| 长宁县| 梓潼县| SHOW| 巩留县| 鹿泉市|