1) workbench basics
TRANSCRIPT
IBM RAD
© 2008 IBM Corporation
Section -1) Workbench BasicsWorkbench Basics
IBM AI - RAD
Section 1 - Section 1 - Workbench Basics (15%)Workbench Basics (15%)
Set Workbench preferences Set Workbench preferences Work with perspectives and views Work with perspectives and views Use the import and export wizards Use the import and export wizards Use the Help feature to aid in development Use the Help feature to aid in development
activities activities Use the Local History to compare and replace Use the Local History to compare and replace
resources resources Manage workspacesManage workspaces
IBM AI - RAD
Model the Business Define
Requirements
Design
Construction
Deploy
Manage
Optimize
Business Driven Development
Executive
Application Support
ArchitectProject Manager
Tester
Deployment Manager
Developer
Business
DevelopmentOperations
Manage change& assets
Prioritize Plan Manage Measure
Optimize Iterate
End User
Operations Manager
AnalystGovern
SWQuality &Testing
IBM AI - RAD
RAD End-2-End Design & Construction
ApplicationModeling
Java/J2EEDevelopment
Web/PortalDevelopment
XML Web ServicesDevelopment
Database AppDevelopment
Business ProcessSOA Integration
Cobol, CICS/IMS,4GL Development
Development Roles
Web Presentation Servers
Web Application Servers
Directory and Security Servers
DataServers
Integration Servers
TransactionServers
CustomersPartnersSuppliers
Employees
GUIs, Pervasive Devices, Voice, etc.
XML, Web Services, Portlets, Servlets,
Java Server Faces/Pages
Services, EJBs, and SOA Work
Flows
Relational and Non-relational
Data
Applications, Transactions and Processes
Web
Serv
ices:
SO
AP
, W
SD
L,
UD
DI
Ed
ge
Se
rve
rs
IBM AI - RAD
IBM Rational Application Developer – Key Features
Web application development- Web Site Design, Templates, Styles, Themes and Fragments- Drag & Drop Page Design and Construction- Point & Click Database Access- Event-driven programming model
J2EE application development- Tools to easily build and test J2EE components with built-in test
environments
Rich Client development- JavaServer Pages, Struts and Faces Client Components for HTML
client- SWING, AWT, SWT support for Java client
Web Services development- Easily consume and produce Web services from a variety of sources
XML application development
IBM AI - RAD
IBM Rational Application Developer – Key Features
Visual application development- Visualize and graphically edit code and objects- UML Visualization of objects for enhanced understanding and productivity
Portal & Portlet application development- Visual Portal and Portlet Designer with built-in portal test environment
Code quality tools- Automated Code Review- Runtime Analysis and Profiling
Software Development Process- RUP Configuration for J2EE
Web report development- Included Crystal Reports development environment- Native Java Reporting Component - Embedded Report Designer
IBM AI - RAD
IBM Rational Application Developer – Results
Increased Productivity Fast, streamlined Development environment Comprehensive Tutorials and Application Samples Full power of Eclipse 3.0 platform Rich, Customizable, Enhanced, Responsive User Experience
Scalable, reliable, robust platform Full power of WebSphere Application Server Platform Built-on Industry Standard, Open, Portable and Multi-tier J2EE Architecture
Increased Code Quality Code analysis tools
Lower TCO Integrated with extensible and modular IBM Rational Software Development
Platform Add additional Software Development capabilities as needed Reduce training and Support Cost
IBM AI - RAD
What Is a Workspace? (1 of 2)
The workspace is a collection of resources that you as a developer use to create applications.- Projects, folders, files
When Rational Application Developer launches, it prompts you for the address of a workspace.
The workspace can only be opened by one user at a time.
IBM AI - RAD
What Is a Workspace? (2 of 2)
The workspace can be located anywhere, but is typically separate from the Rational Application Developer installation.
Workspace Web ProjectRational ApplicationDeveloper install
IBM AI - RAD
Displaying the Workspace Location
To see the location of the workspace associated with the workbench:- Select File Switch Workspace
IMPORTANT: hit Cancel to close the dialog, or the Workbench will exit and re-open, even if it is to the same workspace.
- At launch use the –showlocation directive“ <install path>\eclipse.exe“ –showlocation This will add the workspace location to the title bar
IBM AI - RAD
Welcome Page
OverviewWhat’s
NewTutorials Samples
First Steps
Web Resources
IBM AI - RAD
What Is the Workbench?
The term workbench refers to the desktop development environment used in RAD
RAD contains many perspectives but you can only interact with one perspective at a time.
The workbench gives you access to all the resources of the workspace.
IBM AI - RAD
Perspectives
A perspective is a collection of views, toolbar icons and menus, grouped to accomplish a specific type of work.
Perspectives: Act as containers for views and
content editors used for performing a set of related tasks
Control some menu and toolbar options
Define the initial layout and views contained in the workbench window
IBM AI - RAD
Customizing Perspectives
The Windows > Customize Perspectives menu allows you to define four aspects of the current perspective.- File >New
Adds or removes wizards that appear under this menu
- Window >Open PerspectiveAdds or removes perspectives that appear under this menu
- Window >Show ViewAdds or removes views that appear under this menu
- CommandsAdds or removes command groups to or from the command toolbar
IBM AI - RAD
Saving Perspectives
After creating your own custom arrangements of views, save it as a new perspective- Select Window >Save
Perspective As
You can Reset perspectives- Select Window > Reset
Perspective- Useful if you accidentally
delete / modify something
IBM AI - RAD
ViewsThere are two states for views- Single
There are no other views at that position in the perspective
- StackedThere are other available views, represented by tabs at the top of the view pane
Single ViewStacked Views
IBM AI - RAD
Java Perspective
Default views in the Java perspective include:- Package Explorer
- Outline
- Console
- Hierarchy
- Search
- Tasks
IBM AI - RAD
J2EE PerspectiveThe default views in the J2EE perspective assist you in developing resources for:
- Project navigator
- Properties view
- Servers view
- J2EE hierarchy
- Status bar
IBM AI - RAD
Displaying Views
Any view can be added to any perspective by selecting Window >Show View from the menu.
If a view is not shown in the list, select Other.… In the window that opens, views are arranged by type (Basic, Java, Web, and so on).
Views can be rearranged.- Drag the view by the title bar to the new
location
- The position of a view is a property of the perspective
IBM AI - RAD
Fast Views
You can quickly open and close fast views.- This functionality is available via the fast view bar
Two ways to create a fast view:- Drag a view onto the shortcut bar- Right-click the view icon and choose Fast View
To restore a fast view, right-click the icon in the shortcut bar, and clear the Fast View option.
IBM AI - RAD
EditorsSeveral editors can be opened at the same time
- You can stack or tile Editors
- An asterisk * named file indicates its modified but not saved
When an editor is active, the workbench menu bar and tool bar contain operations applicable to that editor
IBM AI - RAD
Environment Settings
The Application Developer environment can be customized using:
- Capabilities- Preferences
IBM AI - RAD
Capabilities
The Capabilities Preferences page allows you to enable or disable various product components.- For example, Java Developer, Web Developer, etc.
Some capability selections have dependencies on others.
IBM AI - RAD
Preferences
The Application Developer environment provides user-specified preferences for controlling:
- The general Workbench Preferences
- The Application Developer Preferences
IBM AI - RAD
Projects
You can create projects with different structures, according to the area of development.
- Java, Web, Enterprise JavaBeans (EJB), portal, and others
All resources are held in projects.You can delete projects from the workbench or the workspace.
- The default is to delete from the workbench only
IBM AI - RAD
Deleting an Enterprise Application Project
IBM AI - RAD
Create a New Project
1
2
3
IBM AI - RAD
Add Folders and Files to a Project
RAD will only allow certain resources to be created in an appropriate place.- For example, you can only create a JSP in either the WebContent folder or a sub-
folder
You can use drag and drop to also move resources.
IBM AI - RAD
Local History
Each save creates a new edition in the local history- A multi-day undo, per resource
No formal repository system is needed- The history sits in a subfolder under your .metadata folder in the
workspace folder
You can compare and replace with previous versionsHistory is kept for a limited period of time
- Configure via the Window >Preferences >General >Workspace >Local History
You can set:- How long the history files are kept
- The maximum number of entries in a file
- The maximum size for a file
IBM AI - RAD
Replace with Local History
You can use local history to return to a previous state in the code.- You may decide that the code you wrote today is not good, and want to return to
yesterday’s state- A section may have been accidentally deleted
History is date and time
stamped
1 2
IBM AI - RAD
Comparing Files
Highlight any two files and select Compare With > Each Other from the
context pop-up menu
Compare one file to its local history
Move information from one file to the other 1 2 3 4 5 6
IBM AI - RAD
Importing or Exporting
You can import or export individual files or entire projects:
- Using the Import wizard- Dragging folders and files
from the system to the Navigator view
- Copying folders and files from the file system and pasting them into the Navigator view
IBM AI - RAD
Share Workbench Preferences
Exporting and importing your workbench preferences saves you the task of having to manually set workbench settings for each workspace.
Export your workbench settings to a file using the Export feature.- Select File >Export.- In the Export wizard, select
General >Preferences and select Next.
- Once you have saved the file, import the file in your new workspaces, or share it with your development team.
IBM AI - RAD
Help
Application Developer Help resources include:- Welcome screen
- Cheat sheets
- Code samples
- Tips and tricks
- Tutorials gallery
IBM AI - RAD
Help and Online Training Resources
Help menu includes:- Tips and tricks
- Cheat sheets
- Samples Galleries
Help contents include:- Overview
- First steps
- Tutorials
- Samples
- Online Help
IBM AI - RAD
Help Topics: Help Search and Help Contents
The Help Window (Help > Help Contents) can be used to search for a
specific word or phrase.
You also have the option to select contents by category.- For example, Developing Web Applications
A search result page can be put into the context of a category by clicking
the icon Show in table of contents.
1
IBM AI - RAD
Help Topics: Cheat Sheets
A cheat sheet helps you complete some task.- It lists the sequence of steps required to
help you achieve the taskAs you progress from one step to the
next, the cheat sheet will automatically launch the required tools for you.
If there is a manual step, you perform the task, then click a button in the cheat sheet to move on to the next step.
Access cheat sheets from the Help menu.
IBM AI - RAD
Checkpoint
1.What is a workspace?
2.What is the workbench?
3.What is a perspective?
4.Explain the term Capabilities.
5.When you use the context pop-up menu item Compare With, what can be compared?
6.How can you import a JAR?
IBM AI - RAD
Checkpoint answers
1.A collection of resources that a developer uses to create applications.
2.Desktop development environment used in Rational Application Developer.
3.A collection of views, toolbar icons and menus that are shown together in order to accomplish a specific type of work.
4.Capabilities preference page allows you to enable or disable various product components.
5.One file to its own local history, or two files with each other.
6.It depends what you want to do with it. Either via File import, which leaves it as a JAR, or via archive import, which explodes the JAR.
IBM AI - RAD
Lab
RAD InstallationManage WorkspaceWelcome ScreenWorkbench, Perspectives & ViewsPreferencesCreate and delete projectsImport and exportCompare & replaceHelp Menu
IBM AI - RAD
Japanese
Hebrew
Thank You
English
MerciFrench
Russian
DankeGerman
GrazieItalian
GraciasSpanish
Obrigado Portuguese
Arabic
Simplified Chinese
Traditional Chinese
Thai
Korean