org.eclipse.mtj.api.extension
Interface ProprocessingProvider

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

public interface ProprocessingProvider
extends BuildExtension

Preprocessing is used to solve device fragmentation problem in source code level. PreprocessingProvider implements functionality that is used to modify source code to match target devices.


Method Summary
 java.lang.String getCodeTemplate(ActionType actionType, Condition condition)
          Get code template for a given processing condition.
 void process(org.eclipse.core.resources.IFolder sourceFolder, org.eclipse.core.resources.IFolder targetFolder, Condition[] conditions, org.eclipse.core.runtime.IProgressMonitor monitor)
          Switch the code blocks on, that follows the given processing conditions, and switches off other ones.
 
Methods inherited from interface org.eclipse.mtj.api.extension.BuildExtension
getExtJar, setExtJar
 
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

process

void process(org.eclipse.core.resources.IFolder sourceFolder,
             org.eclipse.core.resources.IFolder targetFolder,
             Condition[] conditions,
             org.eclipse.core.runtime.IProgressMonitor monitor)
             throws org.eclipse.mtj.exception.MtjException
Switch the code blocks on, that follows the given processing conditions, and switches off other ones.

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

getCodeTemplate

java.lang.String getCodeTemplate(ActionType actionType,
                                 Condition condition)
                                 throws org.eclipse.mtj.exception.MtjException
Get code template for a given processing condition.

Parameters:
actionType -
condition -
Returns:
Throws:
org.eclipse.mtj.exception.MtjException