1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug #229327 : CDT help pages for Property Tabs are not accessible

This commit is contained in:
Oleg Krasilnikov 2008-05-13 16:04:05 +00:00
parent 2a8ddcb4ee
commit 4e2a3b2bfc
7 changed files with 239 additions and 35 deletions

View file

@ -431,6 +431,7 @@
name="%Includes" name="%Includes"
icon="icons/obj16/hfolder_obj.gif" icon="icons/obj16/hfolder_obj.gif"
weight="001" weight="001"
helpId="cdt_u_prop_pns_inc"
parent="org.eclipse.cdt.make.internal.ui.properties.PathAndSymbolPage" parent="org.eclipse.cdt.make.internal.ui.properties.PathAndSymbolPage"
tooltip=""Includes list""/> tooltip=""Includes list""/>
<tab <tab
@ -438,6 +439,7 @@
name="%Symbols" name="%Symbols"
icon="icons/obj16/define_obj.gif" icon="icons/obj16/define_obj.gif"
weight="002" weight="002"
helpId="cdt_u_prop_pns_sym"
parent="org.eclipse.cdt.make.internal.ui.properties.PathAndSymbolPage" parent="org.eclipse.cdt.make.internal.ui.properties.PathAndSymbolPage"
tooltip="&quot;Macros list&quot;"/> tooltip="&quot;Macros list&quot;"/>
</extension> </extension>

View file

