| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE html |
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html lang="en-us" xml:lang="en-us"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| <meta name="copyright" content="(C) Copyright Eclipse contributors 2005, 2006" /> |
| <meta name="DC.rights.owner" content="(C) Copyright Eclipse contributors 2005, 2006" /> |
| <meta name="security" content="public" /> |
| <meta name="Robots" content="index,follow" /> |
| <meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' /> |
| <meta name="DC.Type" content="concept" /> |
| <meta name="DC.Title" content="Add a Reference or Hyperlink" /> |
| <meta name="DC.Relation" scheme="URI" content="richtexteditor.html#richtexteditor" /> |
| <meta name="DC.Format" content="XHTML" /> |
| <meta name="DC.Identifier" content="addareferenceorhyperlink" /> |
| <meta name="DC.Language" content="en-us" /> |
| <!-- |
| Copyright (c) 2005, 2006 IBM Corporation and others. |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| Contributors: |
| IBM Corporation - initial implementation |
| --> |
| <link rel="stylesheet" type="text/css" href="./ibmdita.css" /> |
| <title>Add a Reference or Hyperlink</title> |
| </head> |
| <body> |
| |
| <div class="nested0" id="addareferenceorhyperlink"><a name="addareferenceorhyperlink"><!-- --></a><h1 class="topictitle1">Add a Reference or Hyperlink</h1> |
| <div><p>You can add two types of references or hyperlinks to your content text: |
| references to other elements in the method library or references to external |
| text with a URL that resides outside the method library.</p> |
| <p>Text fields that support hyperlinks have a twisty symbol <img src="twisty symbol1.JPG" alt="" /> next to the text field's label. Click the symbol to expand |
| the field into a full text editor. </p> |
| <p>To insert a hyperlink to another element in the method library into a text |
| field, locate the element you want to create a link to in the library or configuration |
| view and then drag it into the appropriate text field, The link to the element |
| is added as a method element with type prefix, meaning that the method element |
| name is prefixed with the method element type. You can also drag a method |
| element into an unexpanded text field that supports hyperlinks with the same |
| result.</p> |
| <div class="p">You can use the Add Link function in the rich text editor to add links |
| that are references to other method elements or links to files or Web pages. |
| This gives you further options in how your links are displayed.<ol><li>In the text editor, position the cursor where you want to insert the link |
| and then click the <strong>Add Link</strong> button <img src="addlink_co.gif" alt="" /> in the tool bar. The Add Link dialog opens.</li> |
| <li>Click the <strong>Browse</strong> button to locate and select the element you wish |
| to create a link to. There are several options for creating links to other |
| content elements, with each option offering a different way for displaying |
| the link's name:<ul><li>Method element: the link displays the element name.</li> |
| <li>Method with type prefix: the link displays the element name and type.</li> |
| <li>Method element with custom text: the link displays user defined text. |
| To define this text manipulate the text in between the <a></a< |
| tags in the URL text field one you have selected an element using the <strong>Browse</strong> button.</li> |
| </ul> |
| </li> |
| <li>To insert a hyperlink to an external URL, select URL from the Type drop |
| down list, type the URL details in the URL field, and then click <strong>OK</strong>.</li> |
| <li>To insert a hyperlink to a file, in the Type drop down list, click <strong>File</strong>, |
| enter the file name or browse to find the file, and then click <strong>OK</strong>. |
| Each time you add a link you can choose to have the target open in the same |
| browser window or in a new window.</li> |
| </ol> |
| </div> |
| </div> |
| <div><div class="relconcepts"><strong>Related concepts</strong><br /> |
| <div><a href="richtexteditor.html#richtexteditor">Rich Text Editor</a></div> |
| </div> |
| </div></div> |
| |
| </body> |
| </html> |