Skip to content

Commit

Permalink
Link documentation for the "Appearance" preference page
Browse files Browse the repository at this point in the history
There is documentation available for the "Appearance" preference page
but it's help context was not added to this preference page. So if
a user pressed the "?" icon on the preference dialog this specific
documentation was not show.
  • Loading branch information
BeckerWdf committed Feb 5, 2024
1 parent 1dceecc commit d6ad1e4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
import org.eclipse.ui.IWorkbenchPreferenceConstants;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.internal.IWorkbenchHelpContextIds;
import org.eclipse.ui.internal.WorkbenchMessages;
import org.eclipse.ui.internal.WorkbenchPlugin;
import org.eclipse.ui.internal.themes.IThemeDescriptor;
Expand Down Expand Up @@ -116,6 +117,8 @@ public class ViewsPreferencePage extends PreferencePage implements IWorkbenchPre
protected Control createContents(Composite parent) {
initializeDialogUnits(parent);

PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, IWorkbenchHelpContextIds.VIEWS_PREFERENCE_PAGE);

Composite comp = new Composite(parent, SWT.NONE);

themingEnabled = createCheckButton(comp, WorkbenchMessages.ThemingEnabled, engine != null);
Expand Down

0 comments on commit d6ad1e4

Please sign in to comment.