Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.sdk.device
Interface IDeviceFinder


public interface IDeviceFinder

The device factory allows access to creation of devices based on the available registered device importers.

Since:
1.0
Restriction:
This interface is not intended to be implemented by clients.

Method Summary
 List<IDevice> findDevices(File directory, IProgressMonitor monitor)
          Return all devices that can be found in the specified directory or any sub-directories.
 List<IDevice> findDevices(String deviceImporterID, File directory, IProgressMonitor monitor)
          Return all devices that can be found in the specified directory or any sub-directories.
 

Method Detail

findDevices

List<IDevice> findDevices(String deviceImporterID,
                          File directory,
                          IProgressMonitor monitor)
                          throws CoreException,
                                 InterruptedException
Return all devices that can be found in the specified directory or any sub-directories. This method will consult the IDeviceImporter implementation that have been registered with the informed deviceImporterID.

Parameters:
deviceImporterID -
directory -
monitor -
Returns:
Throws:
CoreException
InterruptedException - if the operation detects a request to cancel, using IProgressMonitor.isCanceled(), it should exit by throwing InterruptedException.

findDevices

List<IDevice> findDevices(File directory,
                          IProgressMonitor monitor)
                          throws CoreException,
                                 InterruptedException
Return all devices that can be found in the specified directory or any sub-directories. This method will consult all registered IDeviceImporter implementations that have been registered with the system.

Parameters:
directory -
monitor -
Throws:
CoreException
InterruptedException - if the operation detects a request to cancel, using IProgressMonitor.isCanceled(), it should exit by throwing InterruptedException.

Mobile Tools for Java
Release 1.0