public static final class MarkerParseErrorReporter.Factory extends java.lang.Object implements ParseErrorReporterFactory
ParseErrorReporterFactory
that is used when the given
IResource
is null
; this happens,
for example, when dealing with the standard AADL property sets, which
currently do not exist inside the workspace and thus cannot be mapped
to an IFile.
The secondary factory must be non-null
and must be
capable of handling null
IResources.
Constructor and Description |
---|
MarkerParseErrorReporter.Factory(java.lang.String mt,
ParseErrorReporterFactory sndFact) |
Modifier and Type | Method and Description |
---|---|
ParseErrorReporter |
getReporterFor(org.eclipse.core.resources.IResource aadlRsrc)
Obtain an error reporter to use for the AADL text file associated with
the given
IResource . |
public MarkerParseErrorReporter.Factory(java.lang.String mt, ParseErrorReporterFactory sndFact)
public ParseErrorReporter getReporterFor(org.eclipse.core.resources.IResource aadlRsrc)
ParseErrorReporterFactory
IResource
. This method must
never return null
. If no factory can be found/created
then it must throw a IllegalArgumentException
.
The given IResource
may be null
, but an
implementation may throw an IllegalArgumentException if it cannot produce
a sensible error reporter for null
. An implementation
must document its behavoir for null
inputs.
(At one point a considerable effort was made to avoid having this
interface use IResource
, on the
grounds that it would complicate using the EMF model stand alone, outside
of Eclipse. But there is now so much entanglement between the model and
Eclipse, that it doesn't seem worth the effort to attempt the separation
here.)
getReporterFor
in interface ParseErrorReporterFactory
aadlRsrc
- The IResource
of the aadl text file for which
an error reporter should be generated. May be
null
, but see above.null
.