Package com.volantis.mcs.model.path

Examples of com.volantis.mcs.model.path.PropertyStep


        // contains content, then focus the design page and display it.
        boolean seekingContent = true;
        for (int i = 0; i < path.getStepCount() && seekingContent; i++) {
            Step step = path.getStep(i);
            if (step instanceof PropertyStep) {
                PropertyStep property = (PropertyStep) step;
                if (PolicyModel.CONTENT.getName().equals(property.getProperty())) {
                    layoutDesignPart.setFocus(path);
                    setActivePage(indexOfDesignPart);
                    seekingContent = false;
                }
            }
View Full Code Here


        boolean seekingRules = true;
        int stepCount = path.getStepCount();
        for (int i = 0; i < stepCount && seekingRules; i++) {
            Step step = path.getStep(i);
            if (step instanceof PropertyStep) {
                PropertyStep property = (PropertyStep) step;
                if (ThemeModel.RULES.getName().equals(property.getProperty())) {
                    if ((i + 1) < stepCount) {
                        Step deviceIndexStep = path.getStep(i + 1);
                        if (deviceIndexStep instanceof IndexedStep) {
                            int deviceThemeIndex = ((IndexedStep) deviceIndexStep).getIndex();
                            ISelection newSelection = new StructuredSelection(ruleTable.getElementAt(deviceThemeIndex));
View Full Code Here

        boolean seekingVariants = true;
        int stepCount = path.getStepCount();
        for (int i = 0; i < stepCount && seekingVariants; i++) {
            Step step = path.getStep(i);
            if (step instanceof PropertyStep) {
                PropertyStep property = (PropertyStep) step;
                if (PolicyModel.VARIANTS.getName().equals(
                        property.getProperty())) {
                    if ((i + 1) < stepCount) {
                        Step variantIndexStep = path.getStep(i + 1);
                        if (variantIndexStep instanceof IndexedStep) {
                            int variantIndex =
                                    ((IndexedStep) variantIndexStep).getIndex();
View Full Code Here

        // contains content, then focus the design page and display it.
        boolean seekingContent = true;
        for (int i = 0; i < path.getStepCount() && seekingContent; i++) {
            Step step = path.getStep(i);
            if (step instanceof PropertyStep) {
                PropertyStep property = (PropertyStep) step;
                if (PolicyModel.CONTENT.getName().equals(property.getProperty())) {
                    design.setFocus(path);
                    setActivePage(designIndex);
                    seekingContent = false;
                }
            }
View Full Code Here

        boolean seekingStyleProperties = true;
        int stepCount = path.getStepCount();
        for (int i = 0; i < stepCount && seekingStyleProperties; i++) {
            Step step = path.getStep(i);
            if (step instanceof PropertyStep) {
                PropertyStep property = (PropertyStep) step;
                if (Rule.STYLE_PROPERTIES.getName().equals(property.getProperty())) {
                    if ((i + 1) < stepCount) {
                        Step stylePropertyStep = path.getStep(i + 1);
                        if (stylePropertyStep instanceof PropertyStep) {
                            String propertyName = ((PropertyStep) stylePropertyStep).getProperty();
                            focusStyleProperty(propertyName);
View Full Code Here

        boolean seekingMetadata = true;
        int stepCount = path.getStepCount();
        for (int i = 0; i < stepCount && seekingMetadata; i++) {
            Step step = path.getStep(i);
            if (step instanceof PropertyStep) {
                PropertyStep property = (PropertyStep) step;
                if (PolicyModel.META_DATA.getName().equals(property.getProperty())) {
                    if ((i + 1) < stepCount) {
                        Step stylePropertyStep = path.getStep(i + 1);
                        if (stylePropertyStep instanceof PropertyStep) {
                            String propertyName = ((PropertyStep) stylePropertyStep).getProperty();
                            focusMetadata(propertyName);
View Full Code Here

        }
    }

    public Proxy traverse(Step step, boolean enclosing, List proxies) {
        if (step instanceof PropertyStep) {
            PropertyStep propertyStep = (PropertyStep) step;
            String property = propertyStep.getProperty();
            PropertyIdentifier identifier =
                    beanClassDescriptor.getPropertyIdentifier(property);
            if (identifier != null) {
                return getPropertyProxy(identifier);
            }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.model.path.PropertyStep

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.