blob: 45145e08b22e71a46d9358c6d67089b7f384c564 [file] [log] [blame]
<?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 content="text/html; charset=utf-8" http-equiv="Content-Type" />
<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" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2008" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<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 content="task" name="DC.Type" />
<meta name="DC.Title" content="Adding snippets drawers" />
<meta name="abstract" content="This documentation explains how to customize the Snippets view by adding a new drawer." />
<meta name="description" content="This documentation explains how to customize the Snippets view by adding a new drawer." />
<meta content="snippets, drawer customization" name="DC.subject" />
<meta content="snippets, drawer customization" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="csrcedt001.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt026.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt015.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt022.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt016.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="tsrcedt014" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Adding snippets drawers</title>
</head>
<body id="tsrcedt014"><a name="tsrcedt014"><!-- --></a>
<h1 class="topictitle1">Adding snippets drawers</h1>
<div><p>This documentation explains how to customize the Snippets view
by adding a new drawer.</p>
<div class="section">To add a new drawer to the Snippets view:</div>
<ol>
<li><span>Right-click anywhere in the Snippets view and select <span class="uicontrol">Customize</span> from
the pop-up menu.</span></li>
<li><span>Click <span class="menucascade"><span class="uicontrol">New</span> &gt; <span class="uicontrol">Category</span>
</span> and type the name of the new drawer in the <span class="uicontrol">Name</span> field.</span>
</li>
<li><span>Optionally, type a description in the <span class="uicontrol">Description</span> field.</span>
</li>
<li><span>Select the drawer's behavior by checking check boxes as appropriate.
The check boxes are as follows:</span>
<table class="choicetableborder" summary="" cellspacing="0" cellpadding="4" rules="rows" frame="hsides" border="1">
<thead><tr><th valign="bottom" id="N10090-option" align="left">Option</th>
<th valign="bottom" id="N10090-desc" align="left">Description</th></tr></thead>
<tbody>
<tr><td valign="top" headers="N10090-option" id="N1009A"><strong>Hide</strong></td>
<td valign="top" headers="N10090-desc N1009A">Do not display the drawer.</td>
</tr>
<tr><td valign="top" headers="N10090-option" id="N100AA"><strong>Open drawer at start-up</strong></td>
<td valign="top" headers="N10090-desc N100AA">At start-up, display
the drawer's items.</td>
</tr>
<tr><td valign="top" headers="N10090-option" id="N100B9"><strong>Pin drawer open at start-up</strong></td>
<td valign="top" headers="N10090-desc N100B9">Keep the drawer
open.</td>
</tr>
</tbody></table>
</li>
<li><span>Click <span class="uicontrol">OK</span>. The new drawer will be added to
the list of drawers in the Snippets view.</span></li>
</ol>
</div>
<div><div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="csrcedt001.html" title="The Snippets view lets you catalog and organize reusable programming objects, such as HTML tagging, JavaScript, and JSP code, along with files and custom JSP tags.">Snippets view</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="tsrcedt026.html" title="The Snippets view lets you catalog and organize reusable programming objects, such as HTML tagging, JavaScript, and JSP code, along with files and custom JSP tags. The view can be extended based on additional objects that you define and include.">Editing with snippets - overview</a></div>
<div><a href="tsrcedt015.html" title="">Adding items to snippets drawers</a></div>
<div><a href="tsrcedt022.html" title="">Editing snippet items</a></div>
<div><a href="tsrcedt016.html" title="This documentation describes how to delete or hide drawers and items in the Snippets view.">Deleting or hiding snippet items or
drawers</a></div>
</div>
</div>
</body>
</html>