eclipse dorado plugin

http://lindows.iteye.com/blog/224004

 

下载中心

http://www.bstek.com/downloadcenter.htm

 

dorado debug shutcut
page time:Ctrl+Shift+F12

 

bstekIDE Eclipse插件扩展点应用介绍

http://macrochen.iteye.com/blog/138625

 

BstekIDE_1.2.2_Installer.jar

http://www.bstek.com/download?subpath=eclipse$2F

 

大小 最后修改时间 下载数量
BstekDoradoStudioPluginInstallGuideline-v01-20070717.zip 67KB 2008-01-22 10:02:34 761
BstekIDE_1.2.1_Installer.exe 60,171KB 2008-04-14 14:59:40 30
BstekIDE_1.2.2_Installer.exe 63,258KB 2008-04-23 17:25:05 59
BstekIDE_1.2.3_Installer.jar 73,111KB 2008-06-24 18:17:03 18
BstekIDE_1.2.4_Installer.jar 73,425KB 2008-07-09 19:25:48 227
BstekIDE_1.2.5_Installer.jar 73,444KB 2008-09-01 18:35:04 224
BstekIDE_1.2_Installer.exe 50,665KB 2008-03-21 11:06:42 25
BstekIDE_1.2_Installer.jar 52,143KB 2008-03-21 18:06:31 17
com.bstek.ide.site <Folder> 2008-04-02 13:44:14 <Folder>
HelloWorld_Eclipse.rar 69,662KB 2008-01-22 17:02:30 60
update

 

dorado begin ...

1.http://www.bstek.com/download?subpath=dorado$2Fdorado5$2Ezip/

D:\dorado5\如何开始.txt

请首先运行setup.bat完成dorado自动配置.
目录说明:
 - [doc] 文档.
 - [lib] dorado项目所需要使用到的jar.
 - [sample] 一套演示如何使用dorado的例程.
 - [studio] 集成开发工具.
 - [upgrade] 与自动版本升级相关的文件.
安装说明:
  1.运行安装目录下的setup.dat,仔细阅读两个选项说明.
  2.双击dorado studio快捷方式启动dorado开发工具.
  3.点击dorado studio开发工具顶部的Start Up Service按钮启动自带的Web服务器.
  (这时会自动打开dorado sample的页面,更多的使用说明请参考sample和doc/下的开发手册)
