Package com.volantis.mcs.eclipse.validation

Examples of com.volantis.mcs.eclipse.validation.ValidationMessageBuilder


                    "Root cannot be null.");
        }



        validationMessageBuilder = new ValidationMessageBuilder(
                DevicesMessages.getResourceBundle(), MESSAGE_KEY_MAPPINGS, null);

        visitor = new DuplicateDeviceNameVisitor();
        this.labelProvider = labelProvider;
        this.contentProvider = contentProvider;
View Full Code Here


        return dialog.open();
    }

    // javadoc inherited
    public ValidationStatus validate() {
        return VALIDATOR.validate(getValue(), new ValidationMessageBuilder(
                ControlsMessages.getResourceBundle(),
                MESSAGE_KEY_MAPPINGS,
                null));
    }
View Full Code Here

        setPageComplete(false);
        this.policyExtension = policyExtension;
        this.policyTypeNameAttribute = policyTypeNameAttribute;
        supplementaryFormatArgs[0] = policyTypeNameAttribute;
        messageBuilder =
                new ValidationMessageBuilder(WizardMessages.
                getResourceBundle(), MESSAGE_KEY_MAPPINGS,
                        supplementaryFormatArgs);
        this.policyNameLabel = policyNameLabel;
        this.currentSelection = selection;
    }
View Full Code Here

     */
    private static IndependentValidator createColorListValidator() {
        HashMap messageKeyMappings = new HashMap(1);
        messageKeyMappings.put(FaultTypes.INVALID_COLOR,
                               "ColorListSelectionDialog.invalidColor");
        ValidationMessageBuilder builder =
                new ValidationMessageBuilder(
                        ControlsMessages.getResourceBundle(),
                        messageKeyMappings,
                        null);
        Validator validator = new ColorValidator(NamedColor.getAllColors());
        return new IndependentValidator(validator, builder);
View Full Code Here

        messageKeyMappings.put(FaultTypes.INVALID_TIME,
                               TIME_RESOURCE_PREFIX + "invalidTime");
        messageKeyMappings.put(FaultTypes.ZERO_TIME,
                               TIME_RESOURCE_PREFIX + "zeroTime");

        ValidationMessageBuilder builder =
                new ValidationMessageBuilder(
                        ControlsMessages.getResourceBundle(),
                        messageKeyMappings,
                        null);
        return new IndependentValidator(validator, builder);
    }
View Full Code Here

        super(parent);
        this.currentSelection = initialSelection;
        setTitle(DIALOG_TITLE);
        setBlockOnOpen(true);

        messageBuilder = new ValidationMessageBuilder(
                    ControlsMessages.getResourceBundle(),
                    MESSAGE_KEY_MAPPINGS,
                    null);

View Full Code Here

    /**
     * Creates the validators for hours, minutes and seconds.
     */
    private void createValidators() {
        validationMessageBuilder = new ValidationMessageBuilder(
                ControlsMessages.getResourceBundle(),
                MESSAGE_KEY_MAPPINGS,
                null);
        BigIntegerValidator hoursBIV = new BigIntegerValidator("0");
        BigIntegerValidator minutesBIV = new BigIntegerValidator("0", "59");
View Full Code Here

            throw new IllegalArgumentException("Cannot be null: deviceRAM.");
        }

        this.deviceRAM = deviceRAM;

        messageBuilder = new ValidationMessageBuilder(
                DevicesMessages.getResourceBundle(),
                MESSAGE_KEY_MAPPINGS, SUPPLEMENTARY_ARGS);

        // set the page title
        setTitle(PAGE_TITLE);
View Full Code Here

                projectProvider,
                this.policyNameValidator);

        // Set up the message builder for errors etc
        this.validationMsgBuilder =
            new ValidationMessageBuilder(
                ControlsMessages.getResourceBundle(),
                MESSAGE_KEY_MAPPINGS,
                new Object[] {
                    EclipseCommonMessages.getLocalizedPolicyName(
                        selectionDialogDetails.entityId)});
View Full Code Here

        boolean valid = true;

        PolicyNameValidator policyNameValidator = new PolicyNameValidator();

        ValidationMessageBuilder builder = new ValidationMessageBuilder(BUNDLE,
                MESSAGE_KEY_MAPPINGS, new Object[]{resource.getName()});

        // Perform the validation and store the result of the validation.
        ValidationStatus status =
                policyNameValidator.validate(resource.getName(), builder);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.validation.ValidationMessageBuilder

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.