sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.wizards/src/com/nokia/carbide/cpp/internal/pi/wizards/ui/NewPIWizardPagePkgSdkDialog.java
changeset 2 b9ab3b238396
equal deleted inserted replaced
1:1050670c6980 2:b9ab3b238396
       
     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  */
       
    17 
       
    18 package com.nokia.carbide.cpp.internal.pi.wizards.ui;
       
    19 
       
    20 import org.eclipse.jface.dialogs.TrayDialog;
       
    21 import org.eclipse.swt.widgets.Composite;
       
    22 import org.eclipse.swt.widgets.Control;
       
    23 import org.eclipse.swt.widgets.Shell;
       
    24 
       
    25 import com.nokia.carbide.cpp.internal.pi.wizards.ui.util.SdkChooserBase;
       
    26 import com.nokia.carbide.cpp.sdk.core.ISymbianSDK;
       
    27 
       
    28 public class NewPIWizardPagePkgSdkDialog  extends TrayDialog
       
    29 {
       
    30 	SdkChooserBase sdkCommon = new SdkChooserBase();
       
    31 	private Composite composite;
       
    32 	private ISymbianSDK selection; 
       
    33 
       
    34 	protected NewPIWizardPagePkgSdkDialog(Shell arg0) {
       
    35 		super(arg0);
       
    36 	}
       
    37 
       
    38 	public Control createDialogArea(Composite parent) {
       
    39 		selection = null;
       
    40 		composite = sdkCommon.layout(parent);
       
    41 		getShell().setText(Messages.getString("NewPIWizardPagePkgSdkDialog.shell.title")); //$NON-NLS-1$
       
    42 		return composite;
       
    43 	}
       
    44 	
       
    45 	public void okPressed() {
       
    46 		selection = sdkCommon.getSelectedSdk();
       
    47 		super.okPressed();
       
    48 	}
       
    49 	
       
    50 	public ISymbianSDK getSelection() {
       
    51 		return selection;
       
    52 	}
       
    53 }