org.symbian.tools.mtw.ui/src/org/symbian/tools/tmw/ui/deployment/bluetooth/BluetoothTargetType.java
equal
deleted
inserted
replaced
35 import org.eclipse.core.runtime.CoreException; |
35 import org.eclipse.core.runtime.CoreException; |
36 import org.eclipse.core.runtime.IProgressMonitor; |
36 import org.eclipse.core.runtime.IProgressMonitor; |
37 import org.eclipse.core.runtime.IStatus; |
37 import org.eclipse.core.runtime.IStatus; |
38 import org.eclipse.core.runtime.Status; |
38 import org.eclipse.core.runtime.Status; |
39 import org.eclipse.core.runtime.jobs.ISchedulingRule; |
39 import org.eclipse.core.runtime.jobs.ISchedulingRule; |
40 import org.symbian.tools.tmw.core.projects.IMTWProject; |
40 import org.symbian.tools.tmw.core.projects.ITMWProject; |
41 import org.symbian.tools.tmw.ui.ConsoleFactory; |
41 import org.symbian.tools.tmw.ui.ConsoleFactory; |
42 import org.symbian.tools.tmw.ui.TMWCoreUI; |
42 import org.symbian.tools.tmw.ui.TMWCoreUI; |
43 import org.symbian.tools.tmw.ui.deployment.IDeploymentTarget; |
43 import org.symbian.tools.tmw.ui.deployment.IDeploymentTarget; |
44 import org.symbian.tools.tmw.ui.deployment.IDeploymentTargetType; |
44 import org.symbian.tools.tmw.ui.deployment.IDeploymentTargetType; |
45 |
45 |
161 } else { |
161 } else { |
162 System.setOut(savedSysOut); |
162 System.setOut(savedSysOut); |
163 } |
163 } |
164 } |
164 } |
165 |
165 |
166 public IDeploymentTarget findTarget(IMTWProject project, String id) { |
166 public IDeploymentTarget findTarget(ITMWProject project, String id) { |
167 if (!isBloothToothConnected()) { |
167 if (!isBloothToothConnected()) { |
168 return null; |
168 return null; |
169 } |
169 } |
170 if (discovered) { |
170 if (discovered) { |
171 return targets.get(id); |
171 return targets.get(id); |
177 } |
177 } |
178 return target; |
178 return target; |
179 } |
179 } |
180 } |
180 } |
181 |
181 |
182 public IDeploymentTarget[] getTargets(IMTWProject project) { |
182 public IDeploymentTarget[] getTargets(ITMWProject project) { |
183 if (targets != null) { |
183 if (targets != null) { |
184 final Collection<BluetoothTarget> values = targets.values(); |
184 final Collection<BluetoothTarget> values = targets.values(); |
185 return values.toArray(new IDeploymentTarget[values.size()]); |
185 return values.toArray(new IDeploymentTarget[values.size()]); |
186 } else { |
186 } else { |
187 return null; |
187 return null; |