diff --git a/core/org.eclipse.cdt.ui/templateengine/org/eclipse/cdt/ui/templateengine/pages/UIWizardPage.java b/core/org.eclipse.cdt.ui/templateengine/org/eclipse/cdt/ui/templateengine/pages/UIWizardPage.java index ffb2a00a9cc..76e5294697d 100644 --- a/core/org.eclipse.cdt.ui/templateengine/org/eclipse/cdt/ui/templateengine/pages/UIWizardPage.java +++ b/core/org.eclipse.cdt.ui/templateengine/org/eclipse/cdt/ui/templateengine/pages/UIWizardPage.java @@ -272,17 +272,11 @@ public class UIWizardPage extends UIPage implements IWizardDataPage, PatternEven // set the focus so that InfoPop is displayed when F1 is Pressed. uiComposite.setFocus(); - setControl(uiComposite); - - // 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. + PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), pageId); + setPageComplete(uiComposite.isValid()); - PlatformUI.getWorkbench().getHelpSystem().setHelp(super.getControl(), pageId); } /** diff --git a/doc/org.eclipse.cdt.doc.isv/guide/projectTemplateEngine/Howtodeveloptemplates.html b/doc/org.eclipse.cdt.doc.isv/guide/projectTemplateEngine/Howtodeveloptemplates.html index 8a5e79cc363..7dd1d0259ae 100644 --- a/doc/org.eclipse.cdt.doc.isv/guide/projectTemplateEngine/Howtodeveloptemplates.html +++ b/doc/org.eclipse.cdt.doc.isv/guide/projectTemplateEngine/Howtodeveloptemplates.html @@ -65,7 +65,7 @@ structure for the project templates, is part of
The structure or schema for a project template is as follows:
-<template
type="TemplateType"
version="Version"
supplier="Supplier"
revision="Revision"
author="Author"
id="TemplateId"
label="Template label visible to the user"
description="A brief description of the template"
help="help.html"
preview-icon="icon.gif">
<property-group
id="properyGroupId"
label="Property group label"
description="A simple description of the property group"
type=" Type of UIElement group"
help="help.html"
branding-icon="icon.gif">
...
</property-group>
<process>
...
</process>
</template>
<template
type="TemplateType"
version="Version"
supplier="Supplier"
revision="Revision"
author="Author"
id="TemplateId"
label="Template label visible to the user"
description="A brief description of the template"
preview-icon="icon.gif">
<property-group
id="properyGroupId"
label="Property group label"
description="A simple description of the property group"
type=" Type of UIElement group"
branding-icon="icon.gif">
...
</property-group>
<process>
...
</process>
</template>
The root element for a project template is template
, which
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
from the list of available templates.
-help
: Use this attribute to specify the HTML help file
-name for the template.
-
preview-icon
: Use this attribute to specify a
GIF
or JPG
file name to be used as a icon for the
@@ -138,7 +132,9 @@ The template
element includes the following child elements:
wizard page in the New Project wizard. It lists all the fields to be displayed
to the user for input using the property
element. For example, you
could use this element to define all the input fields to be displayed in the
-Project Directories page of the New Project wizard.
+Project Directories page of the New Project wizard. The id attribute
+of the property-group is used as the Eclipse Help system id (see org.eclipse.help.contexts
). The
+containing plug-in of the context id is org.eclipse.cdt.ui
.
@@ -217,11 +213,6 @@ displayed as tabs or as a tree structure.
-help
: Use this attribute to specify the HTML help file
-name for the property group.
-
branding-icon
: Use this attribute to specify a
GIF
file name to be used as an icon for the property group.