@ -217,44 +217,52 @@
icon="icons/elcl16/discovery.gif" icon="icons/elcl16/discovery.gif"
name="(Single) Discovery.options" name="(Single) Discovery.options"
weight="005" weight="005"
helpId="cdt_u_prop_build_discovery"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Discovery"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Discovery"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsTab" class="org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsTab"
icon="icons/elcl16/config-tool.gif" icon="icons/elcl16/config-tool.gif"
name="%Tool.settings" name="%Tool.settings"
weight="001" weight="001"
helpId="cdt_u_prop_build_setting_tool"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.BuildStepsTab" class="org.eclipse.cdt.managedbuilder.ui.properties.BuildStepsTab"
icon="icons/obj16/steps.gif" icon="icons/obj16/steps.gif"
name="%Build.steps" name="%Build.steps"
helpId="cdt_u_prop_build_setting_steps"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"
weight="002"/> weight="002"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.ArtifactTab" class="org.eclipse.cdt.managedbuilder.ui.properties.ArtifactTab"
icon="icons/obj16/artifact.gif" icon="icons/obj16/artifact.gif"
name="%Build.artifact" name="%Build.artifact"
helpId="cdt_u_prop_build_setting_artifact"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"
weight="003"/> weight="003"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab" class="org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab"
icon="icons/obj16/build_settings.gif" icon="icons/obj16/build_settings.gif"
name="%Builder.settings" name="%Builder.settings"
helpId="cdt_u_prop_build"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
weight="004"/> weight="004"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.BuildBehaviourTab" class="org.eclipse.cdt.managedbuilder.ui.properties.BuildBehaviourTab"
icon="icons/obj16/target_obj.gif" icon="icons/obj16/target_obj.gif"
name="%WBB.settings" name="%WBB.settings"
helpId="cdt_u_prop_build"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
weight="005"/> weight="005"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.CPropertyVarsTab" class="org.eclipse.cdt.managedbuilder.ui.properties.CPropertyVarsTab"
name="(Single) CDT Vars (macros)" name="(Single) CDT Vars (macros)"
helpId="cdt_u_prop_build_variables"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Variables"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Variables"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.ToolChainEditTab" class="org.eclipse.cdt.managedbuilder.ui.properties.ToolChainEditTab"
name="(Single) Tool chain edit" name="(Single) Tool chain edit"
helpId="cdt_u_prop_build_toolchain"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ToolChain"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ToolChain"/>
<!-- exported from CORE --> <!-- exported from CORE -->
@ -263,6 +271,7 @@
icon="icons/obj16/hfolder_obj.gif" icon="icons/obj16/hfolder_obj.gif"
name="%Includes" name="%Includes"
weight="001" weight="001"
helpId="cdt_u_prop_pns_inc"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
tooltip="&quot;Includes list&quot;"/> tooltip="&quot;Includes list&quot;"/>
<tab <tab
@ -270,6 +279,7 @@
icon="icons/obj16/define_obj.gif" icon="icons/obj16/define_obj.gif"
name="%Symbols" name="%Symbols"
weight="002" weight="002"
helpId="cdt_u_prop_pns_sym"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
tooltip="&quot;Macros list&quot;"/> tooltip="&quot;Macros list&quot;"/>
<tab <tab
@ -277,6 +287,7 @@
icon="icons/obj16/lib_obj.gif" icon="icons/obj16/lib_obj.gif"
name="%Libraries" name="%Libraries"
weight="003" weight="003"
helpId="cdt_u_prop_pns_lib"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
tooltip="&quot;Libraries list&quot;"/> tooltip="&quot;Libraries list&quot;"/>
<tab <tab
@ -284,55 +295,64 @@
icon="icons/obj16/opentype.gif" icon="icons/obj16/opentype.gif"
name="%Library.paths" name="%Library.paths"
weight="004" weight="004"
helpId="cdt_u_prop_pns_libpath"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/>
<tab <tab
class="org.eclipse.cdt.ui.newui.RefsTab" class="org.eclipse.cdt.ui.newui.RefsTab"
icon="icons/obj16/search_ref_obj.gif" icon="icons/obj16/search_ref_obj.gif"
name="%References" name="%References"
weight="010" weight="010"
helpId="cdt_u_prop_pns_ref"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/>
<tab <tab
class="org.eclipse.cdt.ui.newui.CLocationSourceTab" class="org.eclipse.cdt.ui.newui.CLocationSourceTab"
icon="icons/obj16/fldr_obj.gif" icon="icons/obj16/fldr_obj.gif"
name="%Source.location" name="%Source.location"
weight="008" weight="008"
helpId="cdt_u_prop_pns_src"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.CBuildLocationOutputTab" class="org.eclipse.cdt.managedbuilder.ui.properties.CBuildLocationOutputTab"
icon="icons/obj16/output_folder_obj.gif" icon="icons/obj16/output_folder_obj.gif"
name="%Output.location" name="%Output.location"
weight="009" weight="009"
helpId="cdt_u_prop_pns_out"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/>
<tab <tab
class="org.eclipse.cdt.ui.newui.StructureTreeTab" class="org.eclipse.cdt.ui.newui.StructureTreeTab"
icon="icons/obj16/hierarchy.gif" icon="icons/obj16/hierarchy.gif"
name="%Data.hierarchy" name="%Data.hierarchy"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
helpId=""
weight="012"/> weight="012"/>
<tab <tab
class="org.eclipse.cdt.ui.newui.EnvironmentTab" class="org.eclipse.cdt.ui.newui.EnvironmentTab"
icon="icons/obj16/environment.gif" icon="icons/obj16/environment.gif"
name="(Single) Environment" name="(Single) Environment"
weight="005" weight="005"
helpId="cdt_u_prop_build_environment"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Environment"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Environment"/>
<tab <tab
class="org.eclipse.cdt.ui.newui.BinaryParsTab" class="org.eclipse.cdt.ui.newui.BinaryParsTab"
icon="icons/obj16/bin_obj.gif" icon="icons/obj16/bin_obj.gif"
name="%Binary.parsers" name="%Binary.parsers"
weight="006" weight="006"
helpId="cdt_u_prop_build_setting_binparser"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"/>
<tab <tab
class="org.eclipse.cdt.ui.newui.ErrorParsTab" class="org.eclipse.cdt.ui.newui.ErrorParsTab"
icon="icons/obj16/error_obj.gif" icon="icons/obj16/error_obj.gif"
name="%Error.parsers" name="%Error.parsers"
weight="007" weight="007"
helpId="cdt_u_prop_build_setting_errparser"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"/>
<!-- Export settings page --> <!-- Export settings page -->
<tab <tab
class="org.eclipse.cdt.ui.newui.ExpIncludeTab" class="org.eclipse.cdt.ui.newui.ExpIncludeTab"
icon="icons/obj16/hfolder_obj.gif" icon="icons/obj16/hfolder_obj.gif"
name="%Includes" name="%Includes"
helpId="cdt_u_prop_exp"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb"
tooltip="&quot;Includes list&quot;"/> tooltip="&quot;Includes list&quot;"/>
<tab <tab
@ -340,17 +360,20 @@
icon="icons/obj16/define_obj.gif" icon="icons/obj16/define_obj.gif"
name="%Symbols" name="%Symbols"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb"
helpId="cdt_u_prop_exp"
tooltip="&quot;Macros list&quot;"/> tooltip="&quot;Macros list&quot;"/>
<tab <tab
class="org.eclipse.cdt.ui.newui.ExpLibraryTab" class="org.eclipse.cdt.ui.newui.ExpLibraryTab"
icon="icons/obj16/lib_obj.gif" icon="icons/obj16/lib_obj.gif"
name="%Libraries" name="%Libraries"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb" parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb"
helpId="cdt_u_prop_exp"
tooltip="&quot;Libraries list&quot;"/> tooltip="&quot;Libraries list&quot;"/>
<tab <tab
class="org.eclipse.cdt.ui.newui.ExpLibraryPathTab" class="org.eclipse.cdt.ui.newui.ExpLibraryPathTab"
icon="icons/obj16/opentype.gif" icon="icons/obj16/opentype.gif"
name="%Library.paths" name="%Library.paths"
helpId="cdt_u_prop_exp"
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb"/> parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb"/>
<!-- tabs for Preference pages --> <!-- tabs for Preference pages -->
@ -358,54 +381,65 @@
class="org.eclipse.cdt.ui.newui.EnvironmentTab" class="org.eclipse.cdt.ui.newui.EnvironmentTab"
icon="icons/obj16/environment.gif" icon="icons/obj16/environment.gif"
name="(Single) Environment" name="(Single) Environment"
helpId="cdt_u_prop_build_environment"
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_Env"/> parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_Env"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.CPropertyVarsTab" class="org.eclipse.cdt.managedbuilder.ui.properties.CPropertyVarsTab"
name="(Single) CDT Vars (macros)" name="(Single) CDT Vars (macros)"
helpId="cdt_u_prop_build_variables"
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_Vars"/> parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_Vars"/>
<tab <tab
class="org.eclipse.cdt.ui.newui.BinaryParsTab" class="org.eclipse.cdt.ui.newui.BinaryParsTab"
name="%Binary.parsers" name="%Binary.parsers"
icon="icons/obj16/bin_obj.gif" icon="icons/obj16/bin_obj.gif"
helpId="cdt_u_prop_build_setting_binparser"
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject" parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"
/> />
<tab <tab
class="org.eclipse.cdt.ui.newui.ErrorParsTab" class="org.eclipse.cdt.ui.newui.ErrorParsTab"
name="%Error.parsers" name="%Error.parsers"
icon="icons/obj16/error_obj.gif" icon="icons/obj16/error_obj.gif"
helpId="cdt_u_prop_build_setting_errparser"
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject" parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"
/> />
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.DiscoveryTab" class="org.eclipse.cdt.managedbuilder.ui.properties.DiscoveryTab"
icon="icons/elcl16/discovery.gif" icon="icons/elcl16/discovery.gif"
name="%Discovery.options" name="%Discovery.options"
helpId="cdt_u_prop_build_discovery"
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject" parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"
/> />
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab" class="org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab"
icon="icons/obj16/build_settings.gif" icon="icons/obj16/build_settings.gif"
name="%Builder.settings" name="%Builder.settings"
helpId="cdt_u_prop_build"
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"/> parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.properties.BuildBehaviourTab" class="org.eclipse.cdt.managedbuilder.ui.properties.BuildBehaviourTab"
icon="icons/obj16/target_obj.gif" icon="icons/obj16/target_obj.gif"
name="%WBB.settings" name="%WBB.settings"
helpId="cdt_u_prop_build"
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"/> parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.preferences.PreferredToolchainsTab" class="org.eclipse.cdt.managedbuilder.ui.preferences.PreferredToolchainsTab"
name="%Preferred.toolchains" name="%Preferred.toolchains"
helpId=""
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTWizard"/> parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTWizard"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.preferences.WizardDefaultsTab" class="org.eclipse.cdt.managedbuilder.ui.preferences.WizardDefaultsTab"
name="%Wizard.defaults" name="%Wizard.defaults"
helpId=""
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTWizard"/> parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTWizard"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.preferences.PropertyPageDefsTab" class="org.eclipse.cdt.managedbuilder.ui.preferences.PropertyPageDefsTab"
name="%PropertyPage.defaults" name="%PropertyPage.defaults"
helpId=""
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_PropertyPage"/> parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_PropertyPage"/>
<tab <tab
class="org.eclipse.cdt.managedbuilder.ui.preferences.PropertyMultiCfgTab" class="org.eclipse.cdt.managedbuilder.ui.preferences.PropertyMultiCfgTab"
name="%multicfg" name="%multicfg"
helpId=""
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_MultiConfig"> parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_MultiConfig">
</tab> </tab>
</extension> </extension>

