Class ExpressionsValidationUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.expressions.ui.editor.ExpressionsValidationUtil
-
public class ExpressionsValidationUtil extends Object
DCS expressions validation util
-
-
Constructor Summary
Constructors Constructor Description ExpressionsValidationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createIssueMessage(org.eclipse.xtext.validation.Issue issue)
Create message from issuestatic List<org.eclipse.xtext.validation.Issue>
getErrors(List<org.eclipse.xtext.validation.Issue> issues)
Get errors from all issuesstatic int
openIssuesDialog(List<org.eclipse.xtext.validation.Issue> issues, boolean ignore)
Create dialog with information about issuesstatic List<org.eclipse.xtext.validation.Issue>
validate(org.eclipse.core.resources.IProject project, IV8Project v8project, DataCompositionSchema schema, DcsAvailableSettingsSourceForSchema fieldsSource, DcsAvailableSettingsSourceForSchema.FieldUse fieldUse, String text, String nestedSchemaName, boolean onlyErrors)
Validate text
-
-
-
Method Detail
-
validate
public static List<org.eclipse.xtext.validation.Issue> validate(org.eclipse.core.resources.IProject project, IV8Project v8project, DataCompositionSchema schema, DcsAvailableSettingsSourceForSchema fieldsSource, DcsAvailableSettingsSourceForSchema.FieldUse fieldUse, String text, String nestedSchemaName, boolean onlyErrors)
Validate text- Parameters:
project
- project, can't benull
v8project
- the V8 project, can't be nullschema
- dcs schema, can't benull
fieldsSource
- available fields source, can't benull
fieldUse
- fields kindtext
- text, can't benull
nestedSchemaName
- nested schema name, can't benull
onlyErrors
- ignore warnings- Returns:
- list of errors, never
null
-
getErrors
public static List<org.eclipse.xtext.validation.Issue> getErrors(List<org.eclipse.xtext.validation.Issue> issues)
Get errors from all issues- Parameters:
issues
- list of all issues, can't be null- Returns:
- list of errors, never null
-
openIssuesDialog
public static int openIssuesDialog(List<org.eclipse.xtext.validation.Issue> issues, boolean ignore)
Create dialog with information about issues- Parameters:
issues
- list of issues, can't be null, must contain errorignore
- ignore errors- Returns:
- dialog return code
-
createIssueMessage
public static String createIssueMessage(org.eclipse.xtext.validation.Issue issue)
Create message from issue- Parameters:
issue
- issue, can't be null- Returns:
- message, never null
-
-