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:
parent
2a8ddcb4ee
commit
4e2a3b2bfc
7 changed files with 239 additions and 35 deletions
|
@ -431,6 +431,7 @@
|
|||
name="%Includes"
|
||||
icon="icons/obj16/hfolder_obj.gif"
|
||||
weight="001"
|
||||
helpId="cdt_u_prop_pns_inc"
|
||||
parent="org.eclipse.cdt.make.internal.ui.properties.PathAndSymbolPage"
|
||||
tooltip=""Includes list""/>
|
||||
<tab
|
||||
|
@ -438,6 +439,7 @@
|
|||
name="%Symbols"
|
||||
icon="icons/obj16/define_obj.gif"
|
||||
weight="002"
|
||||
helpId="cdt_u_prop_pns_sym"
|
||||
parent="org.eclipse.cdt.make.internal.ui.properties.PathAndSymbolPage"
|
||||
tooltip=""Macros list""/>
|
||||
</extension>
|
||||
|
|
|
@ -217,44 +217,52 @@
|
|||
icon="icons/elcl16/discovery.gif"
|
||||
name="(Single) Discovery.options"
|
||||
weight="005"
|
||||
helpId="cdt_u_prop_build_discovery"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Discovery"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.ToolSettingsTab"
|
||||
icon="icons/elcl16/config-tool.gif"
|
||||
name="%Tool.settings"
|
||||
weight="001"
|
||||
helpId="cdt_u_prop_build_setting_tool"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.BuildStepsTab"
|
||||
icon="icons/obj16/steps.gif"
|
||||
name="%Build.steps"
|
||||
helpId="cdt_u_prop_build_setting_steps"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"
|
||||
weight="002"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.ArtifactTab"
|
||||
icon="icons/obj16/artifact.gif"
|
||||
name="%Build.artifact"
|
||||
helpId="cdt_u_prop_build_setting_artifact"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"
|
||||
weight="003"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab"
|
||||
icon="icons/obj16/build_settings.gif"
|
||||
name="%Builder.settings"
|
||||
helpId="cdt_u_prop_build"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
|
||||
weight="004"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.BuildBehaviourTab"
|
||||
icon="icons/obj16/target_obj.gif"
|
||||
name="%WBB.settings"
|
||||
helpId="cdt_u_prop_build"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
|
||||
weight="005"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.CPropertyVarsTab"
|
||||
name="(Single) CDT Vars (macros)"
|
||||
helpId="cdt_u_prop_build_variables"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Variables"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.ToolChainEditTab"
|
||||
name="(Single) Tool chain edit"
|
||||
helpId="cdt_u_prop_build_toolchain"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ToolChain"/>
|
||||
|
||||
<!-- exported from CORE -->
|
||||
|
@ -263,6 +271,7 @@
|
|||
icon="icons/obj16/hfolder_obj.gif"
|
||||
name="%Includes"
|
||||
weight="001"
|
||||
helpId="cdt_u_prop_pns_inc"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
|
||||
tooltip=""Includes list""/>
|
||||
<tab
|
||||
|
@ -270,6 +279,7 @@
|
|||
icon="icons/obj16/define_obj.gif"
|
||||
name="%Symbols"
|
||||
weight="002"
|
||||
helpId="cdt_u_prop_pns_sym"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
|
||||
tooltip=""Macros list""/>
|
||||
<tab
|
||||
|
@ -277,6 +287,7 @@
|
|||
icon="icons/obj16/lib_obj.gif"
|
||||
name="%Libraries"
|
||||
weight="003"
|
||||
helpId="cdt_u_prop_pns_lib"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
|
||||
tooltip=""Libraries list""/>
|
||||
<tab
|
||||
|
@ -284,55 +295,64 @@
|
|||
icon="icons/obj16/opentype.gif"
|
||||
name="%Library.paths"
|
||||
weight="004"
|
||||
helpId="cdt_u_prop_pns_libpath"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.RefsTab"
|
||||
icon="icons/obj16/search_ref_obj.gif"
|
||||
name="%References"
|
||||
weight="010"
|
||||
helpId="cdt_u_prop_pns_ref"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.CLocationSourceTab"
|
||||
icon="icons/obj16/fldr_obj.gif"
|
||||
name="%Source.location"
|
||||
weight="008"
|
||||
helpId="cdt_u_prop_pns_src"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.CBuildLocationOutputTab"
|
||||
icon="icons/obj16/output_folder_obj.gif"
|
||||
name="%Output.location"
|
||||
weight="009"
|
||||
helpId="cdt_u_prop_pns_out"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.StructureTreeTab"
|
||||
icon="icons/obj16/hierarchy.gif"
|
||||
name="%Data.hierarchy"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_PathAndSymb"
|
||||
helpId=""
|
||||
weight="012"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.EnvironmentTab"
|
||||
icon="icons/obj16/environment.gif"
|
||||
name="(Single) Environment"
|
||||
weight="005"
|
||||
helpId="cdt_u_prop_build_environment"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_Environment"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.BinaryParsTab"
|
||||
icon="icons/obj16/bin_obj.gif"
|
||||
name="%Binary.parsers"
|
||||
weight="006"
|
||||
helpId="cdt_u_prop_build_setting_binparser"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.ErrorParsTab"
|
||||
icon="icons/obj16/error_obj.gif"
|
||||
name="%Error.parsers"
|
||||
weight="007"
|
||||
helpId="cdt_u_prop_build_setting_errparser"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_BuildSettings"/>
|
||||
|
||||
<!-- Export settings page -->
|
||||
<tab
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.ExpIncludeTab"
|
||||
icon="icons/obj16/hfolder_obj.gif"
|
||||
name="%Includes"
|
||||
helpId="cdt_u_prop_exp"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb"
|
||||
tooltip=""Includes list""/>
|
||||
<tab
|
||||
|
@ -340,17 +360,20 @@
|
|||
icon="icons/obj16/define_obj.gif"
|
||||
name="%Symbols"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb"
|
||||
helpId="cdt_u_prop_exp"
|
||||
tooltip=""Macros list""/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.ExpLibraryTab"
|
||||
icon="icons/obj16/lib_obj.gif"
|
||||
name="%Libraries"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb"
|
||||
helpId="cdt_u_prop_exp"
|
||||
tooltip=""Libraries list""/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.ExpLibraryPathTab"
|
||||
icon="icons/obj16/opentype.gif"
|
||||
name="%Library.paths"
|
||||
helpId="cdt_u_prop_exp"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.properties.Page_ExpPathAndSymb"/>
|
||||
|
||||
<!-- tabs for Preference pages -->
|
||||
|
@ -358,54 +381,65 @@
|
|||
class="org.eclipse.cdt.ui.newui.EnvironmentTab"
|
||||
icon="icons/obj16/environment.gif"
|
||||
name="(Single) Environment"
|
||||
helpId="cdt_u_prop_build_environment"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_Env"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.CPropertyVarsTab"
|
||||
name="(Single) CDT Vars (macros)"
|
||||
helpId="cdt_u_prop_build_variables"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_Vars"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.BinaryParsTab"
|
||||
name="%Binary.parsers"
|
||||
icon="icons/obj16/bin_obj.gif"
|
||||
helpId="cdt_u_prop_build_setting_binparser"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"
|
||||
/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.ui.newui.ErrorParsTab"
|
||||
name="%Error.parsers"
|
||||
icon="icons/obj16/error_obj.gif"
|
||||
helpId="cdt_u_prop_build_setting_errparser"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"
|
||||
/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.DiscoveryTab"
|
||||
icon="icons/elcl16/discovery.gif"
|
||||
name="%Discovery.options"
|
||||
helpId="cdt_u_prop_build_discovery"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"
|
||||
/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.BuilderSettingsTab"
|
||||
icon="icons/obj16/build_settings.gif"
|
||||
name="%Builder.settings"
|
||||
helpId="cdt_u_prop_build"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.properties.BuildBehaviourTab"
|
||||
icon="icons/obj16/target_obj.gif"
|
||||
name="%WBB.settings"
|
||||
helpId="cdt_u_prop_build"
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTProject"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.preferences.PreferredToolchainsTab"
|
||||
name="%Preferred.toolchains"
|
||||
helpId=""
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTWizard"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.preferences.WizardDefaultsTab"
|
||||
name="%Wizard.defaults"
|
||||
helpId=""
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_NewCDTWizard"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.preferences.PropertyPageDefsTab"
|
||||
name="%PropertyPage.defaults"
|
||||
helpId=""
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_PropertyPage"/>
|
||||
<tab
|
||||
class="org.eclipse.cdt.managedbuilder.ui.preferences.PropertyMultiCfgTab"
|
||||
name="%multicfg"
|
||||
helpId=""
|
||||
parent="org.eclipse.cdt.managedbuilder.ui.preferences.PrefPage_MultiConfig">
|
||||
</tab>
|
||||
</extension>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!-- 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>
|
||||
<appInfo>
|
||||
<appinfo>
|
||||
<meta.schema plugin="org.eclipse.cdt.managedbuilder.ui" id="cPropertyTab" name="cPropertyTab"/>
|
||||
</appInfo>
|
||||
</appinfo>
|
||||
<documentation>
|
||||
Implementation of property/preference UI element.
|
||||
|
||||
|
@ -51,9 +51,9 @@ their weights.
|
|||
<documentation>
|
||||
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<appinfo>
|
||||
<meta.attribute translatable="true"/>
|
||||
</appInfo>
|
||||
</appinfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
</complexType>
|
||||
|
@ -67,9 +67,9 @@ their weights.
|
|||
Icon to be displayed for corresponding tab in tabfolder.
|
||||
Ignored for single-tab pages
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<appinfo>
|
||||
<meta.attribute kind="resource"/>
|
||||
</appInfo>
|
||||
</appinfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="class" type="string" use="required">
|
||||
|
@ -77,9 +77,9 @@ Ignored for single-tab pages
|
|||
<documentation>
|
||||
Class implementing org.eclipse.cdt.managedbuilder.ui.newproperties.ICPropertyTab
|
||||
</documentation>
|
||||
<appInfo>
|
||||
<appinfo>
|
||||
<meta.attribute kind="java" basedOn="org.eclipse.cdt.managedbuilder.ui.newproperties.ICPropertyTab"/>
|
||||
</appInfo>
|
||||
</appinfo>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="name" type="string" use="required">
|
||||
|
@ -103,7 +103,7 @@ but it is not obligatory.
|
|||
<attribute name="tooltip" type="string">
|
||||
<annotation>
|
||||
<documentation>
|
||||
|
||||
Text of tooltip shown over the tab.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
|
@ -115,22 +115,29 @@ Ignored for single-tab page.
|
|||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
<attribute name="helpId" type="string">
|
||||
<annotation>
|
||||
<documentation>
|
||||
Help context Id for given tab.
|
||||
</documentation>
|
||||
</annotation>
|
||||
</attribute>
|
||||
</complexType>
|
||||
</element>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<appinfo>
|
||||
<meta.section type="since"/>
|
||||
</appInfo>
|
||||
</appinfo>
|
||||
<documentation>
|
||||
4.0
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<appinfo>
|
||||
<meta.section type="examples"/>
|
||||
</appInfo>
|
||||
</appinfo>
|
||||
<documentation>
|
||||
<extension
|
||||
point="org.eclipse.cdt.ui.cPropertyTab">
|
||||
|
@ -145,19 +152,20 @@ Ignored for single-tab page.
|
|||
</annotation>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<appinfo>
|
||||
<meta.section type="apiInfo"/>
|
||||
</appInfo>
|
||||
</appinfo>
|
||||
<documentation>
|
||||
Tabs must implement interface:
|
||||
org.eclipse.cdt.managedbuilder.ui.newproperties.ICPropertyTab
|
||||
</documentation>
|
||||
</annotation>
|
||||
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<appinfo>
|
||||
<meta.section type="implementation"/>
|
||||
</appInfo>
|
||||
</appinfo>
|
||||
<documentation>
|
||||
Implementors in org.eclipse.cdt.ui.newui:
|
||||
BinaryParsTab
|
||||
|
@ -192,9 +200,9 @@ ToolSettingsTab
|
|||
</annotation>
|
||||
|
||||
<annotation>
|
||||
<appInfo>
|
||||
<appinfo>
|
||||
<meta.section type="copyright"/>
|
||||
</appInfo>
|
||||
</appinfo>
|
||||
<documentation>
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2007 Intel Corporation and others.
|
||||
|
|
|
@ -43,6 +43,7 @@ import org.eclipse.swt.widgets.Group;
|
|||
import org.eclipse.swt.widgets.Label;
|
||||
import org.eclipse.swt.widgets.Shell;
|
||||
import org.eclipse.swt.widgets.Text;
|
||||
import org.eclipse.ui.PlatformUI;
|
||||
import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
|
||||
import org.eclipse.ui.dialogs.ISelectionStatusValidator;
|
||||
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 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
|
||||
|
||||
private static final String PREFIX = "org.eclipse.cdt.ui."; //$NON-NLS-1$
|
||||
|
||||
public static final int TRI_UNKNOWN = 2;
|
||||
public static final int TRI_YES = 1;
|
||||
|
@ -115,6 +118,7 @@ public abstract class AbstractCPropertyTab implements ICPropertyTab {
|
|||
private Button[] buttons; // buttons in buttoncomp
|
||||
public ICPropertyProvider page;
|
||||
protected Image icon = null;
|
||||
private String helpId = EMPTY_STR;
|
||||
|
||||
protected boolean visible;
|
||||
|
||||
|
@ -141,6 +145,8 @@ public abstract class AbstractCPropertyTab implements ICPropertyTab {
|
|||
GridData d = new GridData(GridData.END);
|
||||
d.widthHint = 1;
|
||||
buttoncomp.setLayoutData(d);
|
||||
|
||||
PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, helpId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -668,4 +674,11 @@ public abstract class AbstractCPropertyTab implements ICPropertyTab {
|
|||
return (wmode == CDTPrefUtil.WMODE_MODIFY);
|
||||
}
|
||||
|
||||
public String getHelpContextId() {
|
||||
return helpId;
|
||||
}
|
||||
|
||||
public void setHelpContextId(String id) {
|
||||
helpId = PREFIX + id;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,6 +32,8 @@ import org.eclipse.core.runtime.IProgressMonitor;
|
|||
import org.eclipse.core.runtime.Platform;
|
||||
import org.eclipse.core.runtime.Preferences;
|
||||
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.operation.IRunnableWithProgress;
|
||||
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.ui.IWorkbenchPart;
|
||||
import org.eclipse.ui.IWorkbenchPartReference;
|
||||
import org.eclipse.ui.PlatformUI;
|
||||
import org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation;
|
||||
import org.eclipse.ui.dialogs.PropertyPage;
|
||||
|
||||
|
@ -114,13 +117,14 @@ implements
|
|||
private static ICConfigurationDescription[] multiCfgs = null; // selected multi cfg
|
||||
// tabs
|
||||
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$
|
||||
public static final String CLASS_NAME = "class"; //$NON-NLS-1$
|
||||
public static final String PARENT_NAME = "parent"; //$NON-NLS-1$
|
||||
public static final String IMAGE_NAME = "icon"; //$NON-NLS-1$
|
||||
public static final String TIP_NAME = "tooltip"; //$NON-NLS-1$
|
||||
public static final String TEXT_NAME = "name"; //$NON-NLS-1$
|
||||
public static final String WEIGHT_NAME = "weight"; //$NON-NLS-1$
|
||||
private static final String ELEMENT_NAME = "tab"; //$NON-NLS-1$
|
||||
private static final String CLASS_NAME = "class"; //$NON-NLS-1$
|
||||
private static final String PARENT_NAME = "parent"; //$NON-NLS-1$
|
||||
private static final String IMAGE_NAME = "icon"; //$NON-NLS-1$
|
||||
private static final String TIP_NAME = "tooltip"; //$NON-NLS-1$
|
||||
private static final String TEXT_NAME = "name"; //$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();
|
||||
public static final String EMPTY_STR = ""; //$NON-NLS-1$
|
||||
|
@ -888,6 +892,13 @@ implements
|
|||
}
|
||||
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);
|
||||
if (_img != null) page.handleTabEvent(ICPropertyTab.SET_ICON, _img);
|
||||
|
||||
|
@ -1092,17 +1103,20 @@ implements
|
|||
public Button getDButton() {
|
||||
return getDefaultsButton();
|
||||
}
|
||||
/*
|
||||
|
||||
@Override
|
||||
public void performHelp() {
|
||||
// TODO: in next version: refer to ICPropertyTab instead of AbstractCPropertyTab
|
||||
if (currentTab != null && currentTab instanceof AbstractCPropertyTab) {
|
||||
String s = ((AbstractCPropertyTab)currentTab).getHelpContextId();
|
||||
if (s != null) {
|
||||
if (s != null && s.length() > 0) {
|
||||
IContext context= HelpSystem.getContext(s);
|
||||
PlatformUI.getWorkbench().getHelpSystem().displayHelp(context);
|
||||
// PlatformUI.getWorkbench().getHelpSystem().displayHelp(s);
|
||||
if (context != null)
|
||||
PlatformUI.getWorkbench().getHelpSystem().displayHelp(context);
|
||||
else
|
||||
PlatformUI.getWorkbench().getHelpSystem().displayDynamicHelp();
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
* are made available under the terms of the Eclipse Public License v1.0
|
||||
* which accompanies this distribution, and is available at
|
||||
|
@ -60,5 +60,16 @@ public interface ICPropertyTab {
|
|||
* settings are not possible when managed build is off).
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -354,4 +354,126 @@
|
|||
<topic label="Appearance Preferences" href="reference/cdt_u_appearance_pref.htm"/>
|
||||
</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>
|
||||
|
|
Loading…
Add table
Reference in a new issue