Views can also be added to an EER Diagram using the
View
tool on the vertical toolbar. To do this
make sure that the EER Diagram
tab is selected,
and right click the view icon on the vertical toolbar. The view
icon is the two overlapping rectangles found below the table icon.
Clicking the mouse on this icon changes the mouse pointer to a view pointer. You can also change the mouse pointer to a view pointer by pressing the V key.
Choosing the View
tool changes the contents of
the toolbar that appears immediately below the menu bar. When the
Views
pointer is active, this toolbar contains
a drop down list box of schemata and a drop down color chart. Use
these list boxes to select the appropriate schema and color accent
for the new view. Make sure that you associate the new view with a
database. The color of your view can easily be changed later using
the Properties
palette.
Create a view by clicking anywhere on the EER Diagram canvas. This
creates a new view with the default name view1
.
To revert to the default mouse pointer, click the arrow icon at
the top of the vertical toolbar.
Right clicking a view opens a pop-up menu. With the exception of the delete option, these menu options function as described in Section 7.5.3.1, “Adding Views to the Physical Schemata”. The behavior of the delete option is determined by your MySQL Workbench options settings. For more information, see Section 5.4.4, “The Model Tab”.