org.eclipse.mtj.api.extension
Interface DevicePlatformProvider

All Superinterfaces:
org.eclipse.emf.ecore.EObject, MtjExtension, org.eclipse.emf.common.notify.Notifier

public interface DevicePlatformProvider
extends MtjExtension

Target environments are seen as DevicePlatforms by the MTJ environment. The Device Platform’s type can be an emulator platform or a real device platform. A Device Platform should implement binary code, preverification and application launching.


Method Summary
 DevicePlatform[] getDevicePlatforms()
          Method returns DevicePlatform objects.
 java.lang.String getRootDirectory(DevicePlatform dp)
          Method returns installed DevicePlatform's root directory.
 DeviceStatus getStatus(Device device)
          Method returns Device's status.
 void launch(DevicePlatform dp, Device device, Deployment deployment, org.eclipse.jdt.launching.VMRunnerConfiguration vmRunnerConfig, org.eclipse.debug.core.ILaunchConfiguration launchConfig, org.eclipse.debug.core.ILaunch launch, java.lang.String runMode, java.lang.String projectNatureId, org.eclipse.core.runtime.IProgressMonitor monitor)
          Method launches the application, that is in the deployment, to the target device.
 void verify(org.eclipse.core.resources.IFolder sourceFolder, org.eclipse.core.runtime.IProgressMonitor monitor)
          Verifies code in the source folder.
 
Methods inherited from interface org.eclipse.mtj.api.extension.MtjExtension
getDescription, getId, getType, getVendor, getVersion, isActive, setActive, setDescription, setId, setType, setVendor, setVersion
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getDevicePlatforms

DevicePlatform[] getDevicePlatforms()
                                    throws org.eclipse.mtj.exception.MtjException
Method returns DevicePlatform objects.

Returns:
Throws:
org.eclipse.mtj.exception.MtjException

verify

void verify(org.eclipse.core.resources.IFolder sourceFolder,
            org.eclipse.core.runtime.IProgressMonitor monitor)
            throws org.eclipse.mtj.exception.MtjException
Verifies code in the source folder.

Parameters:
sourceFolder -
monitor -
Throws:
org.eclipse.mtj.exception.MtjException

launch

void launch(DevicePlatform dp,
            Device device,
            Deployment deployment,
            org.eclipse.jdt.launching.VMRunnerConfiguration vmRunnerConfig,
            org.eclipse.debug.core.ILaunchConfiguration launchConfig,
            org.eclipse.debug.core.ILaunch launch,
            java.lang.String runMode,
            java.lang.String projectNatureId,
            org.eclipse.core.runtime.IProgressMonitor monitor)
            throws org.eclipse.mtj.exception.MtjException
Method launches the application, that is in the deployment, to the target device. Launched application could be run inside the SWT composite that is given as parameter.

Parameters:
device -
deployment -
vmRunnerConfig -
launchConfig -
launch -
runMode -
monitor -
Throws:
org.eclipse.mtj.exception.MtjException

getRootDirectory

java.lang.String getRootDirectory(DevicePlatform dp)
                                  throws org.eclipse.mtj.exception.MtjException
Method returns installed DevicePlatform's root directory.

Parameters:
dp -
Returns:
root directory or null.
Throws:
org.eclipse.mtj.exception.MtjException

getStatus

DeviceStatus getStatus(Device device)
                       throws org.eclipse.mtj.exception.MtjException
Method returns Device's status.

Parameters:
device -
Returns:
Throws:
org.eclipse.mtj.exception.MtjException