Package com.puppetlabs.geppetto.pp.dsl.ui.preferences.editors

Examples of com.puppetlabs.geppetto.pp.dsl.ui.preferences.editors.ValidationPreferenceFieldEditor


public class PPPotentialProblemsPreferencePage extends AbstractPreferencePage {

  @Override
  protected void createFieldEditors() {

    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_CIRCULAR_DEPENDENCY, "Circular Module Dependency", getFieldEditorParent()));
    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_INTERPOLATED_HYPHEN, "Interpolated hyphen without surrounding {}",
      getFieldEditorParent()));
    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_BOOLEAN_STRING, "Strings containing \"false\" or \"true\"",
      getFieldEditorParent()));
    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_MISSING_DEFAULT, "Missing 'default' in selector", getFieldEditorParent()));
    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_ASSIGNMENT_TO_VAR_NAMED_STRING, "Assignment to $string",
      getFieldEditorParent()));
  }
View Full Code Here


  @Override
  protected void createFieldEditors() {

    // case and selector
    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_CASE_DEFAULT_LAST, "Case statement where a 'default' is not last",
      getFieldEditorParent()));
    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_SELECTOR_DEFAULT_LAST, "Selector expression where a 'default' is not last",
      getFieldEditorParent()));

    // strings and interpolation
    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_DQ_STRING_NOT_REQUIRED, "Strings that do not require double quoting",
      getFieldEditorParent()));
    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_DQ_STRING_NOT_REQUIRED_VAR, "Strings containing a single interpolation",
      getFieldEditorParent()));
    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_UNBRACED_INTERPOLATION, "Interpolated variables without braces",
      getFieldEditorParent()));

    // Resources
    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_UNQUOTED_RESOURCE_TITLE, "Unquoted resource titles", getFieldEditorParent()));

    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_ML_COMMENTS, "Comments using /* */", getFieldEditorParent()));

    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_RTOL_RELATIONSHIP, "Right to left relationships using <- or <~",
      getFieldEditorParent()));

    this.addField(new ValidationPreferenceFieldEditor(
      PPPreferenceConstants.PROBLEM_ENSURE_NOT_FIRST, "Resource property ensure is not stated first",
      getFieldEditorParent()));

  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.pp.dsl.ui.preferences.editors.ValidationPreferenceFieldEditor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.