Package com.volantis.mcs.interaction

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


                            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

            }
        }

        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

        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

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.