29.11.2014 Views

Smalltalk and Object Orientation: an Introduction - Free

Smalltalk and Object Orientation: an Introduction - Free

Smalltalk and Object Orientation: an Introduction - Free

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 15.3: The Ch<strong>an</strong>ge List tool<br />

The ch<strong>an</strong>ges presented in the ch<strong>an</strong>ges view often need to be filtered before being re -run. For<br />

example, if the list of ch<strong>an</strong>ges includes the creation of windows or test objects, you probably don’t need<br />

to redo those comm<strong><strong>an</strong>d</strong>s. If the system crashed in response to a message sent, you probably don’t w<strong>an</strong>t<br />

to resend that message etc.<br />

Once you have got a list of ch<strong>an</strong>ges which reflect the set of operations you w<strong>an</strong>t to perform you c<strong>an</strong><br />

replay them using one of the replay options from the right mouse button (middle on a three button<br />

mouse) menu.<br />

15.5 Working with projects<br />

15.5.1 Projects - what are they?<br />

A project is a way of org<strong>an</strong>izing your development environment. It allows the developer to m<strong>an</strong>age a<br />

number of different tasks at the same time within the same image. The way to think about this is that if<br />

what you see on the screen c<strong>an</strong> be viewed as the VisualWorks desktop, then projects allow you to have<br />

multiple desktops for different parts of your work.<br />

Why is this feature useful? Well consider that you are trying to draw a diagram on a flip chart. Then<br />

you might see a bl<strong>an</strong>k page with a number of pens clipped to the side of it. This would be fine for some<br />

diagrams, however, if you need to draw a number of associated diagrams, then you would either need to<br />

get a larger flip chart, or you would have to use more pages. Projects allow you to use multiple pages,<br />

each page having its own VisualLauncher. When you switch between proj ects, the layout of the screen<br />

will be restored to the state of the screen when you last left that project. If the project has just been<br />

created, then you will see only the visual Launcher.<br />

15.5.2 Creating a new project<br />

By default, when you start the VisualWorks image you are in the root project. To create a new project<br />

you select the Open Project option off the ch<strong>an</strong>ges menu on the VisualLauncher. In response to this,<br />

the system displays the window illustrated in Figure 15.4. This allows you to provide some notes about<br />

the project in a scrollable text window (for example, what the project is about, things to do etc.). This is<br />

a good idea as it acts as a project documentation tool. It is also a good idea to ch <strong>an</strong>ge the window label<br />

to something which indicates the purpose of the project. This c<strong>an</strong> be done using the right mouse button<br />

(on a three button mouse). This displays a menu with a relabel as .. option.<br />

126

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!