mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better error message
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user