Examples of PolicyNameValidator


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

     */
    public PolicySelectorBrowseAction(FileExtension extension) {
        this.extensions = new FileExtension[]{extension};
        // create the validator
        this.policyNameValidator =
                    new PolicyNameValidator(null, extensions, false);
    }
View Full Code Here

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

                    controlDetails.attributesComposite,
                    SWT.NONE, selectionDialogDetails,
                    projectProvider);

            // Create a PolicyNameValidator suitable for this control.
            PolicyNameValidator validator =
                    new PolicyNameValidator(null, extensions, false, true);

            policySelector.setData(AttributesComposite.VALIDATOR_KEY,
                    validator);

            createTextButton(policySelector, controlDetails);
View Full Code Here

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

                    new PolicySelector(controlDetails.attributesComposite,
                            SWT.NONE, selectionDialogDetails,
                            projectProvider);

            // Create a PolicyNameValidator suitable for this control.
            PolicyNameValidator validator =
                    new PolicyNameValidator(null, extensions, false);

            policySelector.setData(AttributesComposite.VALIDATOR_KEY,
                    validator);

            createTextButton(policySelector, controlDetails);
View Full Code Here

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

        this.selectionDialogDetails = selectionDialogDetails;

        // Set the validator, which depends on the selection dialog details
        // (because that contains the extensions)
        this.policyNameValidator =
            new PolicyNameValidator(null,
                this.selectionDialogDetails.fileExtensions, false);

        // Construct the selection dialog, which depends on the selection
        // dialog details (for appearance) and the validator (for the extensions)
        this.treeSelectionDialog =
View Full Code Here

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

     */
    private boolean validatePolicyName(IResource resource) {

        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);

        if (status.getSeverity() == ValidationStatus.ERROR) {
            valid = false;
        } else if (status.getSeverity() == ValidationStatus.WARNING) {
            valid = false;
View Full Code Here

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

        {FileExtension.getFileExtensionForPolicyType(componentName)};

        SelectionDialogDetails selectionDialogDetails = new SelectionDialogDetails
                (componentName, title, message, emptyListMessage, fileExtensions);

        PolicyNameValidator policyNameValidator =
                new PolicyNameValidator(null, fileExtensions, false);

        PolicyTreeSelectionDialog dialog = new PolicyTreeSelectionDialog(
                this.getShell(),
                selectionDialogDetails,
                new QualifiedName(getClass().toString(),
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.