Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Solution to Bug#: 43827 Help IDs needed for different CEditor tabs


UI:
Documentation needs a different help ID for each CEditor preference page.

Hoda Amer
Staff Software Engineer
Rational Software - IBM Software Group


Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/ChangeLog,v
retrieving revision 1.195
diff -u -r1.195 ChangeLog
--- ChangeLog	26 Sep 2003 20:46:14 -0000	1.195
+++ ChangeLog	29 Sep 2003 14:35:20 -0000
@@ -1,3 +1,6 @@
+2003-09-29 Hoda Amer
+	- Fixed Help IDs for C_Editor preference tabs.
+	
 2003-09-26 David Inglis
 	fixes: https://bugs.eclipse.org/bugs/show_bug.cgi?id=43776
 	
Index: src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java,v
retrieving revision 1.10
diff -u -r1.10 ICHelpContextIds.java
--- src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java	25 Sep 2003 14:09:59 -0000	1.10
+++ src/org/eclipse/cdt/internal/ui/ICHelpContextIds.java	29 Sep 2003 14:35:22 -0000
@@ -34,6 +34,7 @@
 	public static final String C_EDITOR_PREF_PAGE= PREFIX + "new_c_editor_pref_page_context";
 	public static final String C_EDITOR_ANNOTATIONS_PREF_PAGE= PREFIX + "new_c_editor_annotations_pref_page_context";
 	public static final String C_EDITOR_COLORS_PREF_PAGE= PREFIX + "new_c_editor_colors_pref_page_context";
+	public static final String C_EDITOR_CONTENT_ASSIST_PREF_PAGE= PREFIX + "new_c_editor_content_assist_pref_page_context";
 	public static final String TEMPLATE_PREFERENCE_PAGE= PREFIX + "new_c_templates_pref_page_context";
 	public static final String LAUNCH_PROPERTY_PAGE= PREFIX + "new_launch_property_page_context";
 	public static final String PROJECT_PROPERTY_PAGE= PREFIX + "new_project_property_page_context";
Index: src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java,v
retrieving revision 1.14
diff -u -r1.14 CEditorPreferencePage.java
--- src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java	26 Sep 2003 15:25:45 -0000	1.14
+++ src/org/eclipse/cdt/internal/ui/preferences/CEditorPreferencePage.java	29 Sep 2003 14:35:23 -0000
@@ -360,7 +360,6 @@
 	 */
 	public void createControl(Composite parent) {
 		super.createControl(parent);
-		WorkbenchHelp.setHelp(parent, ICHelpContextIds.C_EDITOR_PREF_PAGE);	
 	}
 
 	protected void handleListSelection() {
@@ -661,7 +660,7 @@
 			}
 		});
 
-		WorkbenchHelp.setHelp(parent, ICHelpContextIds.C_EDITOR_COLORS_PREF_PAGE);	
+		WorkbenchHelp.setHelp(colorComposite, ICHelpContextIds.C_EDITOR_COLORS_PREF_PAGE);	
 		return colorComposite;
 	}
 
@@ -878,6 +877,7 @@
 			}
 		});
 
+		WorkbenchHelp.setHelp(behaviorComposite, ICHelpContextIds.C_EDITOR_PREF_PAGE);	
 		return behaviorComposite;
 	}
 
@@ -926,6 +926,8 @@
 //
 //		label= "Fo&reground for method parameters:";
 //		addColorButton(contentAssistComposite, label, ContentAssistPreference.PARAMETERS_FOREGROUND, 0);
+
+		WorkbenchHelp.setHelp(contentAssistComposite, ICHelpContextIds.C_EDITOR_CONTENT_ASSIST_PREF_PAGE);	
 
 		return contentAssistComposite;
 	}

Back to the top