Examples of prepareSetModelObjectOperation()


Examples of com.volantis.mcs.interaction.BaseProxy.prepareSetModelObjectOperation()

                BaseProxy metadataBase =
                    (BaseProxy)selectedVariant
                        .getPropertyProxy(PolicyModel.META_DATA);
                if (metadataBase != null) {
                    Operation setValue =
                        metadataBase.prepareSetModelObjectOperation(null);
                    context.executeOperation(setValue);
                }
            }

            enabled = false;
View Full Code Here

Examples of com.volantis.mcs.interaction.ListProxy.prepareSetModelObjectOperation()

                    String oldValue = labelProvider.getColumnText(ruleProxy, COLUMN_SELECTOR);
                    if (!oldValue.equals(newValue)) {
                        List parsed =
                                CSS_PARSER.parseSelectorGroup((String) newValue);
                        ListProxy selectorsProxy = (ListProxy) ruleProxy.getPropertyProxy(Rule.SELECTORS);
                        Operation setList = selectorsProxy.prepareSetModelObjectOperation(parsed);
                        context.executeOperation(setList);
                    }
                }
            }
        });
View Full Code Here

Examples of com.volantis.mcs.interaction.ListProxy.prepareSetModelObjectOperation()

                            getPropertyProxy(ThemeModel.RULES);
                    Operation addOp = rules.prepareCreateAndAddProxyItemOperation();
                    context.executeOperation(addOp);
                    BeanProxy newRule = (BeanProxy) rules.getItemProxy(rules.size() - 1);
                    ListProxy selectors = (ListProxy) newRule.getPropertyProxy(Rule.SELECTORS);
                    Operation setOp = selectors.prepareSetModelObjectOperation(wizard.getSelectorGroup().getSelectors());
                    context.executeOperation(setOp);
                }
            }
        };
        newAction.setText(EditorMessages.getString(
View Full Code Here

Examples of com.volantis.mcs.interaction.ListProxy.prepareSetModelObjectOperation()

            }
        }

        BeanProxy targetedSelection = (BeanProxy) getSelectionProxy();
        ListProxy categories = (ListProxy) targetedSelection.getPropertyProxy(PolicyModel.CATEGORY_REFERENCES);
        Operation setCategories = categories.prepareSetModelObjectOperation(categoryTargets);
        ListProxy devices = (ListProxy) targetedSelection.getPropertyProxy(PolicyModel.DEVICE_REFERENCES);
        Operation setDevices = devices.prepareSetModelObjectOperation(deviceTargets);

        // TODO later Should be merged into a compound operation for future undo implementation
        context.executeOperation(setCategories);
View Full Code Here

Examples of com.volantis.mcs.interaction.ListProxy.prepareSetModelObjectOperation()

        BeanProxy targetedSelection = (BeanProxy) getSelectionProxy();
        ListProxy categories = (ListProxy) targetedSelection.getPropertyProxy(PolicyModel.CATEGORY_REFERENCES);
        Operation setCategories = categories.prepareSetModelObjectOperation(categoryTargets);
        ListProxy devices = (ListProxy) targetedSelection.getPropertyProxy(PolicyModel.DEVICE_REFERENCES);
        Operation setDevices = devices.prepareSetModelObjectOperation(deviceTargets);

        // TODO later Should be merged into a compound operation for future undo implementation
        context.executeOperation(setCategories);
        context.executeOperation(setDevices);
    }
View Full Code Here

Examples of com.volantis.mcs.interaction.Proxy.prepareSetModelObjectOperation()

     */
    private void setModelContent(ContentBuilder content) {
        BeanProxy selectedVariant = context.getSelectedVariant();
        if (selectedVariant != null) {
            Proxy contentProxy = selectedVariant.getPropertyProxy(PolicyModel.CONTENT);
            Operation setContent = contentProxy.prepareSetModelObjectOperation(content);
            context.executeOperation(setContent);
        }
    }

    /**
 
View Full Code Here

Examples of com.volantis.mcs.interaction.Proxy.prepareSetModelObjectOperation()

                                PropertyDescriptor property,
                                Object newValue) {
                            Proxy propertyProxy = ((BeanProxy) context.
                                    getInteractionModel()).getPropertyProxy(
                                    property.getIdentifier());
                            Operation setOp = propertyProxy.
                                    prepareSetModelObjectOperation(newValue);
                            context.executeOperation(setOp);
                        }
                    });
        }
View Full Code Here

Examples of com.volantis.mcs.interaction.Proxy.prepareSetModelObjectOperation()

                Proxy categorisationScheme = model.getPropertyProxy(
                        PolicyModel.CATEGORISATION_SCHEME);

                if (!ObjectHelper.equals(policyName,
                        categorisationScheme.getModelObject())) {
                    Operation setSchemeOp = categorisationScheme
                            .prepareSetModelObjectOperation(policyName);
                    context.executeOperation(setSchemeOp);
                }
            }
        });
View Full Code Here

Examples of com.volantis.mcs.interaction.Proxy.prepareSetModelObjectOperation()

                    String oldValue = labelProvider.getColumnText(ruleProxy, COLUMN_SELECTOR);
                    if (!oldValue.equals(newValue)) {
                        List parsed =
                                CSS_PARSER.parseSelectorGroup((String) newValue);
                        ListProxy selectorsProxy = (ListProxy) ruleProxy.getPropertyProxy(Rule.SELECTORS);
                        Operation setList = selectorsProxy.prepareSetModelObjectOperation(parsed);
                        context.executeOperation(setList);
                    }
                }
            }
        });
View Full Code Here

Examples of com.volantis.mcs.interaction.Proxy.prepareSetModelObjectOperation()

            // don't alter the value (such as adding irrelevant whitespace)
            // from being seen as modifications leading to exceptions when
            // carrying out the set operation.
            if ((newPropertyValue == null) ? oldPropertyValue != null :
                    !newPropertyValue.equals(oldPropertyValue)) {
                Operation operation = valueProxy.prepareSetModelObjectOperation(newPropertyValue);
                context.executeOperation(operation);
            }
        }
    }
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.