Package org.netbeans.modules.php.fuel.ui

Examples of org.netbeans.modules.php.fuel.ui.FuelPhpCustomizerPanel


        return errorMessage;
    }

    @NbBundle.Messages("FuelPhpModuleCustomizerExtender.error.source.invalid=Can't find source directory. Project might be broken.")
    void validate() {
        FuelPhpCustomizerPanel customizerPanel = getPanel();
        if (!customizerPanel.isFuelEnabled()) {
            isValid = true;
            errorMessage = null;
            return;
        }

        // get source directory
        FileObject sourceDirectory = phpModule.getSourceDirectory();
        if (sourceDirectory == null) {
            // broken project
            isValid = false;
            errorMessage = Bundle.FuelPhpModuleCustomizerExtender_error_source_invalid();
            return;
        }

        FuelPhpCustomizerValidator validator = new FuelPhpCustomizerValidator()
                .validateOilPath(sourceDirectory)
                .validateFuelDirectoryName(sourceDirectory, customizerPanel.getFuelName());
        ValidationResult result = validator.getResult();
        if (result.hasWarnings()) {
            isValid = false;
            errorMessage = result.getWarnings().get(0).getMessage();
            return;
View Full Code Here


        return enumSet;
    }

    private FuelPhpCustomizerPanel getPanel() {
        if (panel == null) {
            panel = new FuelPhpCustomizerPanel();
            panel.setFuelEnebled(isEnabled);
            panel.setFuelNameTextField(fuelName);
            panel.setUseTestCaseMethod(useTestCaseMethod);
            panel.setIgnoreMVCNode(ignoreMVCNode);
            panel.setTestCasePrefixTextField(testCasePrefix);
View Full Code Here

TOP

Related Classes of org.netbeans.modules.php.fuel.ui.FuelPhpCustomizerPanel

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.