|
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.tmw.internal.deployment; |
|
20 |
|
21 import org.eclipse.core.runtime.IStatus; |
|
22 import org.eclipse.core.runtime.Status; |
|
23 import org.eclipse.swt.SWT; |
|
24 import org.eclipse.swt.widgets.Composite; |
|
25 import org.eclipse.swt.widgets.Control; |
|
26 import org.eclipse.swt.widgets.Text; |
|
27 import org.symbian.tools.tmw.ui.deployment.IDeploymentTarget; |
|
28 import org.symbian.tools.tmw.ui.deployment.ITargetDetailsPane; |
|
29 |
|
30 public class DefaultDeploymentTypePresentation implements ITargetDetailsPane { |
|
31 private Text text; |
|
32 |
|
33 public void init(Context page) { |
|
34 } |
|
35 |
|
36 public void setTarget(IDeploymentTarget target) { |
|
37 text.setText(target.getDescription()); |
|
38 } |
|
39 |
|
40 public void createControl(Composite parent) { |
|
41 text = new Text(parent, SWT.BORDER | SWT.MULTI | SWT.READ_ONLY); |
|
42 } |
|
43 |
|
44 public Control getControl() { |
|
45 return text; |
|
46 } |
|
47 |
|
48 public IStatus validate() { |
|
49 return Status.OK_STATUS; |
|
50 } |
|
51 } |