blob: ce5a03720d968c0574b7c974330f444adf800459 [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>
<head>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 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
*******************************************************************************/ -->
<link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css" />
<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="skipspace">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">New Drawer</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 border="1" frame="hsides" rules="rows" cellpadding="4" cellspacing="0" summary="" class="skipspace">
<thead><tr><td><b>Option</b></td><td><b>Description</b></td></tr></thead>
<tbody>
<tr><td align="left" valign="top" id="d0e43"><b>Hide</b></td>
<td align="left" valign="top" headers="d0e43">Do not display the drawer.</td>
</tr>
<tr><td align="left" valign="top" id="d0e48"><b>Open drawer at start-up</b></td>
<td align="left" valign="top" headers="d0e48">At start-up, display
the drawer's items.</td>
</tr>
<tr><td align="left" valign="top" id="d0e53"><b>Pin drawer open at start-up</b></td>
<td align="left" valign="top" headers="d0e53">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><p><b class="relconceptshd">Related concepts</b><br />
<a href="csrcedt001.html" title="This documentation gives an overview of the Snippets view.">Snippets view</a><br />
</p>
<p><b class="reltaskshd">Related tasks</b><br />
<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><br />
<a href="tsrcedt015.html" title="This documentation describes how to add a new item to a drawer in the Snippets view.">Adding items to snippets drawers</a><br />
<a href="tsrcedt022.html" title="This documentation describes how to modify the template code that is in an item in a drawer in the Snippets view.">Editing snippet items</a><br />
<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><br />
</p>
</div>
</body>
</html>