Vikas Manoria IT Specialist – IBM Academic Initiative [email_address] Section -1) Workbench Basics
Section 1 - Workbench Basics (15%)
Set Workbench preferences
Work with perspectives and views
Use the import and export wizards
Use the Help feature to aid in development activities
Use the Local History to compare and replace resources
Business Driven Development Model the Business Define Requirements Design Construction Deploy Manage Optimize Executive Project Manager Business Development Operations Manage change & assets Prioritize Plan Manage Measure Optimize Iterate Govern SW Quality & Testing Application Support Architect Tester Deployment Manager Developer End User Operations Manager Analyst
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.
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 Project Rational Application Developer install
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
Welcome Page Overview What’s New Tutorials Samples First Steps Web Resources
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.
A perspective is a collection of views, toolbar icons and menus, grouped to accomplish a specific type of work.
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
The Windows > Customize Perspectives menu allows you to define four aspects of the current perspective.
Adds or removes wizards that appear under this menu
Window >Open Perspective
Adds or removes perspectives that appear under this menu
Window >Show View
Adds or removes views that appear under this menu
Adds or removes command groups to or from the command toolbar
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
There are two states for views
There are no other views at that position in the perspective
There are other available views, represented by tabs at the top of the view pane
Single View Stacked Views
Default views in the Java perspective include:
The default views in the J2EE perspective assist you in developing resources for:
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
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.
Several 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
The Application Developer environment can be customized using:
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.
The Application Developer environment provides user-specified preferences for controlling:
The general Workbench Preferences
The Application Developer Preferences
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
Deleting an Enterprise Application Project
Create a New Project 1 2 3
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.
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 versions
History 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
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
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
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
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.
Application Developer Help resources include:
Tips and tricks
Help and Online Training Resources
Help menu includes:
Tips and tricks
Help contents include:
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.
Help Topics: Cheat Sheets
A cheat sheet helps you complete some task.
It lists the sequence of steps required to help you achieve the task
As 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.
What is a workspace?
What is the workbench?
What is a perspective?
Explain the term Capabilities.
When you use the context pop-up menu item Compare With , what can be compared?
How can you import a JAR?
A collection of resources that a developer uses to create applications.
Desktop development environment used in Rational Application Developer.
A collection of views, toolbar icons and menus that are shown together in order to accomplish a specific type of work.
Capabilities preference page allows you to enable or disable various product components.
One file to its own local history, or two files with each other.
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.
Workbench, Perspectives & Views
Create and delete projects
Import and export
Compare & replace
Japanese Hebrew Thank You English Merci French Russian Danke German Grazie Italian Gracias Spanish Obrigado Portuguese Arabic Simplified Chinese Traditional Chinese Thai Korean