附注:
 - 登录dorado控制台(http://server:port/yourapp/console.d)的初始用户名为admin, 初始口令为dorado.
 - 登录studio中服务的初始用户名为dev, 初始口令为dorado.

dorado current version:5.2 071127.1604 STD

D:\dorado5\studio\studio.exe

 

studio.exe>>>Start Up Service

 

 

http://localhost:8180/doradosample/main.jsp

 

studio.exe>>>Create a NEW Project>>>hr

 

Project >>>Configures>>>datasource>>>add

Xml代码 复制代码 收藏代码eclipse <wbr>dorado <wbr>plugin
  1. Name:hrJDBC   
  2. Type:JDBC  
Name:hrJDBC
Type:JDBC

press "ok"

D:\dorado5\hr\home\datasource.xml

Xml代码 复制代码 收藏代码eclipse <wbr>dorado <wbr>plugin
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <datasources>  
  3.     <datasource name="hrJDBC" type="JDBC">  
  4.         <minEvictableIdleTimeMillis>30000</minEvictableIdleTimeMillis>  
  5.         <timeBetweenEvictionRunsMillis>30000</timeBetweenEvictionRunsMillis>  
  6.         <driver>org.hsqldb.jdbcDriver</driver>  
  7.         <url>jdbc:hsqldb:D:/dorado5/hr/data/hsqldb/</url>  
  8.         <dialect>com.bstek.dorado.data.db.dialect.HSQLDBDialect</dialect>  
  9.         <user>sa</user>  
  10.         <minIdle>0</minIdle>  
  11.         <maxIdle>0</maxIdle>  
  12.         <maxActive>0</maxActive>  
  13.         <loginTimeout>0</loginTimeout>  
  14.         <maxWait>0</maxWait>  
  15.     </datasource>  
  16. </datasources>  
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
    <datasource name="hrJDBC" type="JDBC">
        <minEvictableIdleTimeMillis>30000</minEvictableIdleTimeMillis>
        <timeBetweenEvictionRunsMillis>30000</timeBetweenEvictionRunsMillis>
        <driver>org.hsqldb.jdbcDriver</driver>
        <url>jdbc:hsqldb:D:/dorado5/hr/data/hsqldb/</url>
        <dialect>com.bstek.dorado.data.db.dialect.HSQLDBDialect</dialect>
        <user>sa</user>
        <minIdle>0</minIdle>
        <maxIdle>0</maxIdle>
        <maxActive>0</maxActive>
        <loginTimeout>0</loginTimeout>
        <maxWait>0</maxWait>
    </datasource>
</datasources>
 


copy D:\dorado5\sample\web\WEB-INF\lib\hsqldb.jar to D:\dorado5\hr\web\WEB-INF\lib\hsqldb.jar

 

2.test hr_jdbc

 

studio.exe>>>Start Up Service>>>Project>>>hr>>>Configures>>>datasource>>>Validate>>>Test Finished Sucessfully!

为了方便以后的开发,我们需要把hrJDBC数据源配置到项目树的configures节点下的setting配置文件中。

D:\dorado5\hr\home\setting.xml

Xml代码 复制代码 收藏代码eclipse <wbr>dorado <wbr>plugin
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <properties>  
  3.     <property name="common.defaultDataSource" value="hrJDBC"/>  
  4.    <!-- 略 -->  
  5. </properties>  
<?xml version="1.0" encoding="UTF-8"?>
<properties>
        <property name="common.defaultDataSource" value="hrJDBC"/>
   <!-- 略 -->
</properties>
 

3.添加视图模型对象

D:\dorado5\hr\src\com\bstek\dorado\demo\hr\Login.view.xml

Xml代码 复制代码 收藏代码eclipse <wbr>dorado <wbr>plugin
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <view>  
  3.     <Datasets>  
  4.     </Datasets>  
  5.     <Controls>  
  6.     </Controls>  
  7. </view>  
<?xml version="1.0" encoding="UTF-8"?>
<view>
        <Datasets>
        </Datasets>
        <Controls>
        </Controls>
</view>

4.添加DataSet对象

 

 

dorado studio jdbc

jdbc/sntest
com.bstek.dorado.data.db.dialect.Oracle10gDialect
oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@192.168.100.120:1521:sntest
snworkorder
snworkorder

 

查询操作

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

D:\dorado5\provider\web\WEB-INF\classes\doradohome\datasource.xml

Xml代码 复制代码 收藏代码eclipse <wbr>dorado <wbr>plugin
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <datasources>  
  3.     <datasource name="jdbc/sntest" type="JDBC">  
  4.         <minEvictableIdleTimeMillis>30000</minEvictableIdleTimeMillis>  
  5.         <timeBetweenEvictionRunsMillis>30000</timeBetweenEvictionRunsMillis>  
  6.         <driver>oracle.jdbc.driver.OracleDriver</driver>  
  7.         <url>jdbc:oracle:thin:@192.168.100.120:1521:sntest</url>  
  8.         <dialect>com.bstek.dorado.data.db.dialect.Oracle10gDialect</dialect>  
  9.         <user>snworkorder</user>  
  10.         <password>snworkorder</password>  
  11.         <minIdle>0</minIdle>  
  12.         <maxIdle>0</maxIdle>  
  13.         <maxActive>0</maxActive>  
  14.         <loginTimeout>0</loginTimeout>  
  15.         <maxWait>0</maxWait>  
  16.     </datasource>  
  17. </datasources>  
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
        <datasource name="jdbc/sntest" type="JDBC">
                <minEvictableIdleTimeMillis>30000</minEvictableIdleTimeMillis>
                <timeBetweenEvictionRunsMillis>30000</timeBetweenEvictionRunsMillis>
                <driver>oracle.jdbc.driver.OracleDriver</driver>
                <url>jdbc:oracle:thin:@192.168.100.120:1521:sntest</url>
                <dialect>com.bstek.dorado.data.db.dialect.Oracle10gDialect</dialect>
                <user>snworkorder</user>
                <password>snworkorder</password>
                <minIdle>0</minIdle>
                <maxIdle>0</maxIdle>
                <maxActive>0</maxActive>
                <loginTimeout>0</loginTimeout>
                <maxWait>0</maxWait>
        </datasource>
</datasources>

 

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

D:\dorado5\provider\web\WEB-INF\classes\provider.view.xml

Xml代码 复制代码 收藏代码eclipse <wbr>dorado <wbr>plugin
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <view>  
  3.     <Datasets>  
  4.         <Dataset id="dataset1" type="Wrapper" wrappedType="AutoSql" dataSource="jdbc/sntest" originTable="TBL_EMPLOYEE" keyFields="EMPLOYEEID">  
  5.             <Joins />  
  6.             <Fields>  
  7.                 <Field name="EMPLOYEEID" originField="EMPLOYEEID" table="TBL_EMPLOYEE" dataType="string" group="false">  
  8.                     <Properties />  
  9.                 </Field>  
  10.                 <Field name="EMPLOYEENAME" originField="EMPLOYEENAME" table="TBL_EMPLOYEE" dataType="string" group="false">  
  11.                     <Properties />  
  12.                 </Field>  
  13.                 <Field name="MOBILENUM" originField="MOBILENUM" table="TBL_EMPLOYEE" dataType="string" group="false">  
  14.                     <Properties />  
  15.                 </Field>  
  16.                 <Field name="JOBLEVEL" originField="JOBLEVEL" table="TBL_EMPLOYEE" dataType="string" group="false">  
  17.                     <Properties />  
  18.                 </Field>  
  19.                 <Field name="EMPLOYEESYSTEMCODE" originField="EMPLOYEESYSTEMCODE" table="TBL_EMPLOYEE" dataType="string" group="false">  
  20.                     <Properties />  
  21.                 </Field>  
  22.                 <Field name="KINDCODE" originField="KINDCODE" table="TBL_EMPLOYEE" dataType="string" group="false">  
  23.                     <Properties />  
  24.                 </Field>  
  25.                 <Field name="KINDNAME" originField="KINDNAME" table="TBL_EMPLOYEE" dataType="string" group="false">  
  26.                     <Properties />  
  27.                 </Field>  
  28.                 <Field name="EMAIL" originField="EMAIL" table="TBL_EMPLOYEE" dataType="string" group="false">  
  29.                     <Properties />  
  30.                 </Field>  
  31.                 <Field name="PHONENUM" originField="PHONENUM" table="TBL_EMPLOYEE" dataType="string" group="false">  
  32.                     <Properties />  
  33.                 </Field>  
  34.                 <Field name="ORGFINACIALCODE" originField="ORGFINACIALCODE" table="TBL_EMPLOYEE" dataType="string" group="false">  
  35.                     <Properties />  
  36.                 </Field>  
  37.                 <Field name="ORGFINACIALNAME" originField="ORGFINACIALNAME" table="TBL_EMPLOYEE" dataType="string" group="false">  
  38.                     <Properties />  
  39.                 </Field>  
  40.             </Fields>  
  41.             <MatchRules>  
  42.                 <MatchRule level="1" dataType="string" escapeEnabled="true" table="TBL_EMPLOYEE" originField="EMPLOYEEID" operator="=" value=":EMPLOYEEID" />  
  43.             </MatchRules>  
  44.             <SortRules />  
  45.             <MasterLink />  
  46.             <Parameters />  
  47.             <Properties />  
  48.         </Dataset>  
  49.         <Dataset id="datasetQuery" type="Form">  
  50.             <MasterLink />  
  51.             <Fields>  
  52.                 <Field name="EMPLOYEEID" dataType="string">  
  53.                     <Properties />  
  54.                 </Field>  
  55.             </Fields>  
  56.             <Parameters />  
  57.             <Properties />  
  58.         </Dataset>  
  59.     </Datasets>  
  60.     <Controls>  
  61.         <Control id="table1" type="DataTable" dataset="dataset1" editable="false" width="100%" />  
  62.         <Control id="buttonQuery" type="Button" command="commandQuery" />  
  63.         <Control id="commandQuery" type="QueryCommand" conditionDataset="datasetQuery" queryDataset="dataset1">  
  64.             <Parameters />  
  65.             <Events />  
  66.         </Control>  
  67.         <Control id="pagepilot1" type="PagePilot" dataset="dataset1" />  
  68.         <Control id="formConditions" type="AutoForm" dataset="datasetQuery" groupType="subwindow">  
  69.             <FormGroup>  
  70.                 <Element name="EMPLOYEEID" field="EMPLOYEEID" type="TextEditor">  
  71.                     <FieldLabel />  
  72.                     <TextEditor />  
  73.                 </Element>  
  74.             </FormGroup>  
  75.         </Control>  
  76.     </Controls>  
  77.     <Properties />  
  78. </view>  
<?xml version="1.0" encoding="UTF-8"?>
<view>
        <Datasets>
                <Dataset id="dataset1" type="Wrapper" wrappedType="AutoSql" dataSource="jdbc/sntest" originTable="TBL_EMPLOYEE" keyFields="EMPLOYEEID">
                        <Joins />
                        <Fields>
                                <Field name="EMPLOYEEID" originField="EMPLOYEEID" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                                <Field name="EMPLOYEENAME" originField="EMPLOYEENAME" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                                <Field name="MOBILENUM" originField="MOBILENUM" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                                <Field name="JOBLEVEL" originField="JOBLEVEL" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                                <Field name="EMPLOYEESYSTEMCODE" originField="EMPLOYEESYSTEMCODE" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                                <Field name="KINDCODE" originField="KINDCODE" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                                <Field name="KINDNAME" originField="KINDNAME" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                                <Field name="EMAIL" originField="EMAIL" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                                <Field name="PHONENUM" originField="PHONENUM" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                                <Field name="ORGFINACIALCODE" originField="ORGFINACIALCODE" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                                <Field name="ORGFINACIALNAME" originField="ORGFINACIALNAME" table="TBL_EMPLOYEE" dataType="string" group="false">
                                        <Properties />
                                </Field>
                        </Fields>
                        <MatchRules>
                                <MatchRule level="1" dataType="string" escapeEnabled="true" table="TBL_EMPLOYEE" originField="EMPLOYEEID" operator="=" value=":EMPLOYEEID" />
                        </MatchRules>
                        <SortRules />
                        <MasterLink />
                        <Parameters />
                        <Properties />
                </Dataset>
                <Dataset id="datasetQuery" type="Form">
                        <MasterLink />
                        <Fields>
                                <Field name="EMPLOYEEID" dataType="string">
                                        <Properties />
                                </Field>
                        </Fields>
                        <Parameters />
                        <Properties />
                </Dataset>
        </Datasets>
        <Controls>
                <Control id="table1" type="DataTable" dataset="dataset1" editable="false" width="100%" />
                <Control id="buttonQuery" type="Button" command="commandQuery" />
                <Control id="commandQuery" type="QueryCommand" conditionDataset="datasetQuery" queryDataset="dataset1">
                        <Parameters />
                        <Events />
                </Control>
                <Control id="pagepilot1" type="PagePilot" dataset="dataset1" />
                <Control id="formConditions" type="AutoForm" dataset="datasetQuery" groupType="subwindow">
                        <FormGroup>
                                <Element name="EMPLOYEEID" field="EMPLOYEEID" type="TextEditor">
                                        <FieldLabel />
                                        <TextEditor />
                                </Element>
                        </FormGroup>
                </Control>
        </Controls>
        <Properties />
</view>

D:\dorado5\provider\web\provider.jsp

Html代码 复制代码 收藏代码eclipse <wbr>dorado <wbr>plugin
  1.  <%@ page contentType="text/html; charset=UTF-8" %>  
  2. <%@ taglib uri="http://www.bstek.com/dorado" prefix="d" %>  
  3. <html>  
  4. <head>  
  5. <title></title>  
  6. </head>  
  7. <body>  
  8.   <d:View config="provider">  
  9.     <d:DataTable id="table1" />  
  10.         <d:AutoForm id="formConditions" />  
  11.             <d:PagePilot id="pagepilot1" />  
  12.     <d:Button id="buttonQuery" />  
  13.   
  14.   
  15.   </d:View>  
  16. </body>  
  17. </html>  
 <%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://www.bstek.com/dorado" prefix="d" %>
<html>
<head>
<title></title>
</head>
<body>
  <d:View config="provider">
    <d:DataTable id="table1" />
        <d:AutoForm id="formConditions" />
            <d:PagePilot id="pagepilot1" />
    <d:Button id="buttonQuery" />


  </d:View>
</body>
</html>

 

sdfasfasf

Dorado在Eclipse中的集成

http://jarik.iteye.com/blog/169276

 

一、新建Eclipse工程。 
二、拷贝dorado中的HOME文件夹到新工程中。 
三、拷贝dorado中sample\web\WEB-INF下的dorado.properties,dorado.tld,dynamic-dropdown2.jsp三个文件到新工程的WEB-INF下。 
四、修改dorado.properties文件: 
    configFileLoader=com.bstek.dorado.common.fileloader.PathFileLoader 
    configFileLoader.root=D:/eclipse/workspace/sample2/home 
    sourceFileLoader=com.bstek.dorado.common.fileloader.PathFileLoader 
    sourceFileLoader.root=D:/eclipse/workspace/sample2/src 

    D:/eclipse/workspace/sample2为工程路径。  
五、修改新工程下的web.xml文件。 
    将dorado中sample\web\WEB-INF的web.xml文件内容中的 
  <filter> 
    <filter-name>doradofilter</filter-name> 
    <filter-class>com.bstek.dorado.core.DoradoFilter</filter-class> 
  </filter> 
  <filter-mapping> 
    <filter-name>doradofilter</filter-name> 
    <url-pattern>/*</url-pattern> 
  </filter-mapping> 
  <servlet> 
    <servlet-name>doradoservlet</servlet-name> 
    <servlet-class>com.bstek.dorado.core.DoradoServlet</servlet-class> 
    <load-on-startup>2</load-on-startup> 
  </servlet> 
  <servlet-mapping> 
    <servlet-name>doradoservlet</servlet-name> 
    <url-pattern>*.d</url-pattern> 
  </servlet-mapping> 
  <taglib> 
    <taglib-uri>http://www.bstek.com/dorado</taglib-uri> 
    <taglib-location>/WEB-INF/dorado.tld</taglib-location> 
  </taglib> 

  粘贴到新工程的web.xml中,结果如下: 
  <?xml version="1.0" encoding="UTF-8"?> 
<web-app version="2.4" 
xmlns="http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> 

  <filter> 
    <filter-name>doradofilter</filter-name> 
    <filter-class>com.bstek.dorado.core.DoradoFilter</filter-class> 
  </filter> 
  <filter-mapping> 
    <filter-name>doradofilter</filter-name> 
    <url-pattern>/*</url-pattern> 
  </filter-mapping> 
  <servlet> 
    <servlet-name>doradoservlet</servlet-name> 
    <servlet-class>com.bstek.dorado.core.DoradoServlet</servlet-class> 
    <load-on-startup>2</load-on-startup> 
  </servlet> 
  <servlet-mapping> 
    <servlet-name>doradoservlet</servlet-name> 
    <url-pattern>*.d</url-pattern> 
  </servlet-mapping> 
  <jsp-config>  
  <taglib> 
    <taglib-uri>http://www.bstek.com/dorado</taglib-uri> 
    <taglib-location>/WEB-INF/dorado.tld</taglib-location> 
  </taglib> 
  </jsp-config>  
</web-app> 

其中红色部分的<jsp-config></jsp-config>为增加的内容,因为jsp使用的标签库是2.4的,所以加这一部分内容。  
六、拷贝dorado中sample\web\WEB-INF\lib文件夹下的所有jar包到新工程的WEB-INF\lib下。 

七、发布工程,测试配置是否正确。若出现以下信息,表示配置正确: 
[dorado] >>> Starting Service... ... ... 
[dorado] Using JDOM 0.9 as XML processor 
[dorado] Configure loader: com.bstek.dorado.common.fileloader.PathFileLoader 
[dorado] Configure root: D:/eclipse/workspace/sample2/home 
[dorado] Source loader: com.bstek.dorado.common.fileloader.PathFileLoader 
[dorado] Source root: D:/eclipse/workspace/sample2/src 
[dorado] Loading "setting.xml"... 
[dorado] Initializing Logger... 
[dorado] Initializing Performance Moniter... 
[dorado] Loading "user-config.xml"... 
[dorado] Loading "mapping/global.map.xml"... 
[dorado] Loading "mapping/dorado.map.xml"... 
[dorado] Loading "mapping/sample.map.xml"... 
[dorado] Initializing Velocity Service... 
[dorado] Initializing Connection Pool... 
[dorado] Testing Connection "doradosample"... 
[dorado] Initializing Module Manager... 
[dorado] >>> Service Started! 
[dorado] Version: dorado-5.0 061119.2050 (Unregistered) 

八、在新工程中新建文件。 
    命名为 工程名.dorado 
    比如工程名为exemple,那么新建的文件名为exemple.dorado 
    将dorado\sample下的doradosample.dorado的内容拷贝到新建的文件里。 
    #Dorado Project 
    #Wed Jun 01 03:14:16 CST 2005 
    webApp=doradosample 
    port=8180 
    sourcePath=${project.root}/src 
    localHome=${project.root}/home 
    defaultURI= 
    server=localhost 
    webRoot=${project.root}/web  
    autoBrowse=true 
    javaSourceEncoding=UTF-8 

    修改内容中的web为WebRoot,修改后的内容为:  
    #Dorado Project 
    #Wed Jun 01 03:14:16 CST 2005 
    webApp=doradosample 
    port=8180 
    sourcePath=${project.root}/src 
    localHome=${project.root}/home 
    defaultURI= 
    server=localhost 
    webRoot=${project.root}/WebRoot     autoBrowse=true 
    javaSourceEncoding=UTF-8 



新增加: 

九、在新建的工程中利用hibernate开发。 
    将sample\src\sample\skills\data下的hibernate和vo两个文件夹拷贝到新工程下面,在新工程新建一个包,名字为工程名+skills.data,比如工程名为sample,那么新建的包名为sample.skills.data。

 

dsfsfasdfaf

 

BANK

 

Js代码 复制代码 收藏代码eclipse <wbr>dorado <wbr>plugin
  1. buttonDel      
  2.   
  3.       onClick   
  4.   
  5.            delRecord(datasetBank,cmdDel);   
  6.   
  7. cmdDel   
  8.   
  9.       dataset:datasetBank   
  10.   
  11.       flashDataOnSuccess true  
buttonDel   

      onClick

           delRecord(datasetBank,cmdDel);

cmdDel

      dataset:datasetBank

      flashDataOnSuccess true
 


end

 

 

 

 

posted @ 2012-06-19 10:43  刘竹青  阅读(227)  评论(0编辑  收藏  举报