Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpguilet2017-06-23 12:37:25 +0000
committerpguilet2017-06-27 08:48:08 +0000
commit1135c8d186bb86cb574c6f43d06b07c014976923 (patch)
tree71b54c6468d5f57576b3b3d8016431b48e843c20
parentd1e44ecd3c1e273c5fe3c25c4c51fce8c989456e (diff)
downloadorg.eclipse.sirius-1135c8d186bb86cb574c6f43d06b07c014976923.tar.gz
org.eclipse.sirius-1135c8d186bb86cb574c6f43d06b07c014976923.tar.xz
org.eclipse.sirius-1135c8d186bb86cb574c6f43d06b07c014976923.zip
[517497] Add documentation regarding aird editor close mechanisms
Bug: 517497 Change-Id: I0e5311687cc85c22e8147f6cd5936db30ba4f668 Signed-off-by: pguilet <pierre.guilet@obeo.fr>
-rw-r--r--plugins/org.eclipse.sirius.doc/doc/user/general/Aird_Editor.html44
-rw-r--r--plugins/org.eclipse.sirius.doc/doc/user/general/Aird_Editor.textile26
-rw-r--r--plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_button.pngbin0 -> 13787 bytes
-rw-r--r--plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_cross.pngbin0 -> 4184 bytes
-rw-r--r--plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_right_click.pngbin0 -> 32932 bytes
5 files changed, 65 insertions, 5 deletions
diff --git a/plugins/org.eclipse.sirius.doc/doc/user/general/Aird_Editor.html b/plugins/org.eclipse.sirius.doc/doc/user/general/Aird_Editor.html
index cd4a81a6be..3474cc27bb 100644
--- a/plugins/org.eclipse.sirius.doc/doc/user/general/Aird_Editor.html
+++ b/plugins/org.eclipse.sirius.doc/doc/user/general/Aird_Editor.html
@@ -29,6 +29,9 @@
<a href="#opening">Opening the Aird Editor</a>
</li>
<li>
+ <a href="#closing">Closing the Aird Editor and unloading models</a>
+ </li>
+ <li>
<a href="#semantic_models">Managing the Semantic Models</a>
<ol style="list-style: disc;">
<li>
@@ -145,11 +148,44 @@
<p>
<img border="0" src="images/aird_editor_expand_aird_file.png"/>
</p>
+ <h2 id="closing">Closing the Aird Editor and unloading models</h2>
+ <p>You have four different ways to close the aird editor. But not all the ways have the same behaviour.</p>
+ <p>There is one thing to take in consideration when it comes to close the aird editor:</p>
+ <ul>
+ <li>An opened aird editor has all its referenced models loaded in memory as well as any representation opened in a Sirius editor. For big models and big representations, this can have a big memory footprint. So when you want to close the aird editor you must ask yourself if you want to free the memory used by the loaded aird or not. Then you have to choose the right way to close the editor accordingly. Indeed some way to close the editor will not free this memory and some others will.</li>
+ </ul>
+ <p>The closing mechanism which does not unload models and representations is the following:</p>
+ <ul>
+ <li>Clicking on the editor white cross on the top right corner of editor&#8217;s tab. This will only close the aird editor and will not free memory used by loaded models and representations opened in Sirius editors.</li>
+ </ul>
+ <p>
+ <img border="0" src="images/aird_editor_close_editor_with_cross.png"/>
+ </p>
+ <p>The closing mechanisms which do unload models and representations from memory are the following:</p>
+ <ul>
+ <li>If your aird editor refers to an aird file on a
+ <em>Modeling Project</em>, the only way to unload models and representations from memory is to close it.
+ </li>
+ </ul>
+ <ul>
+ <li>If your aird editor does not refer to an aird file on a
+ <em>Modeling Project</em>, a button
+ <em>Unload models</em> is provided by the editor and allows to close the aird editor and free memory used by loaded models and representations.
+ </li>
+ </ul>
+ <p>
+ <img border="0" src="images/aird_editor_close_editor_with_button.png"/>
+ </p>
+ <ul>
+ <li>When aird editor is not in a
+ <em>Modeling Project</em>,
+ <em>Close</em> action in contextual menu of the aird file is available. This action is reachable in any view showing the aird as an IFile like
+ <em>Model Explorer</em>,
+ <em>Package Explorer</em> etc...
+ </li>
+ </ul>
<p>
- <em>Important note:</em> Closing the aird editor will not close representations you may have opened, nor unload the associated files and models. If you are using a
- <em>Modeling Project</em> in the
- <em>Model Explorer</em> view, you need to close the whole project to unload the models. In other contexts you can use the
- <em>Close</em> action available in the context menu of the aird file.
+ <img border="0" src="images/aird_editor_close_editor_with_right_click.png"/>
</p>
<h2 id="semantic_models">Managing the Semantic Models</h2>
<p>This section describes how to manage the semantic models associated to your aird file, which are visible in the
diff --git a/plugins/org.eclipse.sirius.doc/doc/user/general/Aird_Editor.textile b/plugins/org.eclipse.sirius.doc/doc/user/general/Aird_Editor.textile
index d719479a45..4a2eee6c66 100644
--- a/plugins/org.eclipse.sirius.doc/doc/user/general/Aird_Editor.textile
+++ b/plugins/org.eclipse.sirius.doc/doc/user/general/Aird_Editor.textile
@@ -50,7 +50,31 @@ When this preference is activated, then aird editor is opened automatically in t
!images/aird_editor_expand_aird_file.png!
-_Important note:_ Closing the aird editor will not close representations you may have opened, nor unload the associated files and models. If you are using a _Modeling Project_ in the _Model Explorer_ view, you need to close the whole project to unload the models. In other contexts you can use the _Close_ action available in the context menu of the aird file.
+h2(#closing). Closing the Aird Editor and unloading models
+
+You have four different ways to close the aird editor. But not all the ways have the same behaviour.
+
+There is one thing to take in consideration when it comes to close the aird editor:
+
+* An opened aird editor has all its referenced models loaded in memory as well as any representation opened in a Sirius editor. For big models and big representations, this can have a big memory footprint. So when you want to close the aird editor you must ask yourself if you want to free the memory used by the loaded aird or not. Then you have to choose the right way to close the editor accordingly. Indeed some way to close the editor will not free this memory and some others will.
+
+The closing mechanism which does not unload models and representations is the following:
+
+* Clicking on the editor white cross on the top right corner of editor's tab. This will only close the aird editor and will not free memory used by loaded models and representations opened in Sirius editors.
+
+!images/aird_editor_close_editor_with_cross.png!
+
+The closing mechanisms which do unload models and representations from memory are the following:
+
+* If your aird editor refers to an aird file on a _Modeling Project_, the only way to unload models and representations from memory is to close it.
+
+* If your aird editor does not refer to an aird file on a _Modeling Project_, a button _Unload models_ is provided by the editor and allows to close the aird editor and free memory used by loaded models and representations.
+
+!images/aird_editor_close_editor_with_button.png!
+
+* When aird editor is not in a _Modeling Project_, _Close_ action in contextual menu of the aird file is available. This action is reachable in any view showing the aird as an IFile like _Model Explorer_, _Package Explorer_ etc...
+
+!images/aird_editor_close_editor_with_right_click.png!
h2(#semantic_models). Managing the Semantic Models
diff --git a/plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_button.png b/plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_button.png
new file mode 100644
index 0000000000..f455f51858
--- /dev/null
+++ b/plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_button.png
Binary files differ
diff --git a/plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_cross.png b/plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_cross.png
new file mode 100644
index 0000000000..138801fe80
--- /dev/null
+++ b/plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_cross.png
Binary files differ
diff --git a/plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_right_click.png b/plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_right_click.png
new file mode 100644
index 0000000000..666b7ebbdc
--- /dev/null
+++ b/plugins/org.eclipse.sirius.doc/doc/user/general/images/aird_editor_close_editor_with_right_click.png
Binary files differ

Back to the top