??xml version="1.0" encoding="utf-8" standalone="yes"?>日本一区二区三区www,亚州av电影免费在线观看,一区二区三区亚洲http://www.aygfsteel.com/flyingbug/category/2304.html目前x:ESB框架、中间g技术、代码运行期理<br> <script type="text/javascript"><!-- google_ad_client = "pub-8329809642402918"; google_ad_width = 468; google_ad_height = 60; google_ad_format = "468x60_as"; google_ad_type = "text_image"; google_ad_channel =""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>zh-cnTue, 27 Feb 2007 08:58:29 GMTTue, 27 Feb 2007 08:58:29 GMT60一个SWT Application如何转职成ؓRCP Appliactioinhttp://www.aygfsteel.com/flyingbug/archive/2006/01/17/28288.htmlfisherfisherTue, 17 Jan 2006 03:02:00 GMThttp://www.aygfsteel.com/flyingbug/archive/2006/01/17/28288.htmlhttp://www.aygfsteel.com/flyingbug/comments/28288.htmlhttp://www.aygfsteel.com/flyingbug/archive/2006/01/17/28288.html#Feedback0http://www.aygfsteel.com/flyingbug/comments/commentRss/28288.htmlhttp://www.aygfsteel.com/flyingbug/services/trackbacks/28288.html昨天david问到如何旧的swt应用转成一个RCP应用Q昨晚胃疼难忍,于是草草说了一下,早早上床休息了Q早上v来又惌vqg事情Q遂在这里说一下思\
下面说一下我的思\
Q注Q以下观Ҏl证实,误行斟酌用)

一个旧的SWT应用Q应该都是有一个main函数里初始化一些UIlgQ然后run一个事件@?/P>

在RCP中,׃是基于Eclipse的插件体p,也就是说Q用我前面那篇文章发布的RCP ApplicationQ是可以直接发布成Eclipse插g?BR>所以,对于UIlg的控制也要遵循Eclipse的插件体pȝ代码要求Q看看Hello RCP模板中的几个c:ApplicationActionBarAdvisor、ApplicationWorkbenchAdvisor、ApplicationWorkbenchWindowAdvisor以及RCPPluginQ想起了什么?对,OSGI

我们只要原swt的main函数中初始化的uilgQ放入到q几个Advisor中进行初始化

下拉菜单项的uilg的初始化工作攑օ到ApplicationActionBarAdvisor的如下方法:

    protected void makeActions(IWorkbenchWindow window) {
    }



    
protected void fillMenuBar(IMenuManager menuBar) {
    }


其他UIlg初始化工作放入到ApplicationWorkbenchWindowAdvisor的如下方法:

    public void preWindowOpen() {

        IWorkbenchWindowConfigurer configurer 
= getWindowConfigurer();

        configurer.setInitialSize(
new Point(400300));

        configurer.setShowCoolBar(
false);

        configurer.setShowStatusLine(
false);

        configurer.setTitle(
"Hello RCP");

    }


至于ApplicationWorkbenchAdvisorq个c,我想你一定想起了Eclipse中的Workbench概念
在这里,可以定义当这个RCP作ؓplugin的时候的Worbench的透视囄一些属性?/P>

-----------------------------------

最后,ZEclipse3.1的product方式的RCPE序获得同Eclipse相同的插件体pL?BR>也就是说Q你的应用本w就是基于Eclipse Platform的,q样Q你的程序也可以接受插g插入了(如果你设计的好的话^_^Q?BR>另外Q还有其他很多好处,比如在线升功能的自动绑定啊Q帮助功能的使用啊等{?BR>想一惻I你的E序既能作为单独的E序q行Q又能作为Eclipse的插件运行,而且q跨q_Qthink about it...
So....try it now, you will get more



fisher 2006-01-17 11:02 发表评论
]]>
使用Eclipse3.1的新Ҏ方便的发布你的RCP Producthttp://www.aygfsteel.com/flyingbug/archive/2006/01/16/28241.htmlfisherfisherMon, 16 Jan 2006 15:16:00 GMThttp://www.aygfsteel.com/flyingbug/archive/2006/01/16/28241.htmlhttp://www.aygfsteel.com/flyingbug/comments/28241.htmlhttp://www.aygfsteel.com/flyingbug/archive/2006/01/16/28241.html#Feedback2http://www.aygfsteel.com/flyingbug/comments/commentRss/28241.htmlhttp://www.aygfsteel.com/flyingbug/services/trackbacks/28241.html  阅读全文

