org.aspectj.ajdt.internal.core.builder
Class EclipseAdapterUtils
java.lang.Object
org.aspectj.ajdt.internal.core.builder.EclipseAdapterUtils
public class EclipseAdapterUtils
- extends java.lang.Object
|
Method Summary |
static IMessage |
makeErrorMessage(ICompilationUnit unit,
java.lang.String text,
java.lang.Exception ex)
|
static IMessage |
makeErrorMessage(java.lang.String srcFile,
java.lang.String text,
java.lang.Exception ex)
|
static java.lang.String |
makeLocationContext(ICompilationUnit compilationUnit,
IProblem problem)
|
static IMessage |
makeMessage(ICompilationUnit unit,
IProblem problem,
World world,
IProgressListener progressListener)
Extract message text and source location, including context. |
static ISourceLocation |
makeSourceLocation(ICompilationUnit unit,
IProblem problem,
IProgressListener progressListener)
Extract source location file, start and end lines, and context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
makeLocationContext
public static java.lang.String makeLocationContext(ICompilationUnit compilationUnit,
IProblem problem)
makeSourceLocation
public static ISourceLocation makeSourceLocation(ICompilationUnit unit,
IProblem problem,
IProgressListener progressListener)
- Extract source location file, start and end lines, and context. Column is not extracted correctly.
- Parameters:
progressListener -
- Returns:
- ISourceLocation with correct file and lines but not column.
makeMessage
public static IMessage makeMessage(ICompilationUnit unit,
IProblem problem,
World world,
IProgressListener progressListener)
- Extract message text and source location, including context.
- Parameters:
world - progressListener -
makeErrorMessage
public static IMessage makeErrorMessage(ICompilationUnit unit,
java.lang.String text,
java.lang.Exception ex)
makeErrorMessage
public static IMessage makeErrorMessage(java.lang.String srcFile,
java.lang.String text,
java.lang.Exception ex)