Examples of SelectionState


Examples of com.volantis.styling.impl.engine.selectionstates.SelectionState

        while (subject instanceof CompositeMatcher) {
            compositeSize += 1;
            subject = ((CompositeMatcher) subject).getSubject();
        }
        Styler[] stylers = new Styler[compositeSize];
        SelectionState requiredState = null;
        for (int i = 0; i < (stylers.length - 1); i++) {
            Matcher context = matcher.getContext();
            StateIndexKey key = new StateIndexKey(
                    requiredState, context, matcher.getOperator());
            SelectionState selectionState = (SelectionState) stateIndex.get(key);
            if (selectionState == null) {
                selectionState = createCompositeState(matcher.getOperator());
                stateIndex.put(key, selectionState);
                StylesDelta stateDelta = new StateChangeStylesDelta(selectionState);
                stylers[i] = new StylerImpl(source, priority, specificity,
View Full Code Here

Examples of com.volantis.styling.impl.engine.selectionstates.SelectionState

                    if (styler.isMatchAny()) {
                        matchAll.set(i);
                    }

                    SelectionState state =
                            styler.getRequiredSelectionState();
                    if (state != null) {
                        BitSet stateMatches =
                                (BitSet) statesIndex.get(state);
                        if (stateMatches == null) {
View Full Code Here

Examples of org.python.pydev.refactoring.codegenerator.generateproperties.request.SelectionState

        List<AbstractTextEdit> setters = new LinkedList<AbstractTextEdit>();
        List<AbstractTextEdit> deleters = new LinkedList<AbstractTextEdit>();

        /* Collect all edits and assign them to the corresponding editGroups. */
        for (GeneratePropertiesRequest req : requestProcessor.getRefactoringRequests()) {
            SelectionState state = req.getSelectionState();

            if (state.isGetter()) {
                getters.add(new GetterMethodEdit(req));
            }

            if (state.isSetter()) {
                setters.add(new SetterMethodEdit(req));
            }

            if (state.isDelete()) {
                deleters.add(new DeleteMethodEdit(req));
            }
        }

        List<AbstractTextEdit> propertyEdits = new LinkedList<AbstractTextEdit>();
View Full Code Here

Examples of org.python.pydev.refactoring.codegenerator.generateproperties.request.SelectionState

    private IDocument applyGenerateProperties(MockupGeneratePropertiesRequestProcessor requestProcessor)
            throws BadLocationException, MalformedTreeException, MisconfigurationException {
        IDocument refactoringDoc = new Document(data.source);
        MultiTextEdit multi = new MultiTextEdit();
        for (GeneratePropertiesRequest req : requestProcessor.getRefactoringRequests()) {
            SelectionState state = req.getSelectionState();

            if (state.isGetter()) {
                multi.addChild(new GetterMethodEdit(req).getEdit());
            }
            if (state.isSetter()) {
                multi.addChild(new SetterMethodEdit(req).getEdit());
            }
            if (state.isDelete()) {
                multi.addChild(new DeleteMethodEdit(req).getEdit());
            }
            multi.addChild(new PropertyEdit(req).getEdit());
        }
        multi.apply(refactoringDoc);
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.