fisher 2006-01-16 23:16 发表评论
]]>
WTP1.0已经到达M9http://www.aygfsteel.com/flyingbug/archive/2005/11/23/21116.htmlfisherfisherWed, 23 Nov 2005 05:29:00 GMThttp://www.aygfsteel.com/flyingbug/archive/2005/11/23/21116.htmlhttp://www.aygfsteel.com/flyingbug/comments/21116.htmlhttp://www.aygfsteel.com/flyingbug/archive/2005/11/23/21116.html#Feedback0http://www.aygfsteel.com/flyingbug/comments/commentRss/21116.htmlhttp://www.aygfsteel.com/flyingbug/services/trackbacks/21116.html虽然只是0.7版,但WTP的设计确实很好,目前WTP1.0已经releaseCM9Q还?0几天到达release date了,热烈期待?...



fisher 2005-11-23 13:29 发表评论
]]>
Eclipse的启动框?/title><link>http://www.aygfsteel.com/flyingbug/archive/2005/10/24/16677.html</link><dc:creator>fisher</dc:creator><author>fisher</author><pubDate>Mon, 24 Oct 2005 15:12:00 GMT</pubDate><guid>http://www.aygfsteel.com/flyingbug/archive/2005/10/24/16677.html</guid><wfw:comment>http://www.aygfsteel.com/flyingbug/comments/16677.html</wfw:comment><comments>http://www.aygfsteel.com/flyingbug/archive/2005/10/24/16677.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.aygfsteel.com/flyingbug/comments/commentRss/16677.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/flyingbug/services/trackbacks/16677.html</trackback:ping><description><![CDATA[     摘要: 很久没更CQ拿以前写的日记充充?nbsp; <a href='http://www.aygfsteel.com/flyingbug/archive/2005/10/24/16677.html'>阅读全文</a><img src ="http://www.aygfsteel.com/flyingbug/aggbug/16677.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/flyingbug/" target="_blank">fisher</a> 2005-10-24 23:12 <a href="http://www.aygfsteel.com/flyingbug/archive/2005/10/24/16677.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[BIRT]-[Tutorial]-使用ScriptDataSet从POJO中获得数据(五)http://www.aygfsteel.com/flyingbug/archive/2005/09/06/12209.htmlfisherfisherTue, 06 Sep 2005 05:47:00 GMThttp://www.aygfsteel.com/flyingbug/archive/2005/09/06/12209.htmlhttp://www.aygfsteel.com/flyingbug/comments/12209.htmlhttp://www.aygfsteel.com/flyingbug/archive/2005/09/06/12209.html#Feedback0http://www.aygfsteel.com/flyingbug/comments/commentRss/12209.htmlhttp://www.aygfsteel.com/flyingbug/services/trackbacks/12209.html四?/SPAN>预览l果

使用BIRT提供的预览窗口来预览所制作的报表,q是BIRT必须知道该如何找到在Script中引用的c,?/SPAN>BIRT的预览窗口是使用一个内嵌的web服务器来预览的,所以,我们需要将用于数据库资源访问的cd?/SPAN>script中用的cL包成jar攑օ到这?/SPAN>web-app?/SPAN>classpath下?/SPAN>

q个web-app是作Z?/SPAN>Eclipse?/SPAN>plugin存在的,它位|在Q?/SPAN>

<ECLIPSE_HOME>\plugins\org.eclipse.birt.report.viewer_1.0.0

打包好?/SPAN>jar文g攑օ到该plugin下的如下目录Q?/SPAN>

<ECLIPSE_HOME>\plugins\org.eclipse.birt.report.viewer_1.0.0\birt\WEB-INFO\lib

然后你的数据库讉Klg所依赖?/SPAN>jar文g都一q拷贝到q个lib目录下,q将数据库访问组仉要的配置文g攑օ?/SPAN>WEB-INFO下,以便其可以在q个web应用?/SPAN>classpath中找到自q配置文g

 

