|
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.resource.ImageDescriptor; |
|
22 import org.eclipse.swt.graphics.FontData; |
|
23 import org.eclipse.swt.graphics.RGB; |
|
24 import org.eclipse.ui.model.IWorkbenchAdapter; |
|
25 import org.eclipse.ui.model.IWorkbenchAdapter2; |
|
26 |
|
27 public class TargetWorkbenchAdapter implements IWorkbenchAdapter, IWorkbenchAdapter2 { |
|
28 /** |
|
29 * |
|
30 */ |
|
31 private final DeploymentTargetWrapper deploymentTargetWrapper; |
|
32 |
|
33 /** |
|
34 * @param deploymentTargetWrapper |
|
35 */ |
|
36 TargetWorkbenchAdapter(DeploymentTargetWrapper deploymentTargetWrapper) { |
|
37 this.deploymentTargetWrapper = deploymentTargetWrapper; |
|
38 } |
|
39 |
|
40 public String getLabel(Object object) { |
|
41 return this.deploymentTargetWrapper.getName(); |
|
42 } |
|
43 |
|
44 public ImageDescriptor getImageDescriptor(Object object) { |
|
45 return this.deploymentTargetWrapper.type.getImageDescriptor(); |
|
46 } |
|
47 |
|
48 public RGB getForeground(Object element) { |
|
49 // TODO Auto-generated method stub |
|
50 return null; |
|
51 } |
|
52 |
|
53 public RGB getBackground(Object element) { |
|
54 // TODO Auto-generated method stub |
|
55 return null; |
|
56 } |
|
57 |
|
58 public FontData getFont(Object element) { |
|
59 // TODO Auto-generated method stub |
|
60 return null; |
|
61 } |
|
62 |
|
63 public Object[] getChildren(Object o) { |
|
64 // TODO Auto-generated method stub |
|
65 return null; |
|
66 } |
|
67 |
|
68 public Object getParent(Object o) { |
|
69 // TODO Auto-generated method stub |
|
70 return null; |
|
71 } |
|
72 } |