Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_51) on Thu Jun 05 17:45:45 EDT 2014 -->
<meta http-equiv="Content-Type" content="text/html" charset="iso-8859-1">
<title>AbstractTemplateSection (Eclipse PDE API Specification)</title>
<meta name="date" content="2014-06-05">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="AbstractTemplateSection (Eclipse PDE API Specification)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AbstractTemplateSection.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><span style='font-size:small'><b>Eclipse PDE</b><br>Luna (4.4)</span></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/eclipse/pde/ui/templates/AbstractNewPluginTemplateWizard.html" title="class in org.eclipse.pde.ui.templates"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/eclipse/pde/ui/templates/BaseOptionTemplateSection.html" title="class in org.eclipse.pde.ui.templates"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/eclipse/pde/ui/templates/AbstractTemplateSection.html" target="_top">Frames</a></li>
<li><a href="AbstractTemplateSection.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.eclipse.pde.ui.templates</div>
<h2 title="Class AbstractTemplateSection" class="title">Class AbstractTemplateSection</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.eclipse.pde.ui.templates.AbstractTemplateSection</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a>, <a href="../../../../../org/eclipse/pde/ui/templates/IVariableProvider.html" title="interface in org.eclipse.pde.ui.templates">IVariableProvider</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/eclipse/pde/ui/templates/BaseOptionTemplateSection.html" title="class in org.eclipse.pde.ui.templates">BaseOptionTemplateSection</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <span class="strong">AbstractTemplateSection</span>
extends <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a>, <a href="../../../../../org/eclipse/pde/ui/templates/IVariableProvider.html" title="interface in org.eclipse.pde.ui.templates">IVariableProvider</a></pre>
<div class="block">Common function for template sections. It is recommended to subclass this
 class rather than implementing ITemplateSection directly when providing
 extension templates.</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>2.0</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#KEY_ACTIVATOR_SIMPLE">KEY_ACTIVATOR_SIMPLE</a></strong></code>
<div class="block">The key for the simple class name of a bundle activator (value="activator")</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#KEY_PACKAGE_NAME">KEY_PACKAGE_NAME</a></strong></code>
<div class="block">The key for the package name that will be created by this template
 (value="packageName").</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#KEY_PLUGIN_CLASS">KEY_PLUGIN_CLASS</a></strong></code>
<div class="block">The key for the main plug-in class of the plug-in that the template is
 used for (value="pluginClass").</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#KEY_PLUGIN_ID">KEY_PLUGIN_ID</a></strong></code>
<div class="block">The key for the plug-in id of the plug-in that the template is used for
 (value="pluginId").</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#KEY_PLUGIN_NAME">KEY_PLUGIN_NAME</a></strong></code>
<div class="block">The key for the plug-in name of the plug-in that the template is used for
 (value="pluginName").</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/eclipse/pde/core/plugin/IPluginModelBase.html" title="interface in org.eclipse.pde.core.plugin">IPluginModelBase</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#model">model</a></strong></code>
<div class="block">The plug-in model.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/IProject.html?is-external=true" title="class or interface in org.eclipse.core.resources">IProject</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#project">project</a></strong></code>
<div class="block">The project handle.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#AbstractTemplateSection()">AbstractTemplateSection</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#addPages(org.eclipse.jface.wizard.Wizard)">addPages</a></strong>(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/wizard/Wizard.html?is-external=true" title="class or interface in org.eclipse.jface.wizard">Wizard</a>&nbsp;wizard)</code>
<div class="block">Adds template-related pages to the wizard.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/eclipse/pde/core/plugin/IPluginExtension.html" title="interface in org.eclipse.pde.core.plugin">IPluginExtension</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#createExtension(java.lang.String, boolean)">createExtension</a></strong>(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pointId,
               boolean&nbsp;reuse)</code>
<div class="block">A utility method to create an extension object for the plug-in model from
 the provided extension point id.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#execute(org.eclipse.core.resources.IProject, org.eclipse.pde.core.plugin.IPluginModelBase, org.eclipse.core.runtime.IProgressMonitor)">execute</a></strong>(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/IProject.html?is-external=true" title="class or interface in org.eclipse.core.resources">IProject</a>&nbsp;project,
       <a href="../../../../../org/eclipse/pde/core/plugin/IPluginModelBase.html" title="interface in org.eclipse.pde.core.plugin">IPluginModelBase</a>&nbsp;model,
       <a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/IProgressMonitor.html?is-external=true" title="class or interface in org.eclipse.core.runtime">IProgressMonitor</a>&nbsp;monitor)</code>
