大夢想家
5年開發(fā)工程師,2年實(shí)施經(jīng)理,X年售前顧問,......
BlogJava
首頁
新隨筆
聯(lián)系
聚合
管理
數(shù)據(jù)加載中……
How to show taskbar icon when use splash?
這個問題非常的重要!
做過RCP開發(fā)的朋友應(yīng)該都遇到過,使用AbstractSplashHandler做的登陸界面,在windows的任務(wù)欄上面是不會顯示的,這個問題讓客戶用起來很麻煩,總是動不動就找不到登陸界面了!現(xiàn)在有解決辦法了~
1
Here is the modified Code of the InteractiveSplashHandler Class:
2
3
4
private
Shell splash;
5
6
7
public
void
init(
final
Shell splash)
{
8
//
Shell replaced by one with task bar icon
9
//
(old Style: SWT.TOOL, new Style: SWT.NO_TRIM)
10
replaceShell(splash);
11
//
Store the shell
12
super
.init(getSplash());
13
//
Configure the shell layout
14
configureUISplash();
15
//
Create UI Colors and Fonts
16
createColorsAndFonts();
17
//
Create UI
18
createUI();
19
//
Create UI listeners
20
createUIListeners();
21
//
Force the splash screen to layout
22
splash.dispose();
23
getSplash().layout(
true
);
24
//
Keep the splash screen visible and prevent the RCP application from
25
//
loading until the close button is clicked.
26
doEventLoop();
27
}
28
29
30
private
void
replaceShell(Shell splash)
{
31
Shell newSplash
=
new
Shell(Display.getCurrent(), SWT.NO_TRIM);
32
newSplash.setBackgroundImage(splash.getBackgroundImage());
33
newSplash.setBounds(splash.getBounds());
34
newSplash.setFont(splash.getFont());
35
newSplash.setVisible(
true
);
36
setSplash(newSplash);
37
}
38
39
40
public
Shell getSplash()
{
41
return
splash;
42
}
43
44
45
public
void
setSplash(Shell splash)
{
46
this
.splash
=
splash;
47
}
48
49
稍稍進(jìn)行改造,就可以了~
客戶虐我千百遍,我待客戶如初戀!
posted on 2009-03-15 20:59
阿南
閱讀(1307)
評論(0)
編輯
收藏
所屬分類:
Eclipse-RCP
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發(fā)表評論。
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關(guān)文章:
Wazaabi 2.0 讓我看到了自定義界面設(shè)計(jì)器的希望
如何使用代碼重啟RCP程序?
How to show taskbar icon when use splash?
Eclipse3.3-3.4MX多國語言項(xiàng)目放出
Eclipse4.0放出部分Demo
驚嘆吧!RAP!
打造仿淘寶注冊的Text(二)
再次尋求從事過Java桌面的應(yīng)用的朋友解惑~
尋求從事過Java桌面的應(yīng)用的朋友解惑~
一個使用SWT Ribbon代替Eclipse-RCP上面Coolbar的例子~
Powered by:
BlogJava
Copyright © 阿南
公告
5年開發(fā)工程師,2年實(shí)施經(jīng)理,X年售前顧問,......
<
2009年3月
>
日
一
二
三
四
五
六
22
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
統(tǒng)計(jì)
隨筆 - 130
文章 - 5
評論 - 427
引用 - 0
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(23)
給我留言
查看公開留言
查看私人留言
我參與的團(tuán)隊(duì)
西安java用戶群(0/0)
西安JAVA俱樂部(0/0)
隨筆分類
(188)
DB4O(1)
(rss)
Eclipse4
(rss)
Eclipse-RAP(4)
(rss)
Eclipse-RCP(50)
(rss)
Eclipse-SWT(11)
(rss)
Eclipse-WorkBench(1)
(rss)
EJB3(4)
(rss)
JavaScript(4)
(rss)
JDK5.0(2)
(rss)
Maven2(4)
(rss)
OSGI(1)
(rss)
Python成長之路
(rss)
個人原創(chuàng)(16)
(rss)
亂彈閑言(7)
(rss)
工作心得(16)
(rss)
工具網(wǎng)站(3)
(rss)
開源(8)
(rss)
沉思錄(3)
(rss)
西安java用戶群(45)
(rss)
讀書筆記(8)
(rss)
隨筆檔案
(123)
2013年1月 (2)
2010年6月 (1)
2009年7月 (3)
2009年6月 (1)
2009年4月 (1)
2009年3月 (3)
2009年2月 (1)
2008年7月 (1)
2008年4月 (5)
2008年3月 (10)
2008年2月 (5)
2008年1月 (7)
2007年12月 (7)
2007年11月 (4)
2007年10月 (5)
2007年9月 (4)
2007年8月 (9)
2007年7月 (19)
2007年6月 (17)
2007年5月 (18)
文章分類
(3)
Cool文存檔(3)
(rss)
文章檔案
(7)
2008年3月 (1)
2007年12月 (4)
2007年7月 (1)
2007年5月 (1)
Friends
http://www.richclient2.eu
三告習(xí)習(xí)
Java Link
DZone
(rss)
TTS
My Link
我的網(wǎng)盤
最新隨筆
1.?Could not instantiate class XXX from tuple at AliasToBeanConstructorResultTransformer 的處理辦法
2.?在企業(yè)內(nèi)部部署Chrome的課前預(yù)習(xí)
3.?查詢Oracle的BLOB類型
4.?誰不知道構(gòu)架?
5.?EJB3下無狀態(tài)會話Bean發(fā)布為WebService
6.?Wazaabi 2.0 讓我看到了自定義界面設(shè)計(jì)器的希望
7.?不怕錯,就怕不認(rèn)錯
8.?Lock wait timeout exceeded; try restarting transaction
9.?如何使用代碼重啟RCP程序?
10.?How to show taskbar icon when use splash?
搜索
積分與排名
積分 - 261437
排名 - 217
最新評論
1.?re: 如何在ViewPart上添加ViewToolBar
請問toolbar中的按鈕,怎么才能弄到選項(xiàng)卡那一行上
--suren
2.?re: 西安java用戶群成立~_~
hui_zh996@163.com
這是我的聯(lián)系方式
QQ:2603651153
支持
--常一
3.?re: 初識DB4O
存在本地,其實(shí)就是本地一份文件!文件名沒有什么限制
--replica montblanc watches
4.?re: SWT---nebula_cdatetime_0.9.0中文版[未登錄]
得到
--你好
5.?re: SWT中使用JFreeChart(無需SWT_AWT)
@寒武紀(jì)
我的JFreeChart怎么沒有ChartComposite!! 求指點(diǎn)!!!
--cala
閱讀排行榜
1.?JAVA如何調(diào)用DOS命令(16265)
2.?為什么讀取.properties文件時出現(xiàn)“java.lang.IllegalArgumentException: Malformed \uxxxx encoding”(12117)
3.?利用JS獲取IE客戶端IP及MAC的實(shí)現(xiàn)(8386)
4.?JWS(Java Web Start)高級應(yīng)用(5663)
5.?Eclipse3.3的新特性(5301)
評論排行榜
1.?需要加入XAUG的朋友請留言給我!(27)
2.?公司Eclipse-RCP培訓(xùn)PPT教材(25)
3.?西安java用戶群成立~_~(18)
4.?Eclipse3.3的新特性(18)
5.?JAVA如何調(diào)用DOS命令(14)
主站蜘蛛池模板:
99国产精品免费视频观看
|
无码日韩精品一区二区三区免费
|
亚洲男人天堂2020
|
久久精品视频免费
|
亚洲一区二区三区在线网站
|
香蕉高清免费永久在线视频
|
国产99久久久久久免费看
|
亚洲精品福利网站
|
亚洲精品A在线观看
|
亚洲AV无码成H人在线观看
|
中文免费观看视频网站
|
免费无码国产在线观国内自拍中文字幕
|
亚洲一区二区三区四区视频
|
嘿嘿嘿视频免费网站在线观看
|
男人扒开添女人下部免费视频
|
国产亚洲蜜芽精品久久
|
久久久久亚洲精品日久生情
|
野花高清在线观看免费3中文
|
亚洲AV无码专区亚洲AV桃
|
亚洲视频在线观看免费
|
免费va人成视频网站全
|
免费看黄视频网站
|
免费A级毛片av无码
|
免费看片在线观看
|
午夜老司机免费视频
|
www视频在线观看免费
|
国产精品免费观看
|
日韩高清在线高清免费
|
91免费国产在线观看
|
国产精品四虎在线观看免费
|
成年人免费视频观看
|
18禁无遮挡无码网站免费
|
久久久久av无码免费网
|
日本高清免费中文字幕不卡
|
亚洲精品无码激情AV
|
亚洲激情中文字幕
|
亚洲色大成网站www尤物
|
亚洲精品美女久久久久9999
|
亚洲精品无AMM毛片
|
亚洲精品国产综合久久久久紧
|
特级毛片全部免费播放a一级
|