另外Q如果用配|文件的话,需要象?/SPAN>Tomcat中用配|文件一P配|文件拷贝到以下目录Q以?/SPAN>dom4j能够扑ֈ

<ECLIPSE_HOME>\plugins\org.eclipse.birt.report.viewer_1.0.0\birt\WEB-INFO\classes

 

最后,也是最重要的一点!也是困扰了我几个时的问?/SPAN>

教程中没有提刎ͼ拯完自qq些数据库访问组件后Q需要重?/SPAN>Eclipse才能使用Q!Q?/SPAN>

q个viewer?/SPAN>webE序会在每次Eclipse启动时启动,q读入这些配|信息,q行期则不会在重新装载配|信?/SPAN>

 

――――――――――?/SPAN>

另外Q还有另一U方法来发布数据库访问组Ӟ是编译好?/SPAN>class文g攑օ到这?/SPAN>WEB-INFO目录?/SPAN>classes目录下,但要注意要徏立目录以匚w自己的包l构Q就如同普通的TomcatE序那样

――――――――――?/SPAN>

预览l果Q(图)

o_Snap8.jpg
五?/SPAN>发布环境中运?/SPAN>

发布时的操作要比预览时简单的多,你可以将q个报表文g当作你的webE序中的一?/SPAN>JSP文g来通过URL来访问,q可以在URL中传递参数给报表文gQ以便指定查询条Ӟq些问题?/SPAN>BIRT的教E中讲的很清楚了Q这里就不再说明



fisher 2005-09-06 13:47 发表评论
]]>
[BIRT]-[Tutorial]-使用ScriptDataSet从POJO中获得数据(四)http://www.aygfsteel.com/flyingbug/archive/2005/09/06/12208.htmlfisherfisherTue, 06 Sep 2005 05:44:00 GMThttp://www.aygfsteel.com/flyingbug/archive/2005/09/06/12208.htmlhttp://www.aygfsteel.com/flyingbug/comments/12208.htmlhttp://www.aygfsteel.com/flyingbug/archive/2005/09/06/12208.html#Feedback0http://www.aygfsteel.com/flyingbug/comments/commentRss/12208.htmlhttp://www.aygfsteel.com/flyingbug/services/trackbacks/12208.html开始说正题

二?/SPAN>建立使用ScriptDataSource?/SPAN>ScripteDataSet?/SPAN>BIRT报表

在你?/SPAN>Web目中徏立一?/SPAN>report目录Qƈ在其中徏立一个报表文Ӟ如下Q?/SPAN>

o_Snap1.jpg

首先Q根?/SPAN>BIRT?/SPAN>Help文档中的教程Q徏立一?/SPAN>ScriptDataSourceQ?/SPAN>

o_Snap2.jpg
然后建立
ScriptDataSetQ?BR>

o_Snap3.jpg

然后鼠标叛_建立?SPAN lang=EN-US style="FONT-FAMILY: 'Courier New'">DataSet
Q选择~辑Q在左边选择‘输出列’,为其d三个输出列,cd为‘Q何’,建立?/SPAN>DataSet如下Q?BR>
o_Snap4.jpg

三?/SPAN>~写ScriptDataSetҎ

ScriptDataSet的主要方法有三个Q?/SPAN>open?/SPAN>fetch?/SPAN>close

打开rptdesign文gQ用鼠标点击srcDataSetQƈ在报表文件窗口下斚w择‘代码’,可以看到这些方法,q些是一些类javaScript的代码,q提供了一?/SPAN>BIRT自己的函敎ͼ下面说明q三个方法:

l         OpenҎQ?/SPAN>

OpenҎ用于引入java包,q创建数据库讉K资源

写入如下代码Q?/SPAN>

Q其?/SPAN>in_sys_user是数据库中的表)

o_Snap5.jpg
l         fetchҎQ?/SPAN>

fetchҎ用于取得数据qؓ报表复制

代码如下Q?/SPAN>
o_Snap6.jpg

l         closeҎQ?/SPAN>

closeҎ用于关闭资源

