new version with WorkingCopy Management
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / IProblemFactory.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials 
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  * 
8  * Contributors:
9  *     IBM Corporation - initial API and implementation
10  *******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler;
12
13 import java.util.Locale;
14
15 import net.sourceforge.phpdt.core.compiler.IProblem;
16
17
18
19 /*
20  * Factory used from inside the compiler to build the actual problems
21  * which are handed back in the compilation result.
22  *
23  * This allows sharing the internal problem representation with the environment.
24  *
25  * Note: The factory is responsible for computing and storing a localized error message.
26  */
27
28 public interface IProblemFactory {
29
30         IProblem createProblem(
31                 char[] originatingFileName,
32                 int problemId,
33                 String[] problemArguments,
34                 String[] messageArguments, // shorter versions of the problemArguments
35                 int severity,
36                 int startPosition,
37                 int endPosition,
38                 int lineNumber);
39                 
40         Locale getLocale();
41         
42         String getLocalizedMessage(int problemId, String[] messageArguments);
43 }