View file

@ -1,10 +1,10 @@
<?xml version='1.0' encoding='UTF-8'?> <?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE --> <!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.cdt.managedbuilder.ui"> <schema targetNamespace="org.eclipse.cdt.managedbuilder.ui" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation> <annotation>
<appInfo> <appinfo>
<meta.schema plugin="org.eclipse.cdt.managedbuilder.ui" id="cPropertyTab" name="cPropertyTab"/> <meta.schema plugin="org.eclipse.cdt.managedbuilder.ui" id="cPropertyTab" name="cPropertyTab"/>
</appInfo> </appinfo>
<documentation> <documentation>
Implementation of property/preference UI element. Implementation of property/preference UI element.
@ -51,9 +51,9 @@ their weights.
<documentation> <documentation>
</documentation> </documentation>
<appInfo> <appinfo>
<meta.attribute translatable="true"/> <meta.attribute translatable="true"/>
</appInfo> </appinfo>
</annotation> </annotation>
</attribute> </attribute>
</complexType> </complexType>
@ -67,9 +67,9 @@ their weights.
Icon to be displayed for corresponding tab in tabfolder. Icon to be displayed for corresponding tab in tabfolder.
Ignored for single-tab pages Ignored for single-tab pages
</documentation> </documentation>
<appInfo> <appinfo>
<meta.attribute kind="resource"/> <meta.attribute kind="resource"/>
</appInfo> </appinfo>
</annotation> </annotation>
</attribute> </attribute>
<attribute name="class" type="string" use="required"> <attribute name="class" type="string" use="required">
@ -77,9 +77,9 @@ Ignored for single-tab pages
<documentation> <documentation>
Class implementing org.eclipse.cdt.managedbuilder.ui.newproperties.ICPropertyTab Class implementing org.eclipse.cdt.managedbuilder.ui.newproperties.ICPropertyTab
</documentation> </documentation>
<appInfo> <appinfo>
<meta.attribute kind="java" basedOn="org.eclipse.cdt.managedbuilder.ui.newproperties.ICPropertyTab"/> <meta.attribute kind="java" basedOn="org.eclipse.cdt.managedbuilder.ui.newproperties.ICPropertyTab"/>
</appInfo> </appinfo>
</annotation> </annotation>
</attribute> </attribute>
<attribute name="name" type="string" use="required"> <attribute name="name" type="string" use="required">
@ -103,7 +103,7 @@ but it is not obligatory.
<attribute name="tooltip" type="string"> <attribute name="tooltip" type="string">
<annotation> <annotation>
<documentation> <documentation>
Text of tooltip shown over the tab.
</documentation> </documentation>
</annotation> </annotation>
</attribute> </attribute>
@ -115,22 +115,29 @@ Ignored for single-tab page.
</documentation> </documentation>
</annotation> </annotation>
</attribute> </attribute>
<attribute name="helpId" type="string">
<annotation>
<documentation>
Help context Id for given tab.
</documentation>
</annotation>
</attribute>
</complexType> </complexType>
</element> </element>
<annotation> <annotation>
<appInfo> <appinfo>
<meta.section type="since"/> <meta.section type="since"/>
</appInfo> </appinfo>
<documentation> <documentation>
4.0 4.0
</documentation> </documentation>
</annotation> </annotation>
<annotation> <annotation>
<appInfo> <appinfo>
<meta.section type="examples"/> <meta.section type="examples"/>
</appInfo> </appinfo>
<documentation> <documentation>
&lt;extension &lt;extension
point=&quot;org.eclipse.cdt.ui.cPropertyTab&quot;&gt; point=&quot;org.eclipse.cdt.ui.cPropertyTab&quot;&gt;
@ -145,19 +152,20 @@ Ignored for single-tab page.
</annotation> </annotation>
<annotation> <annotation>
<appInfo> <appinfo>
<meta.section type="apiInfo"/> <meta.section type="apiInfo"/>
</appInfo> </appinfo>
<documentation> <documentation>
Tabs must implement interface: Tabs must implement interface:
org.eclipse.cdt.managedbuilder.ui.newproperties.ICPropertyTab org.eclipse.cdt.managedbuilder.ui.newproperties.ICPropertyTab
</documentation> </documentation>
</annotation> </annotation>
<annotation> <annotation>
<appInfo> <appinfo>
<meta.section type="implementation"/> <meta.section type="implementation"/>
</appInfo> </appinfo>
<documentation> <documentation>
Implementors in org.eclipse.cdt.ui.newui: Implementors in org.eclipse.cdt.ui.newui:
BinaryParsTab BinaryParsTab
@ -192,9 +200,9 @@ ToolSettingsTab
</annotation> </annotation>
<annotation> <annotation>
<appInfo> <appinfo>
<meta.section type="copyright"/> <meta.section type="copyright"/>
</appInfo> </appinfo>
<documentation> <documentation>
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007 Intel Corporation and others. * Copyright (c) 2007 Intel Corporation and others.