代码如下Q?/SPAN>
o_Snap7.jpg

 

 

 

 



fisher 2005-09-06 13:44 发表评论
]]>
[BIRT]-[Tutorial]-使用ScriptDataSet从POJO中获得数据(三)http://www.aygfsteel.com/flyingbug/archive/2005/09/06/12205.htmlfisherfisherTue, 06 Sep 2005 05:33:00 GMThttp://www.aygfsteel.com/flyingbug/archive/2005/09/06/12205.htmlhttp://www.aygfsteel.com/flyingbug/comments/12205.htmlhttp://www.aygfsteel.com/flyingbug/archive/2005/09/06/12205.html#Feedback0http://www.aygfsteel.com/flyingbug/comments/commentRss/12205.htmlhttp://www.aygfsteel.com/flyingbug/services/trackbacks/12205.htmlRowSet.java代表行的集合Q代码如下:

 1package com.bat.afp.DAOComm;
 2
 3import java.util.Iterator;
 4import java.util.Vector;
 5
 6/**
 7 * @author liuyf
 8 */

 9public class RowSet {
10
11    private Vector<Row>    vector    = new Vector<Row>();
12
13    public RowSet() {
14    }

15
16    public void add(Row row) {
17        vector.addElement(row);
18    }

19
20    public int length() {
21        return vector.size();
22    }

23
24    public Row get(int which) {
25        return (Row) vector.elementAt(which);
26    }

27    
28    public Iterator getIterator(){
29        return vector.iterator();
30    }

31
32    public void dump() {
33        Iterator<Row> itr = vector.iterator();
34        for (;itr.hasNext();) {
35            itr.next().dump();
36        }

37    }

38}

39

Row.java代表数据库中的一行数据,代码如下Q?BR>

 1package com.bat.afp.DAOComm;
 2
 3import java.util.Hashtable;
 4import java.util.Iterator;
 5import java.util.Vector;
 6
 7/**
 8 * @author liuyf
 9 */

10public class Row {
11
12    private Vector<String>                ordering    = new Vector<String>();
13
14    private Hashtable<String, String>    hashtable    = new Hashtable<String, String>();
15
16    public Row() {
17    }

18
19    public void put(String name, String value) {
20        if (!hashtable.containsKey(name))
21            ordering.addElement(name);
22        hashtable.put(name, value);
23    }

24
25    public int length() {
26        return hashtable.size();
27    }

28
29    public String get(String name) {
30        if(hashtable.get(name)!=null){
31            return hashtable.get(name);
32        }
else if(hashtable.get(name.toLowerCase())!=null){
33            return hashtable.get(name.toLowerCase());
34        }
else if(hashtable.get(name.toUpperCase())!=null){
35            return hashtable.get(name.toUpperCase());
36        }

37        
38        return null;
39    }

40
41    public String get(int which) {
42        String key = ordering.elementAt(which-1);
43        return hashtable.get(key);
44    }

45
46    public String getKey(int which) {
47        String key = ordering.elementAt(which-1);
48        return key;
49    }

50
51    public void dump() {
52        Iterator<String> itr = hashtable.keySet().iterator();
53        for (; itr.hasNext();) {
54            String name = itr.next();
55            String value = hashtable.get(name);
56            System.out.print(name + "=" + value + "");
57        }

58    }

59}

60



fisher 2005-09-06 13:33 发表评论
]]>
[BIRT]-[Tutorial]-使用ScriptDataSet从POJO中获得数据(二)http://www.aygfsteel.com/flyingbug/archive/2005/09/06/12204.htmlfisherfisherTue, 06 Sep 2005 05:30:00 GMThttp://www.aygfsteel.com/flyingbug/archive/2005/09/06/12204.htmlhttp://www.aygfsteel.com/flyingbug/comments/12204.htmlhttp://www.aygfsteel.com/flyingbug/archive/2005/09/06/12204.html#Feedback0http://www.aygfsteel.com/flyingbug/comments/commentRss/12204.htmlhttp://www.aygfsteel.com/flyingbug/services/trackbacks/12204.html阅读全文

