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)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 渭南市| 临沂市| 神池县| 鹤庆县| 郑州市| 灯塔市| 黄龙县| 福鼎市| 凭祥市| 大化| 临江市| 安溪县| 海阳市| 内黄县| 泗水县| 泰州市| 濮阳市| 嵊泗县| 洞头县| 长岭县| 云林县| 彝良县| 仙桃市| 江阴市| 沙雅县| 禹州市| 西和县| 汝城县| 平泉县| 沾化县| 承德县| 枝江市| 合水县| 桓台县| 石阡县| 合作市| 静乐县| 赣州市| 桂林市| 祁东县| 高密市|