better error message

This commit is contained in:
Bas Leijdekkers
2011-04-11 14:54:03 +02:00
parent a5b15ac1e7
commit f97f689d50
2 changed files with 2 additions and 1 deletions
@@ -1265,7 +1265,7 @@ public class HighlightUtil {
return null;
}
HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, expression, JavaErrorMessages.message("expression.expected"));
HighlightInfo info = HighlightInfo.createHighlightInfo(HighlightInfoType.ERROR, expression, JavaErrorMessages.message("array.initializer.not.allowed"));
QuickFixAction.registerQuickFixAction(info, new AddNewArrayExpressionFix(expression));
return info;
}
@@ -207,6 +207,7 @@ package.local.symbol=''{0}'' is not public in ''{1}''. Cannot be accessed from o
visibility.access.problem=Cannot access ''{0}'' in ''{1}''
array.type.expected=Array type expected; found: ''{0}''
expression.expected=Expression expected
array.initializer.not.allowed=Array initializer is not allowed here
case.statement.outside.switch=Case statement outside switch
qualified.enum.constant.in.switch=An enum switch case label must be the unqualified name of an enumeration constant
constant.expression.required=Constant expression required