fisher 2005-09-06 13:30 发表评论
]]>
[BIRT]-[Tutorial]-使用ScriptDataSet从POJO中获得数据(一Q?/title><link>http://www.aygfsteel.com/flyingbug/archive/2005/09/06/12203.html</link><dc:creator>fisher</dc:creator><author>fisher</author><pubDate>Tue, 06 Sep 2005 05:26:00 GMT</pubDate><guid>http://www.aygfsteel.com/flyingbug/archive/2005/09/06/12203.html</guid><wfw:comment>http://www.aygfsteel.com/flyingbug/comments/12203.html</wfw:comment><comments>http://www.aygfsteel.com/flyingbug/archive/2005/09/06/12203.html#Feedback</comments><slash:comments>6</slash:comments><wfw:commentRss>http://www.aygfsteel.com/flyingbug/comments/commentRss/12203.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/flyingbug/services/trackbacks/12203.html</trackback:ping><description><![CDATA[     摘要: 在前面说明过使用Script数据源来获得web service数据源的做法Q在实际操作中,发现虽然有BIRT的帮助文Ӟ但同事对BIRT的Script数据源的使用q是不太理解Q于是写Z文以便帮助用BIRT的高U特?  熟悉了BIRT的Script数据源之后,你会感叹BIRT功能之强大,BIRT团队承诺?.0中加入对数据库连接池的支持,但目前ؓ止,我们q只能通过Script数据...  <a href='http://www.aygfsteel.com/flyingbug/archive/2005/09/06/12203.html'>阅读全文</a><img src ="http://www.aygfsteel.com/flyingbug/aggbug/12203.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/flyingbug/" target="_blank">fisher</a> 2005-09-06 13:26 <a href="http://www.aygfsteel.com/flyingbug/archive/2005/09/06/12203.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>认识一下BIRT的开发厂?/title><link>http://www.aygfsteel.com/flyingbug/archive/2005/08/21/10627.html</link><dc:creator>fisher</dc:creator><author>fisher</author><pubDate>Sun, 21 Aug 2005 12:14:00 GMT</pubDate><guid>http://www.aygfsteel.com/flyingbug/archive/2005/08/21/10627.html</guid><wfw:comment>http://www.aygfsteel.com/flyingbug/comments/10627.html</wfw:comment><comments>http://www.aygfsteel.com/flyingbug/archive/2005/08/21/10627.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/flyingbug/comments/commentRss/10627.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/flyingbug/services/trackbacks/10627.html</trackback:ping><description><![CDATA[     q家旧金山南部的软g厂商Actuate是商业智能厂商中的佼D,于去q?月加入Eclipse为其制作了商业智能及报表工具(BIRT)Q用BIRT的朋友应该认识一下他。同时认识一下构架于BIRT上的商业lgQ这是Eclipse生态系l的威力?BR><BR>公司|站Q?BR><A >http://www.actuate.com/home/index.asp</A><img src ="http://www.aygfsteel.com/flyingbug/aggbug/10627.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/flyingbug/" target="_blank">fisher</a> 2005-08-21 20:14 <a href="http://www.aygfsteel.com/flyingbug/archive/2005/08/21/10627.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>l同事讲了一下Eclipsehttp://www.aygfsteel.com/flyingbug/archive/2005/08/05/9434.htmlfisherfisherFri, 05 Aug 2005 13:35:00 GMThttp://www.aygfsteel.com/flyingbug/archive/2005/08/05/9434.htmlhttp://www.aygfsteel.com/flyingbug/comments/9434.htmlhttp://www.aygfsteel.com/flyingbug/archive/2005/08/05/9434.html#Feedback0http://www.aygfsteel.com/flyingbug/comments/commentRss/9434.htmlhttp://www.aygfsteel.com/flyingbug/services/trackbacks/9434.html今天晚上l同事讲了一下Eclipse和SOAQ讲了一个多时Q没怎么准备讲的不太q瘾



fisher 2005-08-05 21:35 发表评论
]]>
վ֩ģ壺 Ͱ| | ƽ| | | | | | ˳| | | | | Ͳ| | | ²| | ˮ| | | | | | | ɽ| | ʯ| | | ʡ| Ҿ| | ų| ɽ| Ϻӿ| ¤| | | | |