<div class="block">The default implementation of the interface method.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#generateFiles(org.eclipse.core.runtime.IProgressMonitor)">generateFiles</a></strong>(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/IProgressMonitor.html?is-external=true" title="class or interface in org.eclipse.core.runtime">IProgressMonitor</a>&nbsp;monitor)</code>
<div class="block">Generates files as part of the template execution.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#generateFiles(org.eclipse.core.runtime.IProgressMonitor, java.net.URL)">generateFiles</a></strong>(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/IProgressMonitor.html?is-external=true" title="class or interface in org.eclipse.core.runtime">IProgressMonitor</a>&nbsp;monitor,
             <a href="http://download.oracle.com/javase/7/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a>&nbsp;locationUrl)</code>
<div class="block">Generates files as part of the template execution.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/eclipse/pde/core/plugin/IPluginReference.html" title="interface in org.eclipse.pde.core.plugin">IPluginReference</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getDependencies(java.lang.String)">getDependencies</a></strong>(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;schemaVersion)</code>
<div class="block">Provides the list of template dependencies.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getDescription()">getDescription</a></strong>()</code>
<div class="block">Returns a description of the section.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getManifestHeader(java.lang.String)">getManifestHeader</a></strong>(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</code>
<div class="block">Gets a header from within the plug-in's underlying manifest header, if it
 has one.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getNumberOfWorkUnits()">getNumberOfWorkUnits</a></strong>()</code>
<div class="block">The default implementation of the interface method.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getPagesAdded()">getPagesAdded</a></strong>()</code>
<div class="block">Tests if wizard pages for this template section have been added.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected abstract <a href="http://download.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getPluginResourceBundle()">getPluginResourceBundle</a></strong>()</code>
<div class="block">An abstract method that returns the resource bundle that corresponds to
 the best match of <samp>plugin.properties </samp> file for the current
 locale (in case of fragments, the file is <samp>fragment.properties
 </samp>).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getPluginResourceString(java.lang.String)">getPluginResourceString</a></strong>(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</code>
<div class="block">Returns the translated version of the resource string represented by the
 provided key.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getReplacementString(java.lang.String, java.lang.String)">getReplacementString</a></strong>(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;fileName,
                    <a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</code>
<div class="block">The default implementation of this method provides values of the
 following keys: <samp>pluginClass </samp>, <samp>pluginId </samp> and
 <samp>pluginName </samp>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/IFolder.html?is-external=true" title="class or interface in org.eclipse.core.resources">IFolder</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getSourceFolder(org.eclipse.core.runtime.IProgressMonitor)">getSourceFolder</a></strong>(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/IProgressMonitor.html?is-external=true" title="class or interface in org.eclipse.core.runtime">IProgressMonitor</a>&nbsp;monitor)</code>
<div class="block">Returns the folder with Java files in the target project.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected double</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getTargetVersion()">getTargetVersion</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/7/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getTemplateLocation()">getTemplateLocation</a></strong>()</code>
<div class="block">Returns the URL of the zip file containing template files and directories
 that will be created in the plug-in project.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getValue(java.lang.String)">getValue</a></strong>(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</code>
<div class="block">Returns the value of the variable with a given name.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#hasBundleManifest()">hasBundleManifest</a></strong>()</code>
<div class="block">Determines whether this plug-in has a manifest on which to set/get
 headers.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#isOkToCreateFile(java.io.File)">isOkToCreateFile</a></strong>(<a href="http://download.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;sourceFile)</code>
<div class="block">Tests if the file found in the template location should be created in the
 target project.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#isOkToCreateFolder(java.io.File)">isOkToCreateFolder</a></strong>(<a href="http://download.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;sourceFolder)</code>
<div class="block">Tests if the folder found in the template location should be created in
 the target project.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#markPagesAdded()">markPagesAdded</a></strong>()</code>
<div class="block">Marks that pages have been added to the wizard by this template.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#setManifestHeader(java.lang.String, java.lang.String)">setManifestHeader</a></strong>(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
                 <a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</code>
<div class="block">Sets a header within the plug-in's underlying manifest header, if it has
 one.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected abstract void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#updateModel(org.eclipse.core.runtime.IProgressMonitor)">updateModel</a></strong>(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/IProgressMonitor.html?is-external=true" title="class or interface in org.eclipse.core.runtime">IProgressMonitor</a>&nbsp;monitor)</code>
<div class="block">Subclass must implement this method to add the required entries in the
 plug-in model.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.eclipse.pde.ui.templates.ITemplateSection">
<!--   -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.pde.ui.templates.<a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a></h3>
<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getLabel()">getLabel</a>, <a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getNewFiles()">getNewFiles</a>, <a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getPage(int)">getPage</a>, <a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getPageCount()">getPageCount</a>, <a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getUsedExtensionPoint()">getUsedExtensionPoint</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="project">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>project</h4>
<pre>protected&nbsp;<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/IProject.html?is-external=true" title="class or interface in org.eclipse.core.resources">IProject</a> project</pre>
<div class="block">The project handle.</div>
</li>
</ul>
<a name="model">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>model</h4>
<pre>protected&nbsp;<a href="../../../../../org/eclipse/pde/core/plugin/IPluginModelBase.html" title="interface in org.eclipse.pde.core.plugin">IPluginModelBase</a> model</pre>
<div class="block">The plug-in model.</div>
</li>
</ul>
<a name="KEY_PLUGIN_CLASS">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KEY_PLUGIN_CLASS</h4>
<pre>public static final&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> KEY_PLUGIN_CLASS</pre>
<div class="block">The key for the main plug-in class of the plug-in that the template is
 used for (value="pluginClass").  The return value is a fully-qualified class name.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.eclipse.pde.ui.templates.AbstractTemplateSection.KEY_PLUGIN_CLASS">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="KEY_ACTIVATOR_SIMPLE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KEY_ACTIVATOR_SIMPLE</h4>
<pre>public static final&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> KEY_ACTIVATOR_SIMPLE</pre>
<div class="block">The key for the simple class name of a bundle activator (value="activator")</div>
<dl><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.eclipse.pde.ui.templates.AbstractTemplateSection.KEY_ACTIVATOR_SIMPLE">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="KEY_PLUGIN_ID">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KEY_PLUGIN_ID</h4>
<pre>public static final&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> KEY_PLUGIN_ID</pre>
<div class="block">The key for the plug-in id of the plug-in that the template is used for
 (value="pluginId").</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.eclipse.pde.ui.templates.AbstractTemplateSection.KEY_PLUGIN_ID">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="KEY_PLUGIN_NAME">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>KEY_PLUGIN_NAME</h4>
<pre>public static final&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> KEY_PLUGIN_NAME</pre>
<div class="block">The key for the plug-in name of the plug-in that the template is used for
 (value="pluginName").</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.eclipse.pde.ui.templates.AbstractTemplateSection.KEY_PLUGIN_NAME">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="KEY_PACKAGE_NAME">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>KEY_PACKAGE_NAME</h4>
<pre>public static final&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> KEY_PACKAGE_NAME</pre>
<div class="block">The key for the package name that will be created by this template
 (value="packageName").</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.eclipse.pde.ui.templates.AbstractTemplateSection.KEY_PACKAGE_NAME">Constant Field Values</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="AbstractTemplateSection()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>AbstractTemplateSection</h4>
<pre>public&nbsp;AbstractTemplateSection()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="getReplacementString(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getReplacementString</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getReplacementString(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;fileName,
                          <a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</pre>
<div class="block">The default implementation of this method provides values of the
 following keys: <samp>pluginClass </samp>, <samp>pluginId </samp> and
 <samp>pluginName </samp>.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getReplacementString(java.lang.String, java.lang.String)">getReplacementString</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>fileName</code> - the name of the file in which the key was found. You can use
            it to return different values for different files.</dd><dd><code>key</code> - the replacement key found in the template file</dd>
<dt><span class="strong">Returns:</span></dt><dd>replacement string for the provided key, or the key itself if not
         found.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getReplacementString(java.lang.String, java.lang.String)"><code>ITemplateSection.getReplacementString(String,String)</code></a></dd></dl>
</li>
</ul>
<a name="getValue(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;getValue(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/IVariableProvider.html#getValue(java.lang.String)">IVariableProvider</a></code></strong></div>
<div class="block">Returns the value of the variable with a given name.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/eclipse/pde/ui/templates/IVariableProvider.html#getValue(java.lang.String)">getValue</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/IVariableProvider.html" title="interface in org.eclipse.pde.ui.templates">IVariableProvider</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - the name of the variable</dd>
<dt><span class="strong">Returns:</span></dt><dd>the value of the specified variable</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/pde/ui/templates/IVariableProvider.html#getValue(java.lang.String)"><code>IVariableProvider.getValue(String)</code></a></dd></dl>
</li>
</ul>
<a name="getTemplateLocation()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTemplateLocation</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a>&nbsp;getTemplateLocation()</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getTemplateLocation()">ITemplateSection</a></code></strong></div>
<div class="block">Returns the URL of the zip file containing template files and directories
 that will be created in the plug-in project. If URL protocol is 'file',
 and the URL ends with a trailing file separator, an attempt will be made
 to treat the URL as a root directory and iterate using standard Java I/O
 classes. If template files are stored in a ZIP or JAR archive, the name
 of the archive must be part of the URL.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getTemplateLocation()">getTemplateLocation</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>a template location URL</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getTemplateLocation()"><code>ITemplateSection.getTemplateLocation()</code></a></dd></dl>
</li>
</ul>
<a name="getDescription()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDescription</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getDescription()</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getDescription()">ITemplateSection</a></code></strong></div>
<div class="block">Returns a description of the section. The description should explain what
 extension will be used, what classes will be generated and how to test
 that the generated code works properly.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getDescription()">getDescription</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>a template description</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getDescription()"><code>ITemplateSection.getDescription()</code></a></dd></dl>
</li>
</ul>
<a name="getPluginResourceString(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPluginResourceString</h4>
<pre>public&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getPluginResourceString(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</pre>
<div class="block">Returns the translated version of the resource string represented by the
 provided key.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>key</code> - the key of the required resource string</dd>
<dt><span class="strong">Returns:</span></dt><dd>the translated version of the required resource string</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#getPluginResourceBundle()"><code>getPluginResourceBundle()</code></a></dd></dl>
</li>
</ul>
<a name="getPluginResourceBundle()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPluginResourceBundle</h4>
<pre>protected abstract&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/util/ResourceBundle.html?is-external=true" title="class or interface in java.util">ResourceBundle</a>&nbsp;getPluginResourceBundle()</pre>
<div class="block">An abstract method that returns the resource bundle that corresponds to
 the best match of <samp>plugin.properties </samp> file for the current
 locale (in case of fragments, the file is <samp>fragment.properties
 </samp>).</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>resource bundle for plug-in properties file or <samp>null </samp>
         if not found.</dd></dl>
</li>
</ul>
<a name="addPages(org.eclipse.jface.wizard.Wizard)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addPages</h4>
<pre>public&nbsp;void&nbsp;addPages(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/jface/wizard/Wizard.html?is-external=true" title="class or interface in org.eclipse.jface.wizard">Wizard</a>&nbsp;wizard)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#addPages(org.eclipse.jface.wizard.Wizard)">ITemplateSection</a></code></strong></div>
<div class="block">Adds template-related pages to the wizard. A typical section
 implementation contributes one page, but complex sections may span
 several pages.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#addPages(org.eclipse.jface.wizard.Wizard)">addPages</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>wizard</code> - the host wizard to add pages into</dd></dl>
</li>
</ul>
<a name="getPagesAdded()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPagesAdded</h4>
<pre>public&nbsp;boolean&nbsp;getPagesAdded()</pre>
<div class="block">Tests if wizard pages for this template section have been added.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getPagesAdded()">getPagesAdded</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd><code>true</code> if wizard pages for this section have been
         added, <code>false</code> otherwise.</dd></dl>
</li>
</ul>
<a name="markPagesAdded()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>markPagesAdded</h4>
<pre>protected&nbsp;void&nbsp;markPagesAdded()</pre>
<div class="block">Marks that pages have been added to the wizard by this template. Call
 this method in 'addPages'.</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#addPages(org.eclipse.jface.wizard.Wizard)"><code>addPages(Wizard)</code></a></dd></dl>
</li>
</ul>
<a name="getNumberOfWorkUnits()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNumberOfWorkUnits</h4>
<pre>public&nbsp;int&nbsp;getNumberOfWorkUnits()</pre>
<div class="block">The default implementation of the interface method. The returned value is
 1.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getNumberOfWorkUnits()">getNumberOfWorkUnits</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>the number of work units</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getNumberOfWorkUnits()"><code>ITemplateSection.getNumberOfWorkUnits()</code></a></dd></dl>
</li>
</ul>
<a name="getDependencies(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDependencies</h4>
<pre>public&nbsp;<a href="../../../../../org/eclipse/pde/core/plugin/IPluginReference.html" title="interface in org.eclipse.pde.core.plugin">IPluginReference</a>[]&nbsp;getDependencies(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;schemaVersion)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getDependencies(java.lang.String)">ITemplateSection</a></code></strong></div>
<div class="block">Provides the list of template dependencies. A template may generate a
 number of Java classes that reference classes and interfaces from other
 plug-ins. By providing this list, a template enables the template wizard
 to create the correct Java build path so that these classes and
 interfaces are correctly resolved.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#getDependencies(java.lang.String)">getDependencies</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>schemaVersion</code> - version of the target manifest, or <samp>null </samp> if older
            manifest (prior to 3.0) will be created. Depending on the
            manifest version, the list of dependencies may vary.</dd>
<dt><span class="strong">Returns:</span></dt><dd>an array of template dependencies</dd></dl>
</li>
</ul>
<a name="getSourceFolder(org.eclipse.core.runtime.IProgressMonitor)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSourceFolder</h4>
<pre>protected&nbsp;<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/IFolder.html?is-external=true" title="class or interface in org.eclipse.core.resources">IFolder</a>&nbsp;getSourceFolder(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/IProgressMonitor.html?is-external=true" title="class or interface in org.eclipse.core.runtime">IProgressMonitor</a>&nbsp;monitor)</pre>
<div class="block">Returns the folder with Java files in the target project. The default
 implementation looks for source folders in the classpath of the target
 folders and picks the first one encountered. Subclasses may override this
 behaviour.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>monitor</code> - progress monitor to use</dd>
<dt><span class="strong">Returns:</span></dt><dd>source folder that will be used to generate Java files or
         <samp>null </samp> if none found.</dd></dl>
</li>
</ul>
<a name="generateFiles(org.eclipse.core.runtime.IProgressMonitor)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>generateFiles</h4>
<pre>protected&nbsp;void&nbsp;generateFiles(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/IProgressMonitor.html?is-external=true" title="class or interface in org.eclipse.core.runtime">IProgressMonitor</a>&nbsp;monitor)
                      throws <a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html?is-external=true" title="class or interface in org.eclipse.core.runtime">CoreException</a></pre>
<div class="block">Generates files as part of the template execution. The default
 implementation uses template location as a root of the file templates.
 <a href="../../../../../org/eclipse/pde/ui/templates/AbstractTemplateSection.html#generateFiles(org.eclipse.core.runtime.IProgressMonitor, java.net.URL)"><code>generateFiles(IProgressMonitor monitor, URL locationUrl)</code></a> on how
 the location gets processed.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>monitor</code> - progress monitor to use to indicate generation progress</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html?is-external=true" title="class or interface in org.eclipse.core.runtime">CoreException</a></code></dd></dl>
</li>
</ul>
<a name="generateFiles(org.eclipse.core.runtime.IProgressMonitor, java.net.URL)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>generateFiles</h4>
<pre>protected&nbsp;void&nbsp;generateFiles(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/IProgressMonitor.html?is-external=true" title="class or interface in org.eclipse.core.runtime">IProgressMonitor</a>&nbsp;monitor,
                 <a href="http://download.oracle.com/javase/7/docs/api/java/net/URL.html?is-external=true" title="class or interface in java.net">URL</a>&nbsp;locationUrl)
                      throws <a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html?is-external=true" title="class or interface in org.eclipse.core.runtime">CoreException</a></pre>
<div class="block">Generates files as part of the template execution.
 The files found in the location are processed in the following way:
 <ul>
 <li>Files and folders found in the directory <samp>bin </samp> are
 copied into the target project without modification.</li>
 <li>Files found in the directory <samp>java </samp> are copied into the
 Java source folder by creating the folder structure that corresponds to
 the package name (variable <samp>packageName </samp>). Java files are
 subject to conditional generation and variable replacement.</li>
 <li>All other files and folders are copied directly into the target
 folder with the conditional generation and variable replacement for
 files. Variable replacement also includes file names.</li>
 </ul></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>monitor</code> - progress monitor to use to indicate generation progress</dd><dd><code>locationUrl</code> - a url pointing to a file/directory that will be copied into the template</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html?is-external=true" title="class or interface in org.eclipse.core.runtime">CoreException</a></code></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.3</dd></dl>
</li>
</ul>
<a name="isOkToCreateFolder(java.io.File)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isOkToCreateFolder</h4>
<pre>protected&nbsp;boolean&nbsp;isOkToCreateFolder(<a href="http://download.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;sourceFolder)</pre>
<div class="block">Tests if the folder found in the template location should be created in
 the target project. Subclasses may use this method to conditionally block
 the creation of entire directories (subject to user choices).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sourceFolder</code> - the folder that is tested</dd>
<dt><span class="strong">Returns:</span></dt><dd><code>true</code> if the provided folder should be created in
         the workspace, <code>false</code> if the values of the
         substitution variables indicate otherwise.</dd></dl>
</li>
</ul>
<a name="isOkToCreateFile(java.io.File)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isOkToCreateFile</h4>
<pre>protected&nbsp;boolean&nbsp;isOkToCreateFile(<a href="http://download.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io">File</a>&nbsp;sourceFile)</pre>
<div class="block">Tests if the file found in the template location should be created in the
 target project. Subclasses may use this method to conditionally block
 creation of the file (subject to user choices).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>sourceFile</code> - the file found in the template location that needs to be
            created.</dd>
<dt><span class="strong">Returns:</span></dt><dd><samp>true </samp> if the specified file should be created in the
         project or <samp>false </samp> to skip it. The default
         implementation is <samp>true </samp>.</dd></dl>
</li>
</ul>
<a name="updateModel(org.eclipse.core.runtime.IProgressMonitor)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>updateModel</h4>
<pre>protected abstract&nbsp;void&nbsp;updateModel(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/IProgressMonitor.html?is-external=true" title="class or interface in org.eclipse.core.runtime">IProgressMonitor</a>&nbsp;monitor)
                             throws <a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html?is-external=true" title="class or interface in org.eclipse.core.runtime">CoreException</a></pre>
<div class="block">Subclass must implement this method to add the required entries in the
 plug-in model.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>monitor</code> - the progress monitor to be used</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html?is-external=true" title="class or interface in org.eclipse.core.runtime">CoreException</a></code></dd></dl>
</li>
</ul>
<a name="execute(org.eclipse.core.resources.IProject, org.eclipse.pde.core.plugin.IPluginModelBase, org.eclipse.core.runtime.IProgressMonitor)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>execute</h4>
<pre>public&nbsp;void&nbsp;execute(<a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/IProject.html?is-external=true" title="class or interface in org.eclipse.core.resources">IProject</a>&nbsp;project,
           <a href="../../../../../org/eclipse/pde/core/plugin/IPluginModelBase.html" title="interface in org.eclipse.pde.core.plugin">IPluginModelBase</a>&nbsp;model,
           <a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/IProgressMonitor.html?is-external=true" title="class or interface in org.eclipse.core.runtime">IProgressMonitor</a>&nbsp;monitor)
             throws <a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html?is-external=true" title="class or interface in org.eclipse.core.runtime">CoreException</a></pre>
<div class="block">The default implementation of the interface method. It will generate
 required files found in the template location and then call
 <samp>updateModel </samp> to add the required manifest entires.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#execute(org.eclipse.core.resources.IProject, org.eclipse.pde.core.plugin.IPluginModelBase, org.eclipse.core.runtime.IProgressMonitor)">execute</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html" title="interface in org.eclipse.pde.ui.templates">ITemplateSection</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>project</code> - the workspace project that contains the plug-in</dd><dd><code>model</code> - structured representation of the plug-in manifest</dd><dd><code>monitor</code> - progress monitor to indicate execution progress</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html?is-external=true" title="class or interface in org.eclipse.core.runtime">CoreException</a></code> - if there is a problem generating resources</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/eclipse/pde/ui/templates/ITemplateSection.html#execute(org.eclipse.core.resources.IProject, org.eclipse.pde.core.plugin.IPluginModelBase, org.eclipse.core.runtime.IProgressMonitor)"><code>ITemplateSection.execute(IProject, IPluginModelBase,
      IProgressMonitor)</code></a></dd></dl>
</li>
</ul>
<a name="createExtension(java.lang.String, boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createExtension</h4>
<pre>protected&nbsp;<a href="../../../../../org/eclipse/pde/core/plugin/IPluginExtension.html" title="interface in org.eclipse.pde.core.plugin">IPluginExtension</a>&nbsp;createExtension(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;pointId,
                               boolean&nbsp;reuse)
                                    throws <a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html?is-external=true" title="class or interface in org.eclipse.core.runtime">CoreException</a></pre>
<div class="block">A utility method to create an extension object for the plug-in model from
 the provided extension point id.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pointId</code> - the identifier of the target extension point</dd><dd><code>reuse</code> - if true, new extension object will be created only if an
            extension with the same Id does not exist.</dd>
<dt><span class="strong">Returns:</span></dt><dd>an existing extension (if exists and <samp>reuse </samp> is
         <samp>true </samp>), or a new extension object otherwise.</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code><a href="../../../../.././../../../org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/runtime/CoreException.html?is-external=true" title="class or interface in org.eclipse.core.runtime">CoreException</a></code></dd></dl>
</li>
</ul>
<a name="getTargetVersion()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTargetVersion</h4>
<pre>protected&nbsp;double&nbsp;getTargetVersion()</pre>
</li>
</ul>
<a name="setManifestHeader(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setManifestHeader</h4>
<pre>protected&nbsp;void&nbsp;setManifestHeader(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
                     <a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;value)</pre>
<div class="block">Sets a header within the plug-in's underlying manifest header, if it has
 one. It the plug-in doesn't have a manifest, this method does nothing.
 It's expected that this method will only be called by sub-classes during
 execution of the template (i.e. during the sub-class's
 <samp>updateModel(...)</samp> method). <p/> For example:
 <dl>
 <dd><samp>setManifestHeader(Constants.BUNDLE_LOCALIZATION,
 &quot;plugin&quot;)</samp></dd>
 </dl></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - The name of the header to set</dd><dd><code>value</code> - The value of the header</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.4</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="http://www.osgi.org/javadoc/r5/core/org/osgi/framework/Constants.html?is-external=true" title="class or interface in org.osgi.framework"><code>Constants</code></a></dd></dl>
</li>
</ul>
<a name="getManifestHeader(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getManifestHeader</h4>
<pre>protected&nbsp;<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getManifestHeader(<a href="http://download.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</pre>
<div class="block">Gets a header from within the plug-in's underlying manifest header, if it
 has one. If the plug-in doesn't have a manifest, this method returns
 <samp>null</samp>. It's expected that this method will only be called by
 sub-classes during execution of the template (i.e. during the sub-class's
 <samp>updateModel(...)</samp> method).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - The name of the header to fetch</dd>
<dt><span class="strong">Returns:</span></dt><dd>The value of the manifest header, if available, otherwise
         <samp>null</samp></dd><dt><span class="strong">Since:</span></dt>
  <dd>3.4</dd></dl>
</li>
</ul>
<a name="hasBundleManifest()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>hasBundleManifest</h4>
<pre>protected&nbsp;boolean&nbsp;hasBundleManifest()</pre>
<div class="block">Determines whether this plug-in has a manifest on which to set/get
 headers. This method will return <samp>false</samp> if the plug-in
 doesn't have a manifest (e.g. it's a v3.0 plug-in) or if the method is
 called before the model has been set on the template.
 
 It's expected that this method will only be called by sub-classes during
 execution of the template (i.e. during the sub-class's
 <samp>updateModel(...)</samp> method).</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><sampl>true</samp> if the plug-in has a manifest, <samp>false</samp>
         otherwise</dd><dt><span class="strong">Since:</span></dt>
  <dd>3.4</dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/AbstractTemplateSection.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><em><span style='font-size:small'><b>Eclipse PDE</b><br>Luna (4.4)</span></em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/eclipse/pde/ui/templates/AbstractNewPluginTemplateWizard.html" title="class in org.eclipse.pde.ui.templates"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/eclipse/pde/ui/templates/BaseOptionTemplateSection.html" title="class in org.eclipse.pde.ui.templates"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/eclipse/pde/ui/templates/AbstractTemplateSection.html" target="_top">Frames</a></li>
<li><a href="AbstractTemplateSection.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><br><span style='font-size:small;float:right'>Copyright (c) 2000, 2013 Eclipse Contributors and others. All rights reserved.</span><span style='font-size:small'><a href='../../../../../../misc/api-usage-rules.html'>Guidelines for using Eclipse APIs.</a></span></small></p>
</body>
</html>
New to GrepCode? Check out our FAQ X