1 | package de.uka.ipd.sdq.pcmbench.preferences; |
2 | |
3 | import org.eclipse.jface.preference.PreferencePage; |
4 | import org.eclipse.swt.SWT; |
5 | import org.eclipse.swt.widgets.Composite; |
6 | import org.eclipse.swt.widgets.Control; |
7 | import org.eclipse.swt.widgets.Label; |
8 | import org.eclipse.ui.IWorkbench; |
9 | import org.eclipse.ui.IWorkbenchPreferencePage; |
10 | |
11 | /** |
12 | * |
13 | * This preference page is supposed to be the root of all Palladio-related preference pages in the |
14 | * hierarchically organised Eclipse preferences dialogue. For this, each Palladio-related preference |
15 | * page must set its "category" property to the page id corresponding to this preference page. |
16 | * <p> |
17 | * Currently, this preference page does not contribute any configuration possibilities by itself. |
18 | * Ideally, however, this page would host some general preferences that are relevant for more than a |
19 | * single plug-in (if there are any). |
20 | * |
21 | * @author Philipp Merkle |
22 | * |
23 | */ |
24 | public class PCMBenchPreferences extends PreferencePage implements IWorkbenchPreferencePage { |
25 | |
26 | @Override |
27 | protected Control createContents(Composite parent) { |
28 | Label label = new Label(parent, NONE); |
29 | label.setText("Please expand the tree and use the preference pages of the respective Palladio features."); |
30 | return label; |
31 | } |
32 | |
33 | @Override |
34 | public void init(IWorkbench workbench) { |
35 | // nothing to do here |
36 | } |
37 | |
38 | } |