blob: 1ef20802f8bd1ab34d3f7c9600b584067e7a95d9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/*******************************************************************************
* Copyright (c) 2012, 2018 Red Hat, Inc.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Red Hat initial API and implementation
*******************************************************************************/
package org.eclipse.linuxtools.internal.profiling.launch.provider;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.linuxtools.internal.profiling.launch.provider.launch.Messages;
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;
public class ProviderPreferencesPage extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage {
@Override
public void init(IWorkbench workbench) {
setDescription(Messages.ProviderPreferencesPage_0);
}
@Override
protected void createFieldEditors() {
// Content for global profiling provider preferences.
}
@Override
protected Control createContents(Composite parent) {
PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, getHelpContextId());
return super.createContents(parent);
}
/**
* Return the help context id to use if the help button is pushed.
*
* @return the help context id
*/
private String getHelpContextId() {
return ProviderProfileConstants.PLUGIN_ID + ".profiling_categories"; //$NON-NLS-1$
}
}
|