📄 2explorer.html
字号:
<td valign="top" bgcolor="white">
<p> Directory 页显示与 Together
相关的系统目录结构.
其中包含以下几种顶级目录节点.</p>
<ul>
<li>Current project(如果打开了工程) <li>顶级物理目录
<li>Samples -- 随 Together
附带的示例工程目录
<li>User projects -- Together
保存用户工作的缺省目录
<li>Templates -- Together 模板,
包括C++, C#, Java, CORBA IDL, Visual Basic,
以及 VB.Net. </ul>
<p>当你打开工程时, Current Project
节点将显示在列表最顶部.
展开这个节点将显示组成该工程的物理文件.</p>
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#993300" width="100%">
<tr>
<td bgcolor="#993300">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffcc" width="100%">
<tr>
<td bgcolor="#ffffcc"><b>操作步骤:</b>
使用 Explorer
模板打开
<b>demoguide.html</b>
文件,
该文件在
Java
文件夹 <b>CashSales</b>
下.</td>
</tr>
</table>
</td>
</tr>
</table>
<p>双击一个工程文件将在
Together 中打开它.
双击一个文本文件(包含正确的扩展名)将在
Together 编辑器中打开它;
双击一个 HTML
文件将在浏览器中打开它.</p>
</td>
<td valign="top" bgcolor="white"><img height="368" width="233" src="images/cashsales/tour2_explorerdirectory.png" hspace="5" vspace="5" alt="Explorer Directory" align="left"></td>
</tr>
</table>
</td>
</tr>
</table>
<p>注意:
你可以通过编辑 <b>navigator.config</b>
文件来设置 Directory
页中显示哪些磁盘驱动器.
这对网络映射的驱动器非常有用.</p>
<p></p>
<hr>
<p class="head3"><a name="modeltab"></a>Model 页:
检查当前打开工程的逻辑视图 </p>
<p> Model
页包含组成工程模型的主要元素的逻辑视图. Model
页只在有工程被打开时显示. </p>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr>
<td bgcolor="#bbbbbb">
<table border="0" cellpadding="5" cellspacing="2">
<tr>
<td valign="top" bgcolor="white"> Model
页显示了工程中的一切 --
包, 模型图, 类,
以及接口(Java) --
并全部组织为树形结构.
树的根节点对应于工程本身.
二级节点包括:
<ul>
<li>过程包.
<li>模型图,
包括最顶级的
<b><default></b>
模型图.
<li>顶级接口和类.
</ul>
<p>右图显示了二级节点中的 <b>Requirements</b>
包,
以及它的下级子包 <b>analysis</b>,
在第三级节点中.
注意,
模型图的图标比较特殊,
例如, UML
时序图的图标是<img height="14" width="16" src="images/icons/seqdiagicon.gif" hspace="5" alt="Sequence diagram icon">.</p>
<p> Model
页没有必要反映工程文件的物理结构,
因为工程中的包事实上可以存在于系统的任何地方.</p>
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#993300" width="100%">
<tr>
<td bgcolor="#993300">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffcc" width="100%">
<tr>
<td bgcolor="#ffffcc"><b>操作步骤:</b>
使用 Explorer
面板中的
Model
页打开 <b>CashSales
</b>工程中
<b>Requirements </b>包下的
<b>Sale State Diagram</b>
模型图.</td>
</tr>
</table>
</td>
</tr>
</table>
<p>双击 <b>Sale State Diagram</b> 将在
Designer 面板中打开它.
打开新的模型图时,
将会替代当前获得焦点的模型图,
或者在 Designer
面板中创建一个新的页,
具体采用哪种方式,
取决于如何打开模型图的设置.
(下一课中将讲解更多关于<a href="3navigation.html#openingfiles">打开模型图</a>的内容.)</p>
</td>
<td valign="top" bgcolor="white"><img height="368" width="233" src="images/cashsales/tour2_explorermodel.png" hspace="10" vspace="10" alt="Model tab" align="left"></td>
</tr>
<tr>
<td valign="top" bgcolor="white" colspan="2"> Model
页顶部有一个小的工具条,
可用来设置模型树的外观.
工具条中包含四个按纽.
<ul>
<li><img height="11" width="11" src="images/icons/expdiagicon.gif" hspace="5" alt="icon">使模型图节点可被展开,
以便显示其中的内容.
<li><img height="12" width="10" src="images/icons/sortnodeicon.gif" hspace="5" alt="icon">将包节点按字母顺序排列.
<li><img height="11" width="11" src="images/icons/packfirsticon.gif" hspace="5" alt="icon">将包节点显示在其他节点之前.
<li><img height="11" width="13" src="images/icons/fullyqualifiednames.gif" hspace="5" alt="icon">以完全标识的形式显示名称.
</ul>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p></p>
<hr>
<p class="head3"><a name="favorites"></a>Server, Favorites,
以及 Diagrams 页: 辅助浏览</p>
<p> Server
页供你浏览与工程相关的应用服务器和数据库服务器.
如果测试体系被激活,
则 Server
页中还会显示测试包.</p>
<p> Favorites
页用于保存模型中经常访问的项目,
以便方便的访问它们.
它使你不必在模型或目录中查找需要访问的项目.</p>
<p> Diagrams
页列出了工程中所有的模型图,
并按模型类型组织起来.
双击一个模型图将在
Designer 面板中显示它.</p>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr>
<td bgcolor="#bbbbbb">
<table border="0" cellpadding="5" cellspacing="2">
<tr>
<td valign="top" bgcolor="white">
<p>右图显示了上述三个页. Server
页在后面, Favorites
页在中间, Diagrams
在前面.</p>
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#993300" width="100%">
<tr>
<td bgcolor="#993300">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffcc" width="100%">
<tr>
<td bgcolor="#ffffcc"><b>操作步骤:</b>
将 <b>problem_domain</b>
包和 <b>ProductDesc</b>
类增加到 Favorites
页中.</td>
</tr>
</table>
</td>
</tr>
</table>
<p>你可以通过元素的右键菜单将它增加到
Favorites 页中.
完整这个操作的简单步骤如下:</p>
<ol>
<li>进入 Explorer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -