improving old code in Problem

This commit is contained in:
Manindra Moharana
2013-08-19 16:02:45 +05:30
parent 4d62508f9b
commit a8cd6d598b
4 changed files with 28 additions and 20 deletions

View File

@@ -44,21 +44,21 @@ public class Problem {
/**
* The tab number to which the error belongs to
*/
public int tabIndex;
private int tabIndex;
/**
* Line number(pde code) of the error
*/
public int lineNumber;
private int lineNumber;
/**
* Error Message. Processed form of IProblem.getMessage()
*/
public String message;
private String message;
/**
* The type of error - WARNING or ERROR.
*/
public int type;
private int type;
public static final int ERROR = 1, WARNING = 2;
@@ -101,6 +101,14 @@ public class Problem {
public IProblem getIProblem(){
return iProblem;
}
public int getTabIndex(){
return tabIndex;
}
public int getLineNumber(){
return lineNumber;
}
public void setType(int ProblemType){
if(ProblemType == ERROR)