mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2026-04-05 17:49:26 +02:00
Author:halw
Date:2009-01-06T21:31:01.000000Z git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@153 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -13,17 +13,5 @@
|
||||
[[Removing items from a view|Removing items from the view only]] }}
|
||||
|
||||
|
||||
* Pick-and-drop the item you want to remove in the '''Delete''' hole. [[Image:16x16--general-delete-icon]] For links, the associated Eiffel code will be removed from the class text. Clusters and classes will be deleted from disk!
|
||||
|
||||
{{warning|An action that deletes one or more files or directories cannot be undone! }}
|
||||
|
||||
|
||||
{{tip|Turn on '''Automatic backups'''. EiffelStudio will make a copy of each class file every time a compilation is done. }}
|
||||
|
||||
|
||||
{{seealso|<br/>
|
||||
[[Removing items from a view|Removing items from the view only]] }}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -2,22 +2,24 @@
|
||||
[[Property:weight|3]]
|
||||
[[Property:uuid|2ab61f4c-fb5a-901c-f2b3-3ee680f48569]]
|
||||
If you do not want straight arrows, you can insert handles on them. It is recommended that you use the link tool to do this, because it inserts the handles so that the angles in the line are exactly 90 degrees.
|
||||
# To apply straight angles to a link, drop it in the '''Put handles on a link''' hole. [[Image:diagram-force-right-angles-icon]]
|
||||
# The '''Link tool''' appears. Select the type of angle(s) you want for the link.
|
||||
* To apply straight angles to a link, drop it in the '''Put handles on a link''' hole. [[Image:diagram-force-right-angles-icon]]
|
||||
* The '''Link tool''' appears. Select the type of angle(s) you want for the link.
|
||||
|
||||
[[Image:link-tool]]
|
||||
|
||||
The combinations of handles you can apply to your link are:
|
||||
#* Put handle left <br/>
|
||||
[[Image:link-tool-left]]
|
||||
#* Put handle right <br/>
|
||||
[[Image:link-tool-right]]
|
||||
#* Put two handles left <br/>
|
||||
[[Image:link-tool-two-left]]
|
||||
#* Put two handles right <br/>
|
||||
[[Image:link-tool-two-right]]
|
||||
#* Remove handles <br/>
|
||||
[[Image:link-tool-no-handles]]
|
||||
* Put handle left <br/>
|
||||
[[Image:link-tool-left]]
|
||||
* Put handle right <br/>
|
||||
[[Image:link-tool-right]]
|
||||
* Put two handles left <br/>
|
||||
[[Image:link-tool-two-left]]
|
||||
* Put two handles right <br/>
|
||||
[[Image:link-tool-two-right]]
|
||||
* Remove handles <br/>
|
||||
[[Image:link-tool-no-handles]]
|
||||
|
||||
# Click '''OK''' when you are satisfied with the result, pressing '''Cancel''' will put the link back the way it was.
|
||||
* Click '''OK''' when you are satisfied with the result, pressing '''Cancel''' will put the link back the way it was.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
[[Property:title|Adding a view]]
|
||||
[[Property:weight|0]]
|
||||
[[Property:uuid|28444f17-3f20-72b5-dd5b-d812154a219f]]
|
||||
# To add a view of the current class or cluster, select the view you want to duplicate to the new one using the '''View''' combo box. <br/>
|
||||
[[Image:diagram-defaultview]]
|
||||
# Enter the name of the new view in the '''View''' combo box. <br/>
|
||||
[[Image:diagram-myview]]
|
||||
# Press enter. The view is now created.
|
||||
* To add a view of the current class or cluster, select the view you want to duplicate to the new one using the '''View''' combo box. <br/>
|
||||
[[Image:diagram-defaultview]]
|
||||
* Enter the name of the new view in the '''View''' combo box. <br/>
|
||||
[[Image:diagram-myview]]
|
||||
* Press enter. The view is now created.
|
||||
|
||||
|
||||
@@ -1,18 +1,9 @@
|
||||
[[Property:title|Deleting a view]]
|
||||
[[Property:weight|1]]
|
||||
[[Property:uuid|4e53dcce-8b05-823e-6911-ac85b226a511]]
|
||||
* To delete a view, select the view you want to remove using the '''View''' combo box. <br/>
|
||||
[[Image:diagram-defaultview]]
|
||||
* Click the '''Delete current view''' button. [[Image:16x16--general-delete-icon]] <br/>
|
||||
|
||||
*If you choose to confirm, the view has been deleted, and the "DEFAULT" view is selected.
|
||||
|
||||
|
||||
{{note| '''Note''': You cannot delete the view "DEFAULT". }}
|
||||
|
||||
|
||||
*To delete a view, select the view you want to remove using the '''View''' combo box. <br/>
|
||||
[[Image:diagram-defaultview]]
|
||||
[[Image:diagram-defaultview]]
|
||||
*Click the '''Delete current view''' button. [[Image:16x16--general-delete-icon]] <br/>
|
||||
|
||||
*If you choose to confirm, the view has been deleted, and the "DEFAULT" view is selected.
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
[[Property:weight|1]]
|
||||
[[Property:uuid|edb48c11-23fb-65d2-28c2-75cda5659dd8]]
|
||||
* If you want to change the context of the current cluster or class in the diagram, click the '''Select depth of relations''' button. [[Image:diagram-depth-of-relations-icon]] <br/>
|
||||
The '''Context''' dialog appears. The layout depends on whether the current context is one of a class or cluster.
|
||||
** Context is a class:
|
||||
* The '''Context''' dialog appears. The layout depends on whether the current context is one of a class or cluster.
|
||||
* Context is a class:
|
||||
|
||||
[[Image:context-dialog-class]]
|
||||
|
||||
** Context is a cluster:
|
||||
* Context is a cluster:
|
||||
|
||||
[[Image:context-dialog-cluster]]
|
||||
|
||||
|
||||
@@ -6,9 +6,4 @@
|
||||
{{note|If you want to remove the item from the system, use the [[Deleting items|Delete]] hole. }}
|
||||
|
||||
|
||||
* To remove an class, cluster, or link from the current view, use pick-and-drop to drop it in the '''Remove figure''' hole. [[Image:general-reset-icon]] . To remove a link handle you can also the same technique
|
||||
|
||||
{{note|If you want to remove the item from the system, use the [[Deleting items|Delete]] hole. }}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -11,30 +11,36 @@ The first page of the Documentation Wizard lets you choose between the available
|
||||
|
||||
{{tip|The nicest output is produced by the '''html-stylesheet''' format. }}
|
||||
|
||||
|
||||
Now the wizard asks you to select the clusters you want to produce documentation for:
|
||||
|
||||
[[Image:doc-wizard-cluster-selection]]
|
||||
|
||||
|
||||
In the next page you can specify indexing items on which HTML metatags will be based:
|
||||
|
||||
[[Image:doc-wizard-indexing-selection]]
|
||||
|
||||
{{note|This page is only available for HTML documentation. }}
|
||||
|
||||
|
||||
You can then pick the formats you need among those available. For example, you might need a file containing the '''Cluster hierarchy''' of your system or, for each class, a file containing the '''Contracts''' of that class. At this point you can also decide to generate BON diagrams for the clusters selected in the previous page.
|
||||
|
||||
[[Image:doc-wizard-format-selection]]
|
||||
|
||||
|
||||
If you have checked '''Cluster diagrams''' in the previous page, you will now be able to choose a view for each diagram that is going to be generated. You have the choice between an automatically arranged view and all of the [[Views|views ]] you may have manually arranged with the [[Diagram tool|Diagram Tool]] .
|
||||
|
||||
[[Image:doc-wizard-view-selection]]
|
||||
|
||||
{{note|Cluster diagrams are only available for HTML documentation. }}
|
||||
|
||||
|
||||
Here comes the last page; you can choose the directory where the documentation is going to be generated:
|
||||
|
||||
[[Image:doc-wizard-path-selection]]
|
||||
|
||||
|
||||
{{seealso|<br/>
|
||||
[[Generating XMI documentation|Generating XMI documentation]] }}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ The first page of the wizard lets you select the clusters you want to produce do
|
||||
|
||||
[[Image:xmi-wizard-cluster-selection]]
|
||||
|
||||
|
||||
On the second and last page, you can choose the directory where the XML file is going to be generated:
|
||||
|
||||
[[Image:doc-wizard-path-selection]]
|
||||
|
||||
@@ -27,29 +27,29 @@ It is also possible to dynamically start and stop the profiler in a program. To
|
||||
In the root feature:
|
||||
|
||||
<code>
|
||||
local
|
||||
ps: PROFILING_SETTING
|
||||
-- Other local variables if necessary.
|
||||
do
|
||||
create ps.make
|
||||
ps.stop_profiling
|
||||
-- Real program execution.
|
||||
ps.start_profiling
|
||||
end</code>
|
||||
local
|
||||
ps: PROFILING_SETTING
|
||||
-- Other local variables if necessary.
|
||||
do
|
||||
create ps.make
|
||||
ps.stop_profiling
|
||||
-- Real program execution.
|
||||
ps.start_profiling
|
||||
end</code>
|
||||
|
||||
|
||||
And in the feature(s) that needs to be profiled:
|
||||
<code></code>
|
||||
<code>
|
||||
local
|
||||
ps: PROFILING_SETTING
|
||||
-- Other local variables if necessary.
|
||||
do
|
||||
create ps.make
|
||||
ps.start_profiling
|
||||
-- What needs to be profiled.
|
||||
ps.stop_profiling
|
||||
end</code>
|
||||
local
|
||||
ps: PROFILING_SETTING
|
||||
-- Other local variables if necessary.
|
||||
do
|
||||
create ps.make
|
||||
ps.start_profiling
|
||||
-- What needs to be profiled.
|
||||
ps.stop_profiling
|
||||
end</code>
|
||||
|
||||
|
||||
{{note|Even if the profiler should only work in certain sections of code, the '''Profiling''' check box of the [[General Target Options|Projects Settings]] dialog must be checked or the '''profile''' option must be set on certain clusters. }}
|
||||
|
||||
@@ -3,15 +3,15 @@
|
||||
[[Property:uuid|78e0273d-525e-a338-dfe4-d5fc27cd06d3]]
|
||||
Eiffel provides ways to add debug code to features to help during their debugging. You may think of it as the well-known C construct: <code></code>
|
||||
|
||||
<code>#ifdef MY_DEBUG_FLAG/* Debug code is here */ #endif</code>
|
||||
<code lang=c>#ifdef MY_DEBUG_FLAG/* Debug code is here */ #endif</code>
|
||||
|
||||
|
||||
The corresponding construct in Eiffel is provided by the debug keyword. It is possible to wrap code inside a debug clause like this:
|
||||
<code></code>
|
||||
<code>
|
||||
debug("MY_DEBUG_FLAG")
|
||||
-- Debug code is here.
|
||||
end</code>
|
||||
debug("MY_DEBUG_FLAG")
|
||||
-- Debug code is here.
|
||||
end</code>
|
||||
|
||||
|
||||
It is then possible to enable or disable debug clauses globally.
|
||||
|
||||
Reference in New Issue
Block a user