Examples of SettingsNodeVersion1


Examples of org.gradle.openapi.external.ui.SettingsNodeVersion1

    public void setValueOfChildAsLong(String name, long value) {
        setValueOfChild(name, Long.toString(value));
    }

    public boolean getValueOfChildAsBoolean(String name, boolean defaultValue) {
        SettingsNodeVersion1 settingsNode = getChildNode(name);
        if (settingsNode != null) {
            String value = settingsNode.getValue();

            //I'm not calling 'Boolean.parseBoolean( value )' because it will return false if the value isn't true/false
            //and we want it to return whatever the default is if its not a boolean.
            if (value != null) {
                if ("true".equalsIgnoreCase(value)) {
View Full Code Here

Examples of org.gradle.openapi.external.ui.SettingsNodeVersion1

    public void setValueOfChildAsBoolean(String name, boolean value) {
        setValueOfChild(name, Boolean.toString(value));
    }

    public SettingsNodeVersion1 addChild(String name) {
        SettingsNodeVersion1 childNode = new TestSettingsNodeVersion1(this);
        childNode.setName(name);

        children.add(childNode);
        return childNode;
    }
View Full Code Here

Examples of org.gradle.openapi.external.ui.SettingsNodeVersion1

        children.add(childNode);
        return childNode;
    }

    public SettingsNodeVersion1 addChildIfNotPresent(String name) {
        SettingsNodeVersion1 settingsNode = getChildNode(name);
        if (settingsNode == null) {
            settingsNode = addChild(name);
        }

        return settingsNode;
View Full Code Here

Examples of org.gradle.openapi.external.ui.SettingsNodeVersion1

            return null;
        }

        String firstPathPortion = pathPortions[0];

        SettingsNodeVersion1 currentNode = getChildNode(firstPathPortion);

        int index = 1; //Skip the first one. we've already used that one.
        while (index < pathPortions.length && currentNode != null) {
            String pathPortion = pathPortions[index];
            currentNode = currentNode.getChildNode(pathPortion);
            index++;
        }

        return currentNode;
    }
View Full Code Here

Examples of org.gradle.openapi.external.ui.SettingsNodeVersion1

            return null;
        }

        String firstPathPortion = pathPortions[0];

        SettingsNodeVersion1 currentNode = getChildNode(firstPathPortion);
        if (currentNode == null) {
            currentNode = addChild(firstPathPortion);
        }

        int index = 1;
        while (index < pathPortions.length) {
            String pathPortion = pathPortions[index];
            currentNode = currentNode.getChildNode(pathPortion);
            if (currentNode == null) {
                currentNode = addChild(firstPathPortion);
            }

            index++;
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.