Mobile Tools for Java
Release 1.0

org.eclipse.mtj.core.hook.sourceMapper
Class SourceMapperAccess

java.lang.Object
  extended by org.eclipse.mtj.core.hook.sourceMapper.SourceMapperAccess

public class SourceMapperAccess
extends Object

Provides a static registration location for the currently registered SourceMapper instance.


Method Summary
static IFile getMappedSourceFile(IFile file)
          Return a mapped source file for the specified file or null if the file is not mapped.
static boolean isHookCodeInstalled()
          Return a boolean indicating whether the hook code was properly installed.
static void setSourceMapper(SourceMapper newSourceMapper)
          Set the current SourceMapper instance used to map SourceFile IFile instances to a different IFile instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getMappedSourceFile

public static IFile getMappedSourceFile(IFile file)
Return a mapped source file for the specified file or null if the file is not mapped. This method will check for a currently registered SourceMapper instance and use that for the mapping if it has been set.

Parameters:
file -
Returns:

isHookCodeInstalled

public static boolean isHookCodeInstalled()
Return a boolean indicating whether the hook code was properly installed.

Returns:

setSourceMapper

public static void setSourceMapper(SourceMapper newSourceMapper)
Set the current SourceMapper instance used to map SourceFile IFile instances to a different IFile instance.

Parameters:
newSourceMapper -

Mobile Tools for Java
Release 1.0