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