Power Designer for Power Builder Wubark Kao System
Power. Designer for Power. Builder 高正宗 (Wubark Kao) System Consultant Manager Sybase Taiwan wkao@sybase. com
Power. Designer 9. 5 for Power. Builder § Power. Designer for Power. Builder Feature Summary § Reverse Engineering Power. Builder Applications § Designing Power. Builder Applications § Generating Power. Builder Applications § Future Direction
Power. Designer for Power. Builder Features Summary § Power. Designer 9. 5 正反向生成完全支援所有Power. Builder 物件 § 支援 libraries (. pbl) and source files (. sr*) § 支援 Power. Builder 6, 7, 8 and 9等版本 § 提供Power. Builder 具列 § 模組驗證 § PDM正反向生成Power. Builder extended attributes
Reverse Engineering Power. Builder Applications § Application, User Object, Structure, Function, Window, Proxy 轉成class structure § 其他物件如Data. Window, Query, Pipeline, …), 則將原始程 式碼轉至Class之Script中. § 反向生成支援libraries (. pbl)及source files (. sr*).
Reverse Engineering Power. Builder Applications § 提供反向生成選項. § 提供Power. Builder System Classes and PFC library的模組 來顯現父物件, 可了解系統全貌.
Displaying Power. Builder Objects in Class Diagram § A class diagram shows packages, inheritances, associations, dependencies, attributes, operations. § Each library is represented by a package. § A stereotype and a mini icon shows the type of object. § The dependencies show which menu or data window is used by which window. § Window, user object, application, structure, function and proxy are represented as classes and the code is regenerated from the class definition. § Other objects are represented as classes by the source code is kept and are not regenerated from the class definition. § Controls are represented by inner classes.
Displaying Power. Builder Objects in Class Diagram library Package Other Class Window user object Application Structure Function proxy Class Dependencies /Generation Inner Class
Example of a Class Diagram
Designing Power. Builder Applications § create, modify, delete objects or links. § Power. Builder 具列建立物件. § 定義interfaces 及 implement interfaces, 生成時會忽略 Interface. § 預覽Power. Builder code. § 直接由預覽畫面編輯Power. Builder code. § 以RTF format編寫程式規格, 且可直接以Word來編輯 description 或 annotation. § 生成HTML 或 RTF formats 之文件報表.
Defining Inheritances § A parent class could be a shortcut representing a class defined in another model for example for system classes.
Defining Events § Events are represented as operations. § An Event could be an operation with the «event» stereotype, with a language event or with an extended attribute Event. ID (pbm_*).
Overriding Properties § In the Attributes tab of the class property sheet, the Inherited button allows you to select the properties to override.
Previewing Power. Builder Code § Window, User Object, Application, Structure, Function and Proxy, Source code是由Class definition中產生, 可有 Preview 中瀏覽或修改. § Data. Window, Menu, Query等, 由Script tab中瀏覽或修改.
Verifying the Model § You could use the Check Model function to verify if the model is well defined. § There are Power. Builder specific checks.
Generating Power. Builder Applications § You can generate Power. Builder objects into libraries or source files. § You can select the objects you want to generate.
Future Direction § § Power. Designer 10. 0 will support tight integration with Power. Builder 10 will be able to embed Power. Designer views inside Power. Builder will be able to control Power. Designer will generate complete Power. Builder application code (post 10. 0)
Power. Designer and Power. Builder Together Summary § § Power. Designer: A Plugin Component in Power. Builder 10 Reverse Engineer From Power. Builder Design and Generate Power. Builder Code Using Power. Designer Navigation Between Power. Designer and Power. Builder
Power. Designer and Power. Builder Together Power. Designer: A Plugin Component in Power. Builder 10 § Power. Builder Plugin Manager Manages Plugin Components § § A plugin component can enable or disable by Plugin Manager Power. Designer Feature Will Be Available Only When It Is Turned On
Power. Designer and Power. Builder Together Power. Designer: A Plugin Component in Power. Builder 10
Power. Designer for Power. Builder 高正宗 (Wubark Kao) System Consultant Manager Sybase Taiwan wkao@sybase. com
- Slides: 22