Finish with text
diff --git a/examples/org.eclipse.graphiti.doc/resources/docu/gfw/tool-tips.htm b/examples/org.eclipse.graphiti.doc/resources/docu/gfw/tool-tips.htm
index be8fa47..f2edadb 100644
--- a/examples/org.eclipse.graphiti.doc/resources/docu/gfw/tool-tips.htm
+++ b/examples/org.eclipse.graphiti.doc/resources/docu/gfw/tool-tips.htm
@@ -12,11 +12,14 @@
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
+ {font-family:Cambria;
+ panose-1:2 4 5 3 5 4 6 3 2 4;}
+@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
- panose-1:0 0 0 0 0 0 0 0 0 0;}
+ panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
@@ -154,7 +157,7 @@
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-link:"HTML Vorformatiert";
- font-family:"Consolas","serif";}
+ font-family:Consolas;}
span.SprechblasentextZchn
{mso-style-name:"Sprechblasentext Zchn";
mso-style-link:Sprechblasentext;
@@ -186,6 +189,14 @@
font-size:12.0pt;
font-family:"Times New Roman","serif";
font-weight:bold;}
+p.msochpdefault, li.msochpdefault, div.msochpdefault
+ {mso-style-name:msochpdefault;
+ margin-top:5.65pt;
+ margin-right:0cm;
+ margin-bottom:5.65pt;
+ margin-left:0cm;
+ font-size:10.0pt;
+ font-family:"Times New Roman","serif";}
span.heading2char
{mso-style-name:heading2char;
font-family:"Arial","sans-serif";
@@ -226,55 +237,41 @@
<p class=MsoNormal><span lang=EN-US style='color:black'> </span></p>
-<p class=MsoNormal><span lang=EN-GB style='color:black'>It is possible to draw
-so called rendering decorators on top of active pictogram elements. These
-rendering decorators </span><span lang=EN-US>are transiently determined and not
-persisted in the diagram.</span></p>
+<p class=MsoNormal><span lang=EN-US>Tooltips can be shown on top of active
+pictogram elements. A typical use case is to show the name of pictogram
+elements or anything else you can get from the business object. </span></p>
-<p class=MsoNormal><span lang=EN-US>A typical use case is the rendering of
-error-markers on top of incorrect pictogram elements.</span></p>
-
-<p class=MsoNormal><span lang=EN-GB style='color:black'> </span></p>
-
-<p class=MsoNormal><span lang=EN-GB style='color:black'>The rendering
-decorators are defined in the tool behavior provider.</span></p>
+<p class=MsoNormal><span lang=EN-GB style='color:black'>The tooltips are
+defined in the tool behavior provider.</span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>If you didnt do so
-already you must <b>first create a tool behavior provider and add it to the diagram
-type provider as described <a href="tool-behavior-provider.htm">here</a>.</b></span></p>
+already you must <b>first create a tool behavior provider and add it to the
+diagram type provider as described <a href="tool-behavior-provider.htm">here</a>.</b></span></p>
-<p class=MsoNormal><span lang=EN-GB style='color:black'>There is one method of
-the tool behavior provider to overwrite: </span></p>
+<p class=MsoNormal><span lang=EN-GB style='color:black'>There is one method of the
+tool behavior provider to overwrite: </span></p>
-<p class=MsoNormal><span lang=EN-GB style='color:black'>The method <a
-href="../../../javadoc/org/eclipse/graphiti/tb/IToolBehaviorProvider.html#getDecorators(org.eclipse.graphiti.mm.pictograms.PictogramElement)">getDecorators</a>
-has to return the rendering decorators for the given pictogram element. A
-rendering decorator must implement the interface <a
-href="../../../javadoc/org/eclipse/graphiti/tb/IDecorator.html">IDecorator</a>
-and may also implement <a
-href="../../../javadoc/org/eclipse/graphiti/datatypes/ILocation.html">ILocation</a>,
-which provides the decorator location relative to the pictogram element.</span></p>
+<p class=MsoNormal><span lang=EN-US>The method </span><a
+href="../../../javadoc/org/eclipse/graphiti/tb/IToolBehaviorProvider.html#getToolTip(org.eclipse.graphiti.mm.algorithms)"><span
+lang=EN-US>getToolTip</span></a><span lang=EN-US> has to return the tooltip for
+the given graphics algorithm, which is then attached to its graphical
+representation.</span></p>
-<p class=MsoNormal><span lang=EN-GB style='color:black'>Currently only the <a
-href="../../../javadoc/org/eclipse/graphiti/tb/ImageDecorator.html">ImageDecorator</a>
-is supported, which renders an image at the defined location and can show a
-text message as tooltip.</span></p>
-
-<p class=MsoNormal><span lang=EN-US> </span></p>
+<p class=MsoNormal><span lang=EN-US> </span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>In this example we want
-to show an image decorator for a EClass, whenever the class name does not start
-with an upper case letter. </span></p>
+to show a tooltip for a EClass. </span></p>
<p class=MsoNormal><span lang=EN-US> </span></p>
-<p class=MsoNormal><img border=0 width=158 height=161 id="Grafik 1"
+<p class=MsoNormal><img border=0 width=158 height=161
src="tool-tips-Dateien/image001.jpg" alt=tool-tip.png></p>
-<p class=MsoCaption><span lang=EN-US>Figure: Tooltip from EClass with name Beton</span></p>
+<p class=MsoCaption><span lang=EN-US>Figure: Tooltip from EClass with name
+Beton</span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'>You can see the
-complete implementation of the rendering decorators here:</span></p>
+complete implementation of the tooltip here:</span></p>
<p class=MsoNormal><span lang=EN-GB style='color:black'> </span></p>
@@ -292,60 +289,68 @@
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>
String getToolTip(GraphicsAlgorithm ga) {</span></p>
<p class=MsoNormal style='text-autospace:none'><span lang=EN-US
- style='font-size:10.0pt;font-family:"Courier New";color:black'> PictogramElement
- pe = ga.getPictogramElement();<br>
- Object bo =
+ style='font-size:10.0pt;font-family:"Courier New";color:black'>
+ PictogramElement pe = ga.getPictogramElement();<br>
+ Object bo =
getFeatureProvider().getBusinessObjectForPictogramElement(pe);<br>
</span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
- color:#7F0055'> if</span></b><span lang=EN-US style='font-size:10.0pt;
- font-family:"Courier New";color:black'> (bo </span><b><span lang=EN-US
- style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>instanceof</span></b><span
+ color:#7F0055'> if</span></b><span lang=EN-US
+ style='font-size:10.0pt;font-family:"Courier New";color:black'> (bo </span><b><span
+ lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>instanceof </span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>
- EClass) {<br>
- String name = ((EClass) bo).getName();<br>
- </span><b><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";
- color:#7F0055'>if</span></b><span lang=EN-US style='font-size:10.0pt;
- font-family:"Courier New";color:black'> (!name.isEmpty()) {<br>
- </span><b><span lang=EN-US style='font-size:10.0pt;font-family:
- "Courier New";color:#7F0055'>return</span></b><span lang=EN-US
- style='font-size:10.0pt;font-family:"Courier New";color:black'> name;</span><span
- lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><br>
- <span style='color:black'>}</span><br>
- <span style='color:black'>}</span><br>
- <b><span style='color:#7F0055'>return</span></b><span style='color:black'>
- </span><b><span style='color:#7F0055'>super</span></b><span style='color:
- black'>.getToolTip(ga);</span><br>
+ EClass) {<br>
+ String name = ((EClass)bo).getName();<br>
+ </span><b><span lang=EN-US
+ style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>if</span></b><span
+ lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>
+ (!name.isEmpty()) {<br>
+ </span><b><span
+ lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#7F0055'>return </span></b><span
+ lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>
+ name;</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><br>
+ <span style='color:black'>}</span><br>
+ <span style='color:black'>}</span><br>
+ <b><span style='color:#7F0055'>return </span></b><span
+ style='color:black'> </span><b><span style='color:#7F0055'>super</span></b><span
+ style='color:black'>.getToolTip(ga);</span><br>
<span style='color:black'>}</span></span></p>
<p class=MsoNormal><span lang=EN-US style='color:black'> </span></p>
</td>
</tr>
</table>
-<p class=MsoNormal><span lang=EN-GB style='color:black'> </span></p>
+<p class=MsoNormal><span lang=EN-GB style='color:black'> </span><span
+lang=EN-US><br>
+<b>Note: </b>Because the tooltip is bound to a business object of the domain
+model, every change to it will lead to a refresh of the tooltip.</span></p>
<h2><span lang=EN-GB>Test: Show Tooltip for EClass</span></h2>
-<p class=MsoNormal><span lang=EN-GB style='color:black'> </span></p>
+<p class=MsoNormal><b><span lang=EN-GB style='color:black'> </span></b></p>
-<p class=MsoNormal><span lang=EN-GB style='color:black'>Remember, the name of
-an EClass should start with a capital letter. Start the editor and create a new
-EClass named Anton. Hover over the shape and verify that the tooltip is shown
-and the tooltip displays the name. Change the name of the EClass to Beton and
-verify that it is displayed accordingly.</span></p>
+<p class=MsoNormal><b><span lang=EN-GB style='color:black'>Remember, the name
+of an EClass should start with a upper case letter. Start the editor and create
+a new EClass named Anton. Hover over the shape and verify that the tooltip is
+shown and the tooltip displays the name. Change the name of the EClass to
+Beton and verify that it is displayed accordingly.</span></b></p>
-<p class=MsoNormal><span lang=EN-US style='color:black'> </span></p>
+<p class=MsoNormal><b><span lang=EN-US style='color:black'> </span></b></p>
-<div class=MsoNormal align=center style='text-align:center'>
+<div class=MsoNormal align=center style='text-align:center'><b>
<hr size=2 width="100%" align=center>
-</div>
+</b></div>
<p class=MsoNormal><a href="http://www.eclipse.org/legal/epl-v10.html"
-shape=rect>Copyright (c) SAP AG 2005, 2011.</a> </p>
+shape=rect><b>Copyright (c) SAP AG 2005, 2011.</b></a><b> </b></p>
</div>
</body>
+<b>
+
+</b>
</html>
+<b></b>
\ No newline at end of file