⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 554-556.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Unleashed, Third Edition:Smalltalk/X</TITLE>

<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0672313723//-->

<!--TITLE=Linux Unleashed, Third Edition//-->

<!--AUTHOR=Tim Parker//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Sams//-->

<!--CHAPTER=31//-->

<!--PAGES=554-556//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="551-554.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="556-559.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H4 ALIGN="LEFT"><A NAME="Heading11"></A><FONT COLOR="#000077">The Changes Browser</FONT></H4>

<P>Each time you make a change to either the class hierarchy or to a method, ST/X writes a record to a <TT>changes</TT> file. The Changes Browser enables you to inspect and manipulate the changes file. There are two subviews in the Changes Browser: the change list and the contents view. The change list gives a list of all changes in chronological order. An example Changes Browser is shown in Figure 31.10.</P>

<P><A NAME="Fig10"></A><A HREF="javascript:displayWindow('images/31-10.jpg',570,290 )"><IMG SRC="images/31-10t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/31-10.jpg',570,290)"><FONT COLOR="#000077"><B>Figure 31.10.</B></FONT></A>&nbsp;&nbsp;The Changes Browser.</P>

<P>To display a change, select one of the changes from the change list. The Changes Browser then displays the contents of the change in the contents view.

</P>

<P>The pop-up menu for the change list has the functions described in Table 31.6.</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 31.6.</B> The Change List pop-up menu.

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="30%" ALIGN="LEFT">Function

<TH WIDTH="70%" ALIGN="LEFT">Description

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD><TT>apply change</TT>

<TD>Applies the currently selected change.

<TR>

<TD VALIGN="TOP"><TT>apply to end</TT>

<TD>Applies all the changes from the currently selected change to the end of the changes file.

<TR>

<TD><TT>apply all changes</TT>

<TD>Applies all the changes in the file.

<TR>

<TD><TT>delete</TT>

<TD>Deletes the currently selected change from the list.

<TR>

<TD VALIGN="TOP"><TT>delete to end</TT>

<TD>Deletes all changes from the currently selected change to the end of the file.

<TR>

<TD><TT>delete changes for</TT>

<TD>Deletes all changes affecting the same class.

<TR>

<TD VALIGN="TOP"><TT>delete all changes</TT>

<TD>Deletes all changes in the file for the same class as the currently selected change.

<TR>

<TD><TT>update</TT>

<TD>Rereads the changes file.

<TR>

<TD VALIGN="TOP"><TT>compress</TT>

<TD>Compresses the change list and removes multiple changes for a method leaving the most recent change compared to the current change.

<TR>

<TD VALIGN="TOP"><TT>version</TT>

<TD>Compares a method&#146;s source code in a change with the current version of the method and outputs a message in the Transcript view.

<TR>

<TD VALIGN="TOP"><TT>make a change patch</TT>

<TD>Appends the change to the end of the patches file which will be run and automatically applied at ST/X startup.

<TR>

<TD VALIGN="TOP"><TT>update sourcefile</TT>

<TD>This function is not currently implemented.<TT>from change</TT>

<TR>

<TD VALIGN="TOP"><TT>writeback</TT>

<TD>Writes the change list back to the <TT>changefile</TT> changes file. All delete/compress operations performed in the Changes Browser will not affect the changes file unless this operation is performed.

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<P>The Changes Browser can be used to recover from a system crash by reapplying all changes that were made after the last snapshot entry. To control the size of the changes file, it is a good idea to apply a compress periodically. This will remove all old changes for a method, leaving the newest one.

</P>

<H4 ALIGN="LEFT"><A NAME="Heading12"></A><FONT COLOR="#000077">Directory Browser</FONT></H4>

<P>When you select the Directory Browser option, a browser with five subviews is displayed. The top half of the browser displays the current directory and all subdirectories and files contained in it. If you select a directory, it is expanded in the next section to the right across the top half of the browser. If you select a file, the contents of the file are displayed in the lower half of the browser. The pop-up menu for the directory area has only two functions:

</P>

<DL>

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>up</TT>&#151;Moves up to the directory above the one selected

<DD><B>&#149;</B>&nbsp;&nbsp;<TT>goto directory</TT>&#151;Enables you to go to a specified directory

</DL>

<P>The content view has the same edit menu as all the other text editors and is discussed in the &#147;Editing in Browsers&#148; section in this chapter. A typical Directory Browser is shown in Figure 31.11.

</P>

<P><A NAME="Fig11"></A><A HREF="javascript:displayWindow('images/31-11.jpg',574,288 )"><IMG SRC="images/31-11t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/31-11.jpg',574,288)"><FONT COLOR="#000077"><B>Figure 31.11.</B></FONT></A>&nbsp;&nbsp;The Directory Browser.</P>

<H3><A NAME="Heading13"></A><FONT COLOR="#000077">The Workspace Option</FONT></H3>

<P>The Workspace option displays a view from which you can enter and compile Smalltalk code. The Workspace is usually used as a testing area or scratch pad when coding. You can use it to test your Smalltalk code before building it into the code library using the System Browser code view.

</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="551-554.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="556-559.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -