blob: 70a80559405a37f5c23ae89d229d93a84ed4a916 [file] [log] [blame]
kpriceef160682006-08-29 18:08:31 +00001<?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">
lmandel79573072006-03-30 03:29:16 +00002<html lang="en-us" xml:lang="en-us">
3<head>
kpriceef160682006-08-29 18:08:31 +00004<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
kpriceb59c9f62008-04-02 21:24:37 +00005<meta name="copyright" content="Copyright (c) 2000, 2008 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 API and implementation" />
6<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
kpriceef160682006-08-29 18:08:31 +00007<meta content="public" name="security" />
8<meta content="index,follow" name="Robots" />
9<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))' />
10<meta content="task" name="DC.Type" />
11<meta name="DC.Title" content="Setting the XML source suggestion strategy used by content assist" />
kpriceb59c9f62008-04-02 21:24:37 +000012<meta name="abstract" content="You can customize the formatting of the suggestions given by content assist by choosing a suggestion strategy preference. When the suggestion strategy is set to Strict, suggestions that are grammatically valid will be displayed first in the list of options and highlighted by bold icons. Other suggestions that are applicable to this element's scope but are not grammatically valid will be displayed lower in the list with de-emphasized icons. When the suggestion strategy is set to Lax, all suggestions will displayed in the list with de-emphasized icons." />
13<meta name="description" content="You can customize the formatting of the suggestions given by content assist by choosing a suggestion strategy preference. When the suggestion strategy is set to Strict, suggestions that are grammatically valid will be displayed first in the list of options and highlighted by bold icons. Other suggestions that are applicable to this element's scope but are not grammatically valid will be displayed lower in the list with de-emphasized icons. When the suggestion strategy is set to Lax, all suggestions will displayed in the list with de-emphasized icons." />
14<meta content="XML editor, source suggestion strategy" name="DC.subject" />
15<meta content="XML editor, source suggestion strategy" name="keywords" />
kpriceef160682006-08-29 18:08:31 +000016<meta scheme="URI" name="DC.Relation" content="../topics/twcdast.html" />
17<meta content="XHTML" name="DC.Format" />
18<meta content="xmlsourcesuggestionstrategy" name="DC.Identifier" />
19<meta content="en-us" name="DC.Language" />
20<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
lmandel79573072006-03-30 03:29:16 +000021<title>Setting the XML source suggestion strategy used by content assist</title>
22</head>
23<body id="xmlsourcesuggestionstrategy"><a name="xmlsourcesuggestionstrategy"><!-- --></a>
kpriceef160682006-08-29 18:08:31 +000024
25
lmandel79573072006-03-30 03:29:16 +000026<h1 class="topictitle1">Setting the XML source suggestion strategy used by content assist</h1>
kpriceef160682006-08-29 18:08:31 +000027
28
29
lmandel79573072006-03-30 03:29:16 +000030<div><p>You can customize the formatting of the suggestions given by content
31assist by choosing a suggestion strategy preference. When the suggestion strategy
kpriceb59c9f62008-04-02 21:24:37 +000032is set to Strict, suggestions that are grammatically valid will be displayed
33first in the list of options and highlighted by bold icons. Other suggestions
34that are applicable to this element's scope but are not grammatically valid
35will be displayed lower in the list with de-emphasized icons. When the suggestion
36strategy is set to Lax, all suggestions will displayed in the list with de-emphasized
37icons.</p>
kpriceef160682006-08-29 18:08:31 +000038
kpriceb59c9f62008-04-02 21:24:37 +000039<div class="section">To set the suggestion strategy used by content assist, complete the
40following steps:</div>
kpriceef160682006-08-29 18:08:31 +000041
42<ol>
kpriceb59c9f62008-04-02 21:24:37 +000043<li><span>Click <span class="menucascade"><span class="uicontrol">Window</span> &gt; <span class="uicontrol">Preferences</span>
44</span> and select <span class="menucascade"><span class="uicontrol">XML</span> &gt; <span class="uicontrol">XML
45Files</span> &gt; <span class="uicontrol">Editor</span></span></span></li>
kpriceef160682006-08-29 18:08:31 +000046
kpriceb59c9f62008-04-02 21:24:37 +000047<li><span>Beside <span class="uicontrol">Suggestion strategy</span> in the Content
48assist section, select the appropriate setting (Strict or Lax).</span></li>
kpriceef160682006-08-29 18:08:31 +000049
kpriceb59c9f62008-04-02 21:24:37 +000050<li><span>Click <span class="uicontrol">Apply</span>, then <span class="uicontrol">OK</span> to
51save your settings</span></li>
kpriceef160682006-08-29 18:08:31 +000052
lmandel79573072006-03-30 03:29:16 +000053</ol>
kpriceef160682006-08-29 18:08:31 +000054
lmandel79573072006-03-30 03:29:16 +000055<div class="example"><p>The following screen capture demonstrates content assist with
kpriceef160682006-08-29 18:08:31 +000056the suggestion strategy set to "Strict":</p>
lmandel79573072006-03-30 03:29:16 +000057<br /><img src="../images/suggestion.gif" alt="Example of Strict Suggestion Strategy" /><br /></div>
kpriceef160682006-08-29 18:08:31 +000058
lmandel79573072006-03-30 03:29:16 +000059</div>
kpriceef160682006-08-29 18:08:31 +000060
61<div><div class="reltasks"><strong>Related tasks</strong><br />
62<div><a href="../topics/twcdast.html" title="You can use content assist to help you finish a tag or line of code in the Source view of the XML editor. You can also use content assist to insert templates into your XML code.">Using XML content assist</a></div>
63</div>
64</div>
65
lmandel79573072006-03-30 03:29:16 +000066</body>
kpriceef160682006-08-29 18:08:31 +000067</html>