View file

@ -43,6 +43,7 @@ import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell; import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text; import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.ElementTreeSelectionDialog; import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
import org.eclipse.ui.dialogs.ISelectionStatusValidator; import org.eclipse.ui.dialogs.ISelectionStatusValidator;
import org.eclipse.ui.model.WorkbenchContentProvider; import org.eclipse.ui.model.WorkbenchContentProvider;
@ -101,6 +102,8 @@ public abstract class AbstractCPropertyTab implements ICPropertyTab {
public static final String WORKSPACE_DIR_DIALOG_ERR = UIMessages.getString("BrowseEntryDialog.wsp.dir.dlg.err"); //$NON-NLS-1$ public static final String WORKSPACE_DIR_DIALOG_ERR = UIMessages.getString("BrowseEntryDialog.wsp.dir.dlg.err"); //$NON-NLS-1$
public static final String BACKGROUND_TEXT_DEFAULT = UIMessages.getString("AbstractCPropertyTab.2"); //$NON-NLS-1$ public static final String BACKGROUND_TEXT_DEFAULT = UIMessages.getString("AbstractCPropertyTab.2"); //$NON-NLS-1$
public static final Color BACKGROUND_FOR_USER_VAR = new Color(Display.getDefault(), 255, 255, 200); // light yellow public static final Color BACKGROUND_FOR_USER_VAR = new Color(Display.getDefault(), 255, 255, 200); // light yellow
private static final String PREFIX = "org.eclipse.cdt.ui."; //$NON-NLS-1$
public static final int TRI_UNKNOWN = 2; public static final int TRI_UNKNOWN = 2;
public static final int TRI_YES = 1; public static final int TRI_YES = 1;
@ -115,6 +118,7 @@ public abstract class AbstractCPropertyTab implements ICPropertyTab {
private Button[] buttons; // buttons in buttoncomp private Button[] buttons; // buttons in buttoncomp
public ICPropertyProvider page; public ICPropertyProvider page;
protected Image icon = null; protected Image icon = null;
private String helpId = EMPTY_STR;
protected boolean visible; protected boolean visible;
@ -141,6 +145,8 @@ public abstract class AbstractCPropertyTab implements ICPropertyTab {
GridData d = new GridData(GridData.END); GridData d = new GridData(GridData.END);
d.widthHint = 1; d.widthHint = 1;
buttoncomp.setLayoutData(d); buttoncomp.setLayoutData(d);
PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, helpId);
} }
/** /**
@ -668,4 +674,11 @@ public abstract class AbstractCPropertyTab implements ICPropertyTab {
return (wmode == CDTPrefUtil.WMODE_MODIFY); return (wmode == CDTPrefUtil.WMODE_MODIFY);
} }
public String getHelpContextId() {
return helpId;
}
public void setHelpContextId(String id) {
helpId = PREFIX + id;
}
} }

View file

@ -32,6 +32,8 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.Preferences; import org.eclipse.core.runtime.Preferences;
import org.eclipse.core.runtime.QualifiedName; import org.eclipse.core.runtime.QualifiedName;
import org.eclipse.help.HelpSystem;
import org.eclipse.help.IContext;
import org.eclipse.jface.dialogs.ProgressMonitorDialog; import org.eclipse.jface.dialogs.ProgressMonitorDialog;
import org.eclipse.jface.operation.IRunnableWithProgress; import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.preference.IPreferencePageContainer; import org.eclipse.jface.preference.IPreferencePageContainer;
@ -61,6 +63,7 @@ import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem; import org.eclipse.swt.widgets.TabItem;
import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchPartReference; import org.eclipse.ui.IWorkbenchPartReference;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation; import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
import org.eclipse.ui.dialogs.PropertyPage; import org.eclipse.ui.dialogs.PropertyPage;
@ -114,13 +117,14 @@ implements
private static ICConfigurationDescription[] multiCfgs = null; // selected multi cfg private static ICConfigurationDescription[] multiCfgs = null; // selected multi cfg
// tabs // tabs
private static final String EXTENSION_POINT_ID = "org.eclipse.cdt.ui.cPropertyTab"; //$NON-NLS-1$ private static final String EXTENSION_POINT_ID = "org.eclipse.cdt.ui.cPropertyTab"; //$NON-NLS-1$
public static final String ELEMENT_NAME = "tab"; //$NON-NLS-1$ private static final String ELEMENT_NAME = "tab"; //$NON-NLS-1$
public static final String CLASS_NAME = "class"; //$NON-NLS-1$ private static final String CLASS_NAME = "class"; //$NON-NLS-1$
public static final String PARENT_NAME = "parent"; //$NON-NLS-1$ private static final String PARENT_NAME = "parent"; //$NON-NLS-1$
public static final String IMAGE_NAME = "icon"; //$NON-NLS-1$ private static final String IMAGE_NAME = "icon"; //$NON-NLS-1$
public static final String TIP_NAME = "tooltip"; //$NON-NLS-1$ private static final String TIP_NAME = "tooltip"; //$NON-NLS-1$
public static final String TEXT_NAME = "name"; //$NON-NLS-1$ private static final String TEXT_NAME = "name"; //$NON-NLS-1$
public static final String WEIGHT_NAME = "weight"; //$NON-NLS-1$ private static final String WEIGHT_NAME = "weight"; //$NON-NLS-1$
private static final String HELPID_NAME = "helpId"; //$NON-NLS-1$
private static final Object NOT_NULL = new Object(); private static final Object NOT_NULL = new Object();
public static final String EMPTY_STR = ""; //$NON-NLS-1$ public static final String EMPTY_STR = ""; //$NON-NLS-1$
@ -888,6 +892,13 @@ implements
} }
if (page == null) return false; if (page == null) return false;
String helpId = element.getAttribute(HELPID_NAME);
if (helpId != null && helpId.length() > 0
// TODO: in next version: refer to ICPropertyTab instead of AbstractCPropertyTab
&& page instanceof AbstractCPropertyTab) {
((AbstractCPropertyTab)page).setHelpContextId(helpId);
}
Image _img = getIcon(element); Image _img = getIcon(element);
if (_img != null) page.handleTabEvent(ICPropertyTab.SET_ICON, _img); if (_img != null) page.handleTabEvent(ICPropertyTab.SET_ICON, _img);
@ -1092,17 +1103,20 @@ implements
public Button getDButton() { public Button getDButton() {
return getDefaultsButton(); return getDefaultsButton();
} }
/*
@Override @Override
public void performHelp() { public void performHelp() {
// TODO: in next version: refer to ICPropertyTab instead of AbstractCPropertyTab
if (currentTab != null && currentTab instanceof AbstractCPropertyTab) { if (currentTab != null && currentTab instanceof AbstractCPropertyTab) {
String s = ((AbstractCPropertyTab)currentTab).getHelpContextId(); String s = ((AbstractCPropertyTab)currentTab).getHelpContextId();
if (s != null) { if (s != null && s.length() > 0) {
IContext context= HelpSystem.getContext(s); IContext context= HelpSystem.getContext(s);
PlatformUI.getWorkbench().getHelpSystem().displayHelp(context); if (context != null)
// PlatformUI.getWorkbench().getHelpSystem().displayHelp(s); PlatformUI.getWorkbench().getHelpSystem().displayHelp(context);
else
PlatformUI.getWorkbench().getHelpSystem().displayDynamicHelp();
} }
} }
} }
*/
} }

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2007 Intel Corporation and others. * Copyright (c) 2007, 2008 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -60,5 +60,16 @@ public interface ICPropertyTab {
* settings are not possible when managed build is off). * settings are not possible when managed build is off).
*/ */
public boolean canBeVisible(); public boolean canBeVisible();
//*********************************
// TODO: in next version, add :
//*********************************
/**
* @return Help Context Id
*/
// public String getHelpContextId();
/**
* set Help Context Id for the tab
*/
// public void setHelpContextId(String id);
} }

View file

@ -354,4 +354,126 @@
<topic label="Appearance Preferences" href="reference/cdt_u_appearance_pref.htm"/> <topic label="Appearance Preferences" href="reference/cdt_u_appearance_pref.htm"/>
</context> </context>
<context id="cdt_u_prop_build">
<description></description>
<topic href="reference/cdt_u_prop_build.htm" label="C/C++ Build"/>
</context>
<context id="cdt_u_prop_build_variables">
<description></description>
<topic href="reference/cdt_u_prop_build_variables.htm" label="Build Variables"/>
</context>
<context id="cdt_u_prop_build_discovery">
<description></description>
<topic href="reference/cdt_u_prop_build_discovery.htm" label="Discovery Options"/>
</context>
<context id="cdt_u_prop_build_environment">
<description></description>
<topic href="reference/cdt_u_prop_build_environment.htm"
label="Environment tab"/>
</context>
<context id="cdt_u_prop_build_setting_tool">
<description></description>
<topic href="reference/cdt_u_prop_build_setting_tool.htm"
label="Tool Settings"/>
</context>
<context id="cdt_u_prop_build_setting_steps">
<description></description>
<topic href="reference/cdt_u_prop_build_setting_steps.htm"
label="Build Steps"/>
</context>
<context id="cdt_u_prop_build_setting_artifact">
<description></description>
<topic href="reference/cdt_u_prop_build_setting_artifact.htm"
label="Build Artifact"/>
</context>
<context id="cdt_u_prop_build_setting_binparser">
<description></description>
<topic href="reference/cdt_u_prop_build_setting_binparser.htm"
label="Binary Parsers"/>
</context>
<context id="cdt_u_prop_build_setting_errparser">
<description></description>
<topic href="reference/cdt_u_prop_build_setting_errparser.htm"
label="Error Parsers"/>
</context>
<context id="cdt_u_prop_build_toolchain">
<description></description>
<topic href="reference/cdt_u_prop_build_toolchain.htm"
label="Tool Chain Editor"/>
</context>
<context id="cdt_u_prop_pns_inc">
<description></description>
<topic href="reference/cdt_u_prop_pns_inc.htm"
label="Include paths"/>
</context>
<context id="cdt_u_prop_pns_sym">
<description></description>
<topic href="reference/cdt_u_prop_pns_sym.htm"
label="Symbols"/> </context>
<context id="cdt_u_prop_pns_libpath">
<description></description>
<topic href="reference/cdt_u_prop_pns_libpath.htm"
label="Library paths"/>
</context>
<context id="cdt_u_prop_pns_lib">
<description></description>
<topic href="reference/cdt_u_prop_pns_lib.htm"
label="Libraries"/>
</context>
<context id="cdt_u_prop_pns_ref">
<description></description>
<topic href="reference/cdt_u_prop_pns_ref.htm"
label="References"/>
</context>
<context id="cdt_u_prop_pns_src">
<description></description>
<topic href="reference/cdt_u_prop_pns_src.htm"
label="Source Location"/>
</context>
<context id="cdt_u_prop_pns_out">
<description></description>
<topic href="reference/cdt_u_prop_pns_out.htm"
label="Output Locations"/>
</context>
<context id="cdt_u_prop_exp">
<description></description>
<topic href="reference/cdt_u_prop_exp.htm"
label="Exported data"/>
</context>
<context id="cdt_u_prop_resource">
<description></description>
<topic href="reference/cdt_u_prop_resource.htm"
label="Resource"/>
</context>
<context id="cdt_u_prop_builders">
<description></description>
<topic href="reference/cdt_u_prop_builders.htm"
label="Builders"/>
</context>
<context id="cdt_u_prop_general">
<description></description>
<topic href="reference/cdt_u_prop_general.htm"
label="Common"/>
</context>
<context id="cdt_u_prop_general_doc">
<description></description>
<topic href="reference/cdt_u_prop_general_doc.htm"
label="Documentation"/>
</context>
<context id="cdt_u_prop_general_typ">
<description></description>
<topic href="reference/cdt_u_prop_general_typ.htm"
label="File Types"/>
</context>
<context id="cdt_u_prop_general_idx">
<description></description>
<topic href="reference/cdt_u_prop_general_idx.htm"
label="Indexer"/>
</context>
<context id="cdt_u_prop_general_lng">
<description></description>
<topic href="reference/cdt_u_prop_general_lng.htm"
label="Language Mappings"/>
</context>
</contexts> </contexts>