Examples of prepareCreateAndAddProxyItemOperation()


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

    private void createActions() {
        addAction = new Action() {
            public void run() {
                ListProxy rules = (ListProxy) getSelectedStyleSheetProxy().
                        getPropertyProxy(ThemeModel.RULES);
                Operation addOp = rules.prepareCreateAndAddProxyItemOperation();
                context.executeOperation(addOp);
                refreshRuleTable();
            }
        };
        addAction.setText(EditorMessages.getString(
View Full Code Here

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

                SelectorGroup group = wizard.getSelectorGroup();

                if (group != null) {
                    ListProxy rules = (ListProxy) getSelectedStyleSheetProxy().
                            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);
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.