RCP程式的啟動進度條

來源:互聯網
上載者:User

在.product檔案裡指定“Add a progress bar”和進度條的尺寸以後,進度條很可能並未如你設想中出現在Splash圖片上,解決的方法如下:

1、在.product檔案同一目錄裡建立customization.ini檔案,包含這樣的常值內容:org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP=true

2、在plugin.xml裡的org.eclipse.core.runtime.products擴充點下的對應product下添加屬性preferenceCustomization,值為customization.ini;這個擴充點一般是在編輯.product檔案後匯出RCP時自動產生的。

3、為讓所有的修改生效,可能需要以-clean方式啟動你的RCP程式。

4、進度條的位置和大小也可直接在plugin.xml裡指定,同樣是對應product下的屬性,分別為startupProgressRect和startupMessageRect,屬性值例如“10,290,200,16”,前兩個數字是位置,後兩個是尺寸。

 

BTW,在3.3版本的Eclipse裡可能會免去在customization.ini檔案裡做設定的步驟。

補充(2009.8.20):控制perspective切換按鈕位置用org.eclipse.ui/DOCK_PERSPECTIVE_BAR = topRight

參考:

http://www.eclipsezone.com/eclipse/forums/m92055175.html

http://eclipsezone.com/eclipse/forums/m92053781.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.