Package com.volantis.mcs.eclipse.builder.editors.common

Examples of com.volantis.mcs.eclipse.builder.editors.common.EditorPropertyParser


     * @return PropertyValue
     */
    public PropertyValue getPropertyValue() {
        // Check if the first could actually be a StyleKeyword
        final String firstValue = first.getValue();
        final EditorPropertyParser parser = new EditorPropertyParser();
        PropertyValue value = parser.parsePropertyValue(property,
                firstValue, isImportant());

        // Ignore the second value if the first is a keyword or inherit.
        if (value == null || !(value.getValue() instanceof StyleKeyword ||
                value.getValue() instanceof StyleInherit)) {
            // If it's not then parse the whole fraction.
            value = parser.parsePropertyValue(property,getStringValue(),
                    isImportant());
        }
        return value;
    }
View Full Code Here


                // the units combo should not be enabled if the editable combo
                // contains a value which doesn't support a type (e.g.
                // StyleKeyword) or if it's empty (because it will be enabled when
                // the editable combo associated with it is edited).
                if (!"".equals(text)) {
                    EditorPropertyParser parser = new EditorPropertyParser();
                    PropertyValue propertyValue = parser.parsePropertyValue(
                            property, text, isImportant());
                    StyleValue value = propertyValue.getValue();
                    if (!(value instanceof StyleKeyword ||
                            value instanceof StyleInherit)) {
                        unitsCombo.setEnabled(b);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.builder.editors.common.EditorPropertyParser

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.