Adjust Problem changes

This commit is contained in:
Rostyslav Zatserkovnyi
2016-05-09 00:48:37 +03:00
parent 41ac2f35d9
commit ec6010bf45
3 changed files with 2 additions and 11 deletions

View File

@@ -256,7 +256,7 @@ public class ErrorMessageSimplifier {
break;
case IProblem.HidingEnclosingType:
if (args.length > 0 && args[0].equals(problem.getClassName())) {
if (args.length > 0) {
result = Language.interpolate("editor.status.hiding_enclosing_type", args[0]);
}
}

View File

@@ -37,10 +37,6 @@ public class Problem implements ErrorTable.Entry {
* The IProblem which is being wrapped
*/
private IProblem iProblem;
/**
* The class name for the current sketch
*/
private String className;
/**
* The tab number to which the error belongs to
*/
@@ -87,7 +83,6 @@ public class Problem implements ErrorTable.Entry {
}
this.tabIndex = tabIndex;
this.lineNumber = lineNumber;
this.className = iProblem.getArguments()[0];
this.message = process(iProblem);
this.message = ErrorMessageSimplifier.getSimplifiedErrorMessage(this);
//ErrorMessageSimplifier.getSimplifiedErrorMessage(this);
@@ -128,10 +123,6 @@ public class Problem implements ErrorTable.Entry {
return iProblem;
}
public String getClassName() {
return className;
}
public int getTabIndex() {
return tabIndex;
}