1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

188926: update template documentation

This commit is contained in:
Andrew Ferguson 2008-03-19 12:02:05 +00:00
parent 7d4b0fd582
commit 7c22f386b8
2 changed files with 6 additions and 21 deletions

View file

@ -272,17 +272,11 @@ public class UIWizardPage extends UIPage implements IWizardDataPage, PatternEven
// set the focus so that InfoPop is displayed when F1 is Pressed. // set the focus so that InfoPop is displayed when F1 is Pressed.
uiComposite.setFocus(); uiComposite.setFocus();
setControl(uiComposite); setControl(uiComposite);
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), pageId);
// Setting InfoPop help context ID(plugin-id+ContextID).
PlatformUI.getWorkbench().getHelpSystem().setHelp(super.getControl(), pageId);
// Page complete is set true of false, based on Mandatory attribute
// and Widgets contents.
setPageComplete(uiComposite.isValid()); setPageComplete(uiComposite.isValid());
PlatformUI.getWorkbench().getHelpSystem().setHelp(super.getControl(), pageId);
} }
/** /**

View file

@ -65,7 +65,7 @@ structure for the project templates, is part of
<p> <p>
The structure or schema for a project template is as follows: The structure or schema for a project template is as follows:
</p> </p>
<p class="CodeBlock"><code>&lt;template <br>type="TemplateType" <br>version="Version" <br>supplier="Supplier" <br>revision="Revision" <br>author="Author"&nbsp;&nbsp;&nbsp;<br>id="TemplateId" <br>label="Template label visible to the user" <br>description="A brief description of the template" <br>help="help.html" <br>preview-icon="icon.gif"&gt;<br><br>&lt;property-group <br>id="properyGroupId" <br>label="Property group label" <br>description="A simple description of the property group" <br>type=" Type of UIElement group" <br>help="help.html"<br>branding-icon="icon.gif"&gt;<br>...<br>&lt;/property-group&gt;<br><br>&lt;process&gt;<br>...<br>&lt;/process&gt;<br><br>&lt;/template&gt;</code></p> <p class="CodeBlock"><code>&lt;template <br>type="TemplateType" <br>version="Version" <br>supplier="Supplier" <br>revision="Revision" <br>author="Author"&nbsp;&nbsp;&nbsp;<br>id="TemplateId" <br>label="Template label visible to the user" <br>description="A brief description of the template" <br>preview-icon="icon.gif"&gt;<br><br>&lt;property-group <br>id="properyGroupId" <br>label="Property group label" <br>description="A simple description of the property group" <br>type=" Type of UIElement group" <br>branding-icon="icon.gif"&gt;<br>...<br>&lt;/property-group&gt;<br><br>&lt;process&gt;<br>...<br>&lt;/process&gt;<br><br>&lt;/template&gt;</code></p>
<p> <p>
The root element for a project template is <code>template</code>, which The root element for a project template is <code>template</code>, which
provides the following properties or attributes to describe the template: provides the following properties or attributes to describe the template:
@ -114,12 +114,6 @@ Application".
for the template, which is displayed to users when they choose the template for the template, which is displayed to users when they choose the template
from the list of available templates. from the list of available templates.
</p> </p>
<li>
<p>
<code>help</code>: Use this attribute to specify the HTML help file
name for the template.
</p>
<li>
<p> <p>
<code>preview-icon</code>: Use this attribute to specify a <code>preview-icon</code>: Use this attribute to specify a
<code class="filename">GIF</code> or <code class="filename">JPG</code> file name to be used as a icon for the <code class="filename">GIF</code> or <code class="filename">JPG</code> file name to be used as a icon for the
@ -138,7 +132,9 @@ The <code>template</code> element includes the following child elements:
wizard page in the New Project wizard. It lists all the fields to be displayed wizard page in the New Project wizard. It lists all the fields to be displayed
to the user for input using the <code>property</code> element. For example, you to the user for input using the <code>property</code> element. For example, you
could use this element to define all the input fields to be displayed in the could use this element to define all the input fields to be displayed in the
<em>Project Directories</em> page of the New Project wizard. <em>Project Directories</em> page of the New Project wizard. The <em>id</em> attribute
of the property-group is used as the Eclipse Help system id (see <code>org.eclipse.help.contexts</code>). The
containing plug-in of the context id is <code>org.eclipse.cdt.ui</code>.
</p> </p>
<li> <li>
<p> <p>
@ -217,11 +213,6 @@ displayed as tabs or as a tree structure.
</ul> </ul>
<li> <li>
<p> <p>
<code>help</code>: Use this attribute to specify the HTML help file
name for the property group.
</p>
<li>
<p>
<code>branding-icon</code>: Use this attribute to specify a <code>branding-icon</code>: Use this attribute to specify a
<code class="filename">GIF</code> file name to be used as an icon for the property group. <code class="filename">GIF</code> file name to be used as an icon for the property group.
</p> </p>