Skip to content

Commit

Permalink
add help context for CMakePropertyTab
Browse files Browse the repository at this point in the history
  • Loading branch information
15knots committed Nov 10, 2023
1 parent f5982ce commit fdac2a8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 5 additions & 2 deletions de.marw.cmake4eclipse.mbs.ui/doc/help_contexts.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<contexts>
<context id="cmake_symbols_context">
<description>This page is used to set properties for specifying CMake cache entries.</description>
<description>This tab is used to specify which CMake cache entries are passed to cmake.</description>
<topic href="doc/html/ref/cmake_symbols.html" label="CMake cache entries"/>
</context>
<context id="cmake_options_tab_context">
<description>This tab is used to specify general options which are passed to cmake.</description>
</context>
<context id="wb_general_tab_context">
<description>This page is used to set preferences for how and when cmake is run.</description>
<description>This tab is used to set preferences for how and when cmake is run.</description>
<topic href="doc/html/ref/wb_general_tab.html" label="Preferences - General cmake commandline options"/>
</context>
<context id="wb_cache_entries_context">
Expand Down
7 changes: 4 additions & 3 deletions de.marw.cmake4eclipse.mbs.ui/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<tab
class="de.marw.cmake4eclipse.mbs.ui.CMakePropertyTab"
icon="icons/CMakeLogo.gif"
helpId="de.marw.cmake4eclipse.mbs.ui.cmake_properties_context"
name="&amp;General"
parent="de.marw.cmake4eclipse.mbs.ui.CMakePropertyPage">
</tab>
Expand Down Expand Up @@ -297,15 +298,15 @@
</tab>
<tab
class="de.marw.cmake4eclipse.mbs.ui.CMakePropertyTab"
helpId="cdt_u_prop_pns_src"
helpId="de.marw.cmake4eclipse.mbs.ui.cmake_properties_context"
icon="icons/CMakeLogo.gif"
name="&amp;CMake options"
name="CMake &amp;options"
parent="de.marw.cmake4eclipse.mbs.ui.slim.Page_CMake">
</tab>
<tab
class="de.marw.cmake4eclipse.mbs.ui.CMakeSymbolsTab"
helpId="de.marw.cmake4eclipse.mbs.ui.cmake_symbols"
name="&amp;CMake cache entries"
name="CMake &amp;cache entries"
parent="de.marw.cmake4eclipse.mbs.ui.slim.Page_CMake">
</tab>
</extension>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class CMakePropertyTab extends QuirklessAbstractCPropertyTab {

@Override
protected void createControls(final Composite parent) {
super.setHelpContextId(Activator.PLUGIN_ID + ".TODO");
super.setHelpContextId(Activator.PLUGIN_ID + ".cmake_options_tab_context");
super.createControls(parent);
usercomp.setLayout(new GridLayout(2, false));
// usercomp.setBackground(BACKGROUND_FOR_USER_VAR);
Expand Down

0 comments on commit fdac2a8

Please sign in to comment.