37
IBM RAD © 2008 IBM Corporation Vikas Manoria IT Specialist – IBM Academic Initiative [email protected] Section -1) Workbench Basics Workbench Basics

1) workbench basics

  • Upload
    techbed

  • View
    447

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 1) workbench basics

IBM RAD

© 2008 IBM Corporation

Vikas ManoriaIT Specialist – IBM Academic [email protected]

Section -1) Workbench BasicsWorkbench Basics

Page 2: 1) workbench 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

Page 3: 1) workbench basics

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

Page 4: 1) workbench basics

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.

Page 5: 1) workbench basics

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

Page 6: 1) workbench basics

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

Page 7: 1) workbench basics

IBM AI - RAD

Welcome Page

OverviewWhat’s

NewTutorials Samples

First Steps

Web Resources

Page 8: 1) workbench basics

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.

Page 9: 1) workbench basics

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

Page 10: 1) workbench basics

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

Page 11: 1) workbench basics

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

Page 12: 1) workbench basics

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

Page 13: 1) workbench basics

IBM AI - RAD

Java Perspective

Default views in the Java perspective include:- Package Explorer

- Outline

- Console

- Hierarchy

- Search

- Tasks

Page 14: 1) workbench basics

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

Page 15: 1) workbench basics

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

Page 16: 1) workbench basics

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.

Page 17: 1) workbench basics

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

Page 18: 1) workbench basics

IBM AI - RAD

Environment Settings

The Application Developer environment can be customized using:

- Capabilities- Preferences

Page 19: 1) workbench basics

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.

Page 20: 1) workbench basics

IBM AI - RAD

Preferences

The Application Developer environment provides user-specified preferences for controlling:

- The general Workbench Preferences

- The Application Developer Preferences

Page 21: 1) workbench basics

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

Page 22: 1) workbench basics

IBM AI - RAD

Deleting an Enterprise Application Project

Page 23: 1) workbench basics

IBM AI - RAD

Create a New Project

1

2

3

Page 24: 1) workbench basics

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.

Page 25: 1) workbench basics

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

Page 26: 1) workbench basics

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

Page 27: 1) workbench basics

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

Page 28: 1) workbench basics

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

Page 29: 1) workbench basics

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.

Page 30: 1) workbench basics

IBM AI - RAD

Help

Application Developer Help resources include:- Welcome screen

- Cheat sheets

- Code samples

- Tips and tricks

- Tutorials gallery

Page 31: 1) workbench basics

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

Page 32: 1) workbench basics

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

Page 33: 1) workbench basics

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.

Page 34: 1) workbench basics

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?

Page 35: 1) workbench basics

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.

Page 36: 1) workbench basics

IBM AI - RAD

Lab

RAD InstallationManage WorkspaceWelcome ScreenWorkbench, Perspectives & ViewsPreferencesCreate and delete projectsImport and exportCompare & replaceHelp Menu

Page 37: 1) workbench basics

IBM AI - RAD

Japanese

Hebrew

Thank You

English

MerciFrench

Russian

DankeGerman

GrazieItalian

GraciasSpanish

Obrigado Portuguese

Arabic

Simplified Chinese

Traditional Chinese

Thai

Korean