diff options
author | Doug Schaefer | 2006-09-15 03:05:05 +0000 |
---|---|---|
committer | Doug Schaefer | 2006-09-15 03:05:05 +0000 |
commit | 0faf2a93fb7f9cb0799196eae18c8f3a33c447dc (patch) | |
tree | ab4256195cfa1005929a3e5f260844090f551bda /core | |
parent | d510d89f16813d2b4acd5aa9f0d5f46e2494ae8d (diff) | |
download | org.eclipse.cdt-0faf2a93fb7f9cb0799196eae18c8f3a33c447dc.tar.gz org.eclipse.cdt-0faf2a93fb7f9cb0799196eae18c8f3a33c447dc.tar.xz org.eclipse.cdt-0faf2a93fb7f9cb0799196eae18c8f3a33c447dc.zip |
Bugs 156681, 156679, 157291 - Fixes to the help for the build systems.
Diffstat (limited to 'core')
6 files changed, 23 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java index e09ab690668..1fcdeb462f6 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java @@ -69,9 +69,12 @@ public interface ICHelpContextIds { public static final String TODO_TASK_PROPERTY_PAGE = PREFIX + "tasktags_property_page_context"; //$NON-NLS-1$ public static final String TODO_TASK_PREFERENCE_PAGE = PREFIX + "tasktags_preference_page_context"; //$NON-NLS-1$ + public static final String PROJECT_DOCUMENTATION = PREFIX + "documentation_property_page_context"; //$NON-NLS-1$ + public static final String PROJECT_PATHS_ALLPROJTABS = PREFIX + "std_prop_allprojtabs"; //$NON-NLS-1$ public static final String BINARY_PARSER_PAGE = PREFIX + "newproj_parser_binary"; //$NON-NLS-1$ public static final String ERROR_PARSERS_PAGE = PREFIX + "newproj_parser_error"; //$NON-NLS-1$ + public static final String PROJECT_PATHS_ALLPATHTABS = PREFIX + "std_prop_allpathtabs"; //$NON-NLS-1$ public static final String PROJECT_PATHS_SOURCE = PREFIX + "std_prop_source"; //$NON-NLS-1$ public static final String PROJECT_PATHS_OUTPUT = PREFIX + "std_prop_output"; //$NON-NLS-1$ public static final String PROJECT_PATHS_PROJECTS = PREFIX + "std_prop_projects"; //$NON-NLS-1$ diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathPropertyPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathPropertyPage.java index 7350d06d4f3..1d3282932ae 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathPropertyPage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/CPathPropertyPage.java @@ -17,6 +17,8 @@ import org.eclipse.cdt.core.model.CoreModel; import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.model.ICProject; import org.eclipse.cdt.core.resources.IPathEntryStore; + +import org.eclipse.cdt.internal.ui.ICHelpContextIds; import org.eclipse.cdt.internal.ui.dialogs.IStatusChangeListener; import org.eclipse.cdt.internal.ui.dialogs.StatusUtil; import org.eclipse.cdt.internal.ui.util.ExceptionHandler; @@ -67,6 +69,9 @@ public class CPathPropertyPage extends PropertyPage implements IStatusChangeList result = createWithCProject(parent, project); } Dialog.applyDialogFont(result); + + CUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(parent, ICHelpContextIds.PROJECT_PATHS_ALLPATHTABS); + return result; } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/IncludesSymbolsPropertyPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/IncludesSymbolsPropertyPage.java index fdc02d6b90e..0a7752fcf2b 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/IncludesSymbolsPropertyPage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/dialogs/cpaths/IncludesSymbolsPropertyPage.java @@ -19,6 +19,8 @@ import org.eclipse.cdt.core.model.ICElement; import org.eclipse.cdt.core.resources.IPathEntryStore; import org.eclipse.cdt.core.resources.IPathEntryStoreListener; import org.eclipse.cdt.core.resources.PathEntryStoreChangedEvent; + +import org.eclipse.cdt.internal.ui.ICHelpContextIds; import org.eclipse.cdt.internal.ui.dialogs.IStatusChangeListener; import org.eclipse.cdt.internal.ui.dialogs.StatusUtil; import org.eclipse.cdt.internal.ui.util.ExceptionHandler; @@ -70,6 +72,9 @@ public class IncludesSymbolsPropertyPage extends PropertyPage implements IStatus } Dialog.applyDialogFont(result); noDefaultAndApplyButton(); + + CUIPlugin.getDefault().getWorkbench().getHelpSystem().setHelp(parent, ICHelpContextIds.PROJECT_INCLUDE_PATHS_SYMBOLS); + return result; } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CFileTypesPropertyPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CFileTypesPropertyPage.java index 30d7f9607f6..33fd38e776d 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CFileTypesPropertyPage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CFileTypesPropertyPage.java @@ -170,7 +170,7 @@ public class CFileTypesPropertyPage extends PropertyPage { fUseProject.setSelection(custom); fPrefsBlock.setEnabled(custom); - PlatformUI.getWorkbench().getHelpSystem().setHelp( topPane, ICHelpContextIds.FILE_TYPES_STD_PAGE ); + PlatformUI.getWorkbench().getHelpSystem().setHelp( getControl(), ICHelpContextIds.FILE_TYPES_STD_PAGE ); return topPane; } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/CHelpConfigurationPropertyPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/CHelpConfigurationPropertyPage.java index 054cacaa5c4..af08fe24bbc 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/CHelpConfigurationPropertyPage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/CHelpConfigurationPropertyPage.java @@ -18,6 +18,7 @@ import org.eclipse.cdt.core.model.ITranslationUnit; import org.eclipse.cdt.internal.ui.CHelpProviderManager; import org.eclipse.cdt.internal.ui.CPluginImages; import org.eclipse.cdt.internal.ui.CUIMessages; +import org.eclipse.cdt.internal.ui.ICHelpContextIds; import org.eclipse.cdt.internal.ui.text.CHelpBookDescriptor; import org.eclipse.cdt.internal.ui.util.ImageDescriptorRegistry; import org.eclipse.cdt.internal.ui.util.PixelConverter; @@ -36,6 +37,7 @@ import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Control; import org.eclipse.ui.IWorkbench; import org.eclipse.ui.IWorkbenchPreferencePage; +import org.eclipse.ui.PlatformUI; import org.eclipse.ui.dialogs.PropertyPage; /** @@ -90,6 +92,10 @@ public class CHelpConfigurationPropertyPage extends PropertyPage implements fCHelpBookList.setUncheckAllButtonIndex(1); } + /** + * @param parent + * @return + */ public Control createControl(Composite parent){ PixelConverter converter= new PixelConverter(parent); @@ -100,6 +106,8 @@ public class CHelpConfigurationPropertyPage extends PropertyPage implements int buttonBarWidth= converter.convertWidthInCharsToPixels(24); fCHelpBookList.setButtonsMinWidth(buttonBarWidth); + + PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), ICHelpContextIds.PROJECT_DOCUMENTATION); return composite; } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerOptionPropertyPage.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerOptionPropertyPage.java index efd648d64d0..ff6b1787b81 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerOptionPropertyPage.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/dialogs/IndexerOptionPropertyPage.java @@ -41,7 +41,7 @@ public class IndexerOptionPropertyPage extends PropertyPage { composite.setLayout(new FillLayout()); optionPage.createControl(composite); - PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, ICHelpContextIds.PROJECT_INDEXER_PROPERTIES); + PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), ICHelpContextIds.PROJECT_INDEXER_PROPERTIES); initialize(); return composite; |