9
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
2
|
17 |
package com.nokia.carbide.cpp.preferences;
|
|
18 |
|
|
19 |
import org.eclipse.jface.preference.PreferencePage;
|
|
20 |
import org.eclipse.swt.SWT;
|
|
21 |
import org.eclipse.swt.layout.GridData;
|
|
22 |
import org.eclipse.swt.layout.GridLayout;
|
|
23 |
import org.eclipse.swt.widgets.*;
|
|
24 |
import org.eclipse.ui.IWorkbench;
|
|
25 |
import org.eclipse.ui.IWorkbenchPreferencePage;
|
|
26 |
|
|
27 |
/**
|
|
28 |
* Creates an empty Carbide Extensions "category" to Preferences page
|
|
29 |
*/
|
|
30 |
public class ExtensionsPreferencesPage extends PreferencePage implements
|
|
31 |
IWorkbenchPreferencePage{
|
|
32 |
/**
|
|
33 |
* Create the preference page
|
|
34 |
*/
|
|
35 |
public ExtensionsPreferencesPage() {
|
|
36 |
super();
|
|
37 |
}
|
|
38 |
|
|
39 |
public void init(IWorkbench arg0) {
|
|
40 |
|
|
41 |
}
|
|
42 |
|
|
43 |
@Override
|
|
44 |
public void createControl(Composite parent) {
|
|
45 |
Composite content = new Composite(parent, SWT.NONE);
|
|
46 |
setControl(content);
|
|
47 |
final GridLayout gridLayout = new GridLayout();
|
|
48 |
content.setLayout(gridLayout);
|
|
49 |
|
|
50 |
final Label selectWhichPlatformsLabel = new Label(content, SWT.NONE);
|
|
51 |
selectWhichPlatformsLabel.setLayoutData(new GridData());
|
|
52 |
|
|
53 |
selectWhichPlatformsLabel.setText("Carbide Extensions Preference Page\n\nAdditional 3rd party plugins and utilities that contribute global settings\nto the Carbide.c++ product may reside under this preference page."); //$NON-NLS-1$
|
|
54 |
}
|
|
55 |
|
|
56 |
@Override
|
|
57 |
protected Control createContents(Composite parent) {
|
|
58 |
return null;
|
|
59 |
}
|
|
60 |
}
|