core/com.nokia.carbide.cpp/src/com/nokia/carbide/cpp/preferences/ExtensionsPreferencesPage.java
author wpaul
Thu, 04 Jun 2009 13:51:12 -0500
changeset 208 432a9f56a75c
parent 127 c937102a5510
permissions -rw-r--r--
added Carbide Extensions project property page (bug #9218).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     1
/*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     3
* All rights reserved.
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     4
* This component and the accompanying materials are made available
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     6
* which accompanies this distribution, and is available
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     8
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
     9
* Initial Contributors:
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    10
* Nokia Corporation - initial contribution.
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    11
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    12
* Contributors:
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    13
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    14
* Description: 
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    15
*
6ef327765a4e added copyright
wpaul
parents: 2
diff changeset
    16
*/
2
cawthron
parents:
diff changeset
    17
package com.nokia.carbide.cpp.preferences;
cawthron
parents:
diff changeset
    18
cawthron
parents:
diff changeset
    19
import org.eclipse.jface.preference.PreferencePage;
cawthron
parents:
diff changeset
    20
import org.eclipse.swt.SWT;
cawthron
parents:
diff changeset
    21
import org.eclipse.swt.layout.GridData;
cawthron
parents:
diff changeset
    22
import org.eclipse.swt.layout.GridLayout;
cawthron
parents:
diff changeset
    23
import org.eclipse.swt.widgets.*;
cawthron
parents:
diff changeset
    24
import org.eclipse.ui.IWorkbench;
cawthron
parents:
diff changeset
    25
import org.eclipse.ui.IWorkbenchPreferencePage;
cawthron
parents:
diff changeset
    26
cawthron
parents:
diff changeset
    27
/**
cawthron
parents:
diff changeset
    28
 * Creates an empty Carbide Extensions "category" to Preferences page
cawthron
parents:
diff changeset
    29
 */
cawthron
parents:
diff changeset
    30
public class ExtensionsPreferencesPage extends PreferencePage implements
cawthron
parents:
diff changeset
    31
		IWorkbenchPreferencePage{
cawthron
parents:
diff changeset
    32
	/**
cawthron
parents:
diff changeset
    33
	 * Create the preference page
cawthron
parents:
diff changeset
    34
	 */
cawthron
parents:
diff changeset
    35
	public ExtensionsPreferencesPage() {
cawthron
parents:
diff changeset
    36
		super();
cawthron
parents:
diff changeset
    37
	}
cawthron
parents:
diff changeset
    38
		
cawthron
parents:
diff changeset
    39
	public void init(IWorkbench arg0) {
cawthron
parents:
diff changeset
    40
		
cawthron
parents:
diff changeset
    41
	}
cawthron
parents:
diff changeset
    42
cawthron
parents:
diff changeset
    43
	@Override
cawthron
parents:
diff changeset
    44
	public void createControl(Composite parent) {
cawthron
parents:
diff changeset
    45
		Composite content = new Composite(parent, SWT.NONE);
cawthron
parents:
diff changeset
    46
		setControl(content);
cawthron
parents:
diff changeset
    47
		final GridLayout gridLayout = new GridLayout();
cawthron
parents:
diff changeset
    48
		content.setLayout(gridLayout);
cawthron
parents:
diff changeset
    49
		
cawthron
parents:
diff changeset
    50
		final Label selectWhichPlatformsLabel = new Label(content, SWT.NONE);
cawthron
parents:
diff changeset
    51
		selectWhichPlatformsLabel.setLayoutData(new GridData());
cawthron
parents:
diff changeset
    52
		
cawthron
parents:
diff changeset
    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$
cawthron
parents:
diff changeset
    54
	}
cawthron
parents:
diff changeset
    55
	
cawthron
parents:
diff changeset
    56
	@Override
cawthron
parents:
diff changeset
    57
	protected Control createContents(Composite parent) {
cawthron
parents:
diff changeset
    58
		return null;
cawthron
parents:
diff changeset
    59
	}
cawthron
parents:
diff changeset
    60
}