org.symbian.tools.mtw.ui/src/org/symbian/tools/mtw/internal/deployment/DefaultDeploymentTypePresentation.java
changeset 457 f1087591ff71
child 460 c0bff5ed874c
equal deleted inserted replaced
456:12b549765c34 457:f1087591ff71
       
     1 /**
       
     2  * Copyright (c) 2010 Symbian Foundation 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  * Symbian Foundation - initial contribution.
       
    11  * Contributors:
       
    12  * Description:
       
    13  * Overview:
       
    14  * Details:
       
    15  * Platforms/Drives/Compatibility:
       
    16  * Assumptions/Requirement/Pre-requisites:
       
    17  * Failures and causes:
       
    18  */
       
    19 package org.symbian.tools.mtw.internal.deployment;
       
    20 
       
    21 import org.eclipse.jface.wizard.IWizardPage;
       
    22 import org.eclipse.swt.SWT;
       
    23 import org.eclipse.swt.widgets.Composite;
       
    24 import org.eclipse.swt.widgets.Control;
       
    25 import org.eclipse.swt.widgets.Text;
       
    26 import org.symbian.tools.mtw.ui.deployment.IDeploymentTarget;
       
    27 import org.symbian.tools.mtw.ui.deployment.ITargetDetailsPane;
       
    28 
       
    29 public class DefaultDeploymentTypePresentation implements ITargetDetailsPane {
       
    30     private Text text;
       
    31 
       
    32     public void init(IWizardPage page) {
       
    33     }
       
    34 
       
    35     public void setTarget(IDeploymentTarget target) {
       
    36         text.setText(target.getDescription());
       
    37     }
       
    38 
       
    39     public void createControl(Composite parent) {
       
    40         text = new Text(parent, SWT.BORDER | SWT.MULTI | SWT.READ_ONLY);
       
    41     }
       
    42 
       
    43     public Control getControl() {
       
    44         return text;
       
    45     }
       
    46 }