📄 1startingprojects.html
字号:
<td bgcolor="#993300">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffcc" width="100%">
<tr>
<td bgcolor="#ffffcc"><b>操作步骤:</b> 在 <default>
模型图中创建一个新包, 命名为 <b>ProblemDomain</b>.</td>
</tr>
</table>
</td>
</tr>
</table>
<p>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr>
<td bgcolor="#cccccc">
<table border="0" cellpadding="5" cellspacing="2">
<tr>
<td bgcolor="white" valign="top">要创建一个新包, 请在
Designer 面板的垂直工具条上点击包按钮<nobr>(</nobr><nobr><img height="16" width="13" src="images/icons/pkgbutton.gif" hspace="1" alt="Package button" align="top"></nobr><nobr>)</nobr>.
然后点击模型图的背景. 模型图将生成一个新节点. <p>
此时, 你可以直接在节点的内嵌编辑器中直接输入包的名字. 按 Enter 确认.</p>
</td>
<td bgcolor="white" valign="top"><img height="76" width="94" src="images/airline/packagerename1.png" alt="New package" hspace="5"></td>
</tr>
</table>
</td>
</tr>
</table>
<p>由于你创建了一个包, 你现在可以看看 Together 的 LiveSource 技术已经生效了 -- Together
为这个包自动创建了一个物理目录并在目录下生成了一个缺省的模型图. 新的模型图将显示 Together 当前或以后发现的任何物理工程内容.</p>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr>
<td>
<table border="0" cellpadding="5" cellspacing="2" bgcolor="#cccccc">
<tr>
<td valign="top" bgcolor="white">在 Designer 面板中, <default>
模型图现在包含一个单独的节点, 它是一个包.</td>
<td valign="top" bgcolor="white"><img height="63" width="100" src="images/airline/probdomainnode.png" alt="ProblemDomain package" hspace="5"></td>
</tr>
<tr>
<td valign="top" bgcolor="white">Explorer 面板的 Model
页显示新的包节点. 新包中包括一个新的模型图节点, 它们的名称与包相同. 新包和新模型图现在都是空的.</td>
<td valign="top" bgcolor="white"><img height="65" width="154" src="images/airline/modelwpackage.gif" alt="Explorer model view" hspace="5"></td>
</tr>
<tr>
<td valign="top" bgcolor="white">Explorer 面板的 Directory
页显示工程新的文件结构.<p>主根目录下出现了新的子目录, 名为<b> ProblemDomain</b>.
这个目录包含 <b>ProblemDomain.dfPackage</b> 文件,
它是新包缺省的模型图文件.</p>
</td>
<td valign="top" bgcolor="white"><img height="114" width="254" src="images/airline/dirwpackage.gif" alt="Explorer directory view" hspace="5"></td>
</tr>
</table>
</td>
</tr>
</table>
<p>要察看新的 <b>ProblemDomain</b> 模型图的内容, 请在 Explorer 面板的 Model 页双击模型图.
或者使用模型图的右键菜单将它在新的页中打开.</p>
<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> 在 <default>
模型图中再创建两个包: <b>UserInterface</b> 和 <b>DataManagement</b>.</td>
</tr>
</table>
</td>
</tr>
</table>
<p>下面是创建多个包的示例图. 按 <Ctrl> 并在工具条中点击包按钮将使得按钮被按下. 按钮被按下后就可以在 Designer
面板中多次创建包并修改名称, 而不需要再回到工具条点击按钮.</p>
<p>要释放按钮, 只需要再次点击它即可. (如果你不慎再模型图中创建了太多的包, 主工具条中的撤消按钮可以删除它.)</p>
<p><img height="246" width="656" src="images/airline/threepackages.gif" hspace="10" vspace="10" alt="Three packages on the diagram and explorer panes"></p>
<hr>
<p class="head3"><a name="dependencies"></a>显示包依赖关系</P>
<p>Designer 面板包含一个垂直工具条, 提供了创建 UML 模型元素的整套工具.</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>UserInterface</b>
到 <b>ProblemDomain</b> 的依赖关系.</td>
</tr>
</table>
</td>
</tr>
</table>
<p></p>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr>
<td bgcolor="#cccccc">
<table border="0" cellpadding="5" cellspacing="2">
<tr>
<td bgcolor="white" valign="top">
<p>要创建包依赖关系, 点击依赖按钮(图标是虚线箭头 <img height="13" width="13" src="images/icons/depbutton.gif" alt="Dependency icon">).
然后在模型图中点击依赖包("client" )
并将箭头的末尾拖动到被依赖的包("supplier").</p>
<p>你的依赖关系将类似例图的样子.</p>
<p><img src="images/airline/restoftoolbar.gif" width="117" height="59" border="0" align="left" alt="Button pallet" hspace="2">如果工具条太短,
点击底部的 More 按钮(<img src="images/airline/morebuttonsbutton.gif" width="22" height="10" border="0" alt="More buttons" hspace="1">). Together
将可用的按钮显示在小条中.</p>
</td>
<td bgcolor="white" valign="top"><img height="148" width="279" src="images/airline/pkgdependency.gif" hspace="5" alt="Package dependency"></td>
</tr>
</table>
</td>
</tr>
</table>
<p>你可以使用依赖关系的察看器修改其属性, 包括修改它的标签, 选择策略, 以及设置 supplier 和 client 的角色.
要访问属性察看器, 在依赖关系上点击鼠标右键并在右键菜单中选择 <b>Properties</b>.</p>
<p></p>
<hr>
<P class="head3"><a name="tip"></a>技巧</P>
<ul>
<li>最好以你的操作系统中合法的文件名做为包的名称. 不要在包名称中插入空格, 标点符号或其他特殊字符. <li>
后缀 <b>.tpr</b> 表示 Together 工程文件. Together 将它的所有文件以简单 ASCII 文本的形式保存 --
你可以使用普通的编辑器察看它们.
<li>永远将你的工程组织为包的形式.<li>要创建多个同类型的节点, 按 <Ctrl> 并在垂直工具条中点击按钮, 使得它被按下.
此时你还是可以使用内嵌编辑器. 再次点击按钮将释放它.</ul>
<center>
<p>
<hr>
<img height="19" width="198" src="images/generic/firstnavbutton.gif" vspace="10" alt="Navigation bar" usemap="#firstnavbuttonb6010834" border="0"><map name="firstnavbuttonb6010834"><area href="#top" coords="1,2,46,15" shape="rect"><area href="2requirements.html" coords="51,1,110,16" shape="rect"><area href="index.html" coords="117,0,196,17" shape="rect"></map>
<hr>
</center>
<div align="left">
<p class="footnote">Copyright © 2002 TogetherSoft Corporation. All rights reserved.</p>
</div>
<p class="footnote"><font color="#666666">Last Revised: <csobj w="88" h="12" t="DateTime" format="MedDate" region="0">Fri, Mar 8, 2002</csobj></P>
<p class="footnote"><span style="font-size: 9pt">
<a href="mailto:%20e.w@263.net">翻译: 李颖(e.w@263.net)</a></span></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -