Package com.volantis.mcs.interaction.operation

Examples of com.volantis.mcs.interaction.operation.Operation


                if (identifier == PolicyModel.CONVERSION_MODE) {
                    updateImagePreserveControlState((ImageConversionMode) newValue);
                }

                Proxy propertyProxy = metadataProxy.getPropertyProxy(descriptor.getIdentifier());
                Operation setValue = propertyProxy.prepareSetModelObjectOperation(newValue);
                context.executeOperation(setValue);
            }
        }
    }
View Full Code Here


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

                if (selectionBeanProxy != null &&
                        selectionBeanProxy.getBeanClassDescriptor().
                        getPropertyDescriptor(identifier) != null) {
                    Proxy propertyProxy =
                            selectionBeanProxy.getPropertyProxy(identifier);
                    Operation setValue = propertyProxy.
                            prepareSetModelObjectOperation(newValue);
                    context.executeOperation(setValue);
                }
            }
        }
View Full Code Here

            }
        }

        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

    public Operation prepareAddProxyItemOperation(Proxy itemProxy) {

        List proxyItems = Collections.singletonList(itemProxy);
        int index = this.proxyItems.size();

        Operation operation = new InsertProxyItemsOperation(this, index,
                proxyItems);

        return operation;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.interaction.operation.Operation

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.