大夢想家
5年開發工程師,2年實施經理,X年售前顧問,......
BlogJava
首頁
新隨筆
聯系
聚合
管理
公告
5年開發工程師,2年實施經理,X年售前顧問,......
<
2007年5月
>
日
一
二
三
四
五
六
29
30
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
5
6
7
8
9
統計
隨筆 - 130
文章 - 5
評論 - 427
引用 - 0
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(23)
給我留言
查看公開留言
查看私人留言
我參與的團隊
西安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)
個人原創(16)
(rss)
亂彈閑言(7)
(rss)
工作心得(16)
(rss)
工具網站(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
三告習習
Java Link
DZone
(rss)
TTS
My Link
我的網盤
最新隨筆
1.?Could not instantiate class XXX from tuple at AliasToBeanConstructorResultTransformer 的處理辦法
2.?在企業內部部署Chrome的課前預習
3.?查詢Oracle的BLOB類型
4.?誰不知道構架?
5.?EJB3下無狀態會話Bean發布為WebService
6.?Wazaabi 2.0 讓我看到了自定義界面設計器的希望
7.?不怕錯,就怕不認錯
8.?Lock wait timeout exceeded; try restarting transaction
9.?如何使用代碼重啟RCP程序?
10.?How to show taskbar icon when use splash?
搜索
積分與排名
積分 - 262936
排名 - 217
最新評論
1.?re: 如何在ViewPart上添加ViewToolBar
請問toolbar中的按鈕,怎么才能弄到選項卡那一行上
--suren
2.?re: 西安java用戶群成立~_~
hui_zh996@163.com
這是我的聯系方式
QQ:2603651153
支持
--常一
3.?re: 初識DB4O
存在本地,其實就是本地一份文件!文件名沒有什么限制
--replica montblanc watches
4.?re: SWT---nebula_cdatetime_0.9.0中文版[未登錄]
得到
--你好
5.?re: SWT中使用JFreeChart(無需SWT_AWT)
@寒武紀
我的JFreeChart怎么沒有ChartComposite??! 求指點?。?!
--cala
閱讀排行榜
1.?JAVA如何調用DOS命令(16284)
2.?為什么讀取.properties文件時出現“java.lang.IllegalArgumentException: Malformed \uxxxx encoding”(12130)
3.?利用JS獲取IE客戶端IP及MAC的實現(8398)
4.?JWS(Java Web Start)高級應用(5679)
5.?Eclipse3.3的新特性(5312)
評論排行榜
1.?需要加入XAUG的朋友請留言給我!(27)
2.?公司Eclipse-RCP培訓PPT教材(25)
3.?西安java用戶群成立~_~(18)
4.?Eclipse3.3的新特性(18)
5.?JAVA如何調用DOS命令(14)
Eclipse3.3m7 VS Eclipse3.2.2
Eclipse3.3m7 VS Eclipse3.2.2
沒有深入研究過兩者的差別,只是昨天在更換平臺時發現的。差別主要存在與Application類上,兩者繼承或者實現的類不同,也就決定了其底層的不同。
Eclipse3.3M7
1
import
org.eclipse.equinox.app.IApplication;
2
import
org.eclipse.equinox.app.IApplicationContext;
3
import
org.eclipse.jface.wizard.WizardDialog;
4
import
org.eclipse.swt.widgets.Display;
5
import
org.eclipse.swt.widgets.Shell;
6
import
org.eclipse.ui.IWorkbench;
7
import
org.eclipse.ui.PlatformUI;
8
9
import
com.glnpu.glbom.ui.wizard.FirstTimeConfigWizard;
10
11
/** */
/**
12
* This class controls all aspects of the application's execution
13
*/
14
public
class
Application
implements
IApplication
{
15
16
/**/
/*
(non-Javadoc)
17
* @see org.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.IApplicationContext)
18
*/
19
public
Object start(IApplicationContext context)
throws
Exception
{
20
Display display
=
PlatformUI.createDisplay();
21
22
try
{
23
int
returnCode
=
PlatformUI.createAndRunWorkbench(display,
new
ApplicationWorkbenchAdvisor());
24
if
(returnCode
==
PlatformUI.RETURN_RESTART)
25
return
IApplication.EXIT_RESTART;
26
else
27
return
IApplication.EXIT_OK;
28
}
finally
{
29
display.dispose();
30
}
31
32
}
33
34
35
36
/**/
/*
(non-Javadoc)
37
* @see org.eclipse.equinox.app.IApplication#stop()
38
*/
39
public
void
stop()
{
40
final
IWorkbench workbench
=
PlatformUI.getWorkbench();
41
if
(workbench
==
null
)
42
return
;
43
final
Display display
=
workbench.getDisplay();
44
display.syncExec(
new
Runnable()
{
45
public
void
run()
{
46
if
(
!
display.isDisposed())
47
workbench.close();
48
}
49
}
);
50
}
51
}
52
實現再org.eclipse.core.runtime.IPlatformRunnable;
Eclipse3.2.2
1
import
org.eclipse.core.runtime.IPlatformRunnable;
2
import
org.eclipse.jface.wizard.WizardDialog;
3
import
org.eclipse.swt.widgets.Display;
4
import
org.eclipse.swt.widgets.Shell;
5
import
org.eclipse.ui.PlatformUI;
6
7
import
com.bom.demo.ui.wizard.FirstTimeConfigWizard;
8
9
/** */
/**
10
* This class controls all aspects of the application's execution
11
*/
12
public
class
Application
implements
IPlatformRunnable
{
13
14
/**/
/*
(non-Javadoc)
15
* @see org.eclipse.core.runtime.IPlatformRunnable#run(java.lang.Object)
16
*/
17
public
Object run(Object args)
throws
Exception
{
18
Display display
=
PlatformUI.createDisplay();
19
20
try
{
21
int
returnCode
=
PlatformUI.createAndRunWorkbench(display,
new
ApplicationWorkbenchAdvisor());
22
if
(returnCode
==
PlatformUI.RETURN_RESTART)
{
23
return
IPlatformRunnable.EXIT_RESTART;
24
}
25
return
IPlatformRunnable.EXIT_OK;
26
}
finally
{
27
display.dispose();
28
}
29
}
Eclipse3.2.2則實現自org.eclipse.core.runtime.IPlatformRunnable;
看來是又做了一次小幅度的分離,而且給出了更加合理的方法命名。
客戶虐我千百遍,我待客戶如初戀!
posted on 2007-05-22 08:37
阿南
閱讀(2211)
評論(7)
編輯
收藏
所屬分類:
Eclipse-RCP
評論
#
re: Eclipse3.3m7 VS Eclipse3.2.2 2007-05-22 12:25
dreamstone
eclipse3.3的效果不錯,用起來感覺很好。
回復
更多評論
#
re: Eclipse3.3m7 VS Eclipse3.2.2 2007-05-22 14:41
阿南
好像有些小問題呢,反正我寫的東西穩定性不好,老出莫名其妙的問題!
回復
更多評論
#
re: Eclipse3.3m7 VS Eclipse3.2.2 2007-05-22 18:20
dreamstone
直接是用eclipse3.3還是配合別的例如myeclipse designer等插件來用 ? 我直接拿來用到沒怎么出問題。
回復
更多評論
#
re: Eclipse3.3m7 VS Eclipse3.2.2 2007-05-22 23:52
熱門單曲
多謝樓主分享 頂了
回復
更多評論
#
re: Eclipse3.3m7 VS Eclipse3.2.2 2007-05-23 08:22
阿南
我裝了SWTdesigner6.3
回復
更多評論
#
re: Eclipse3.3m7 VS Eclipse3.2.2 2007-05-23 12:36
dreamstone
恩,可能不匹配吧。我一般會下最新版本的看看,但很少用,怕的就是和各種插件不匹配,出各種錯誤。。呵呵
回復
更多評論
#
re: Eclipse3.3m7 VS Eclipse3.2.2
2007-05-23 15:53
阿南
恩,有可能,而且我用SWTdesigner6.3+3.3不能新建preferencepage部件,不知道有沒有人遇到過。
回復
更多評論
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
相關文章:
Wazaabi 2.0 讓我看到了自定義界面設計器的希望
如何使用代碼重啟RCP程序?
How to show taskbar icon when use splash?
Eclipse3.3-3.4MX多國語言項目放出
Eclipse4.0放出部分Demo
驚嘆吧!RAP!
打造仿淘寶注冊的Text(二)
再次尋求從事過Java桌面的應用的朋友解惑~
尋求從事過Java桌面的應用的朋友解惑~
一個使用SWT Ribbon代替Eclipse-RCP上面Coolbar的例子~
Powered by:
BlogJava
Copyright © 阿南
主站蜘蛛池模板:
隆回县
|
增城市
|
紫云
|
潜江市
|
武山县
|
迁安市
|
左权县
|
新竹市
|
睢宁县
|
桑日县
|
徐汇区
|
襄樊市
|
哈巴河县
|
九寨沟县
|
永寿县
|
射阳县
|
庄河市
|
博白县
|
会同县
|
若羌县
|
汉沽区
|
中宁县
|
台湾省
|
常宁市
|
瑞金市
|
根河市
|
台中市
|
临清市
|
巩义市
|
离岛区
|
宁陵县
|
石河子市
|
东莞市
|
龙胜
|
丰城市
|
合川市
|
陕西省
|
五原县
|
临沂市
|
十堰市
|
灵山县
|