Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [Dltk-dev] IProblemFactory and IProblemIdentifierFactory

Hi Jae,

IProblemFactory is invoked when creating problem markers.

IProblemIdentifierFactory is used to decode problem id from string
into corresponding enum entry. It is invoked when problem markers are
read, e.g. into objects used to display problem annotations in the
editor (so quick fix processors deal with the enum entries as problem
ids, etc).

typical implementation is as follows:

public class JavaScriptProblemFactory implements IProblemIdentifierFactory {
	public IProblemIdentifier valueOf(String localName) throws
IllegalArgumentException {
		return JavaScriptProblems.valueOf(localName);
	}
	public IProblemIdentifier[] values() {
		return JavaScriptProblems.values();
	}
}

Regards,
Alex

On Wed, Jun 6, 2012 at 2:57 AM, Jae Gangemi <jgangemi@xxxxxxxxx> wrote:
> hello all -
>
>   could someone please explain how those two interfaces relate to each
> other?
>
>   thanks!!
>
> --
> -jae
>
> _______________________________________________
> dltk-dev mailing list
> dltk-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dltk-dev
>


Back to the top