Package com.volantis.mcs.eclipse.builder.wizards.themes

Examples of com.volantis.mcs.eclipse.builder.wizards.themes.SelectorGroupWizard


        addAction.setText(EditorMessages.getString(
                RESOURCE_PREFIX + "addAction.text"));

        newAction = new Action() {
            public void run() {
                SelectorGroupWizard wizard = new SelectorGroupWizard(
                        getShell(),
                        context.getProject());
                wizard.open();
                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);
                }
            }
        };
        newAction.setText(EditorMessages.getString(
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.builder.wizards.themes.SelectorGroupWizard

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.