Package org.python.pydev.refactoring.core.model

Examples of org.python.pydev.refactoring.core.model.OffsetStrategyModel


    public int getOffsetStrategy() {
        IStructuredSelection sel = (IStructuredSelection) methodInsertionComb.getSelection();

        if (!sel.isEmpty()) {
            OffsetStrategyModel elem = (OffsetStrategyModel) sel.getFirstElement();
            return elem.getStrategy();
        }
        return strategyProvider.get(0).getStrategy();
    }
View Full Code Here


        insertionPointCmb = createComboViewer(comboComp);
        insertionPointCmb.addSelectionChangedListener(new ISelectionChangedListener() {
            public void selectionChanged(SelectionChangedEvent event) {
                IStructuredSelection sel = (IStructuredSelection) event.getSelection();
                if (!sel.isEmpty()) {
                    OffsetStrategyModel elem = (OffsetStrategyModel) sel.getFirstElement();
                    getRequestProcessor().setInsertionPoint(elem.getStrategy());
                }
            }
        });
        getRequestProcessor().setInsertionPoint(strategyProvider.get(0).getStrategy());
        insertionPointCmb.getCombo().select(0);
View Full Code Here

        methodInsertionComb = createComboViewer(comboComp);
        methodInsertionComb.addSelectionChangedListener(new ISelectionChangedListener() {
            public void selectionChanged(SelectionChangedEvent event) {
                IStructuredSelection sel = (IStructuredSelection) event.getSelection();
                if (!sel.isEmpty()) {
                    OffsetStrategyModel elem = (OffsetStrategyModel) sel.getFirstElement();
                    getRequestProcessor().setMethodDestination(elem.getStrategy());
                }
            }
        });

        getRequestProcessor().setMethodDestination(strategyProvider.get(0).getStrategy());
View Full Code Here

        methodInsertionComb = createComboViewer(comboComp);
        methodInsertionComb.addSelectionChangedListener(new ISelectionChangedListener() {
            public void selectionChanged(SelectionChangedEvent event) {
                IStructuredSelection sel = (IStructuredSelection) event.getSelection();
                if (!sel.isEmpty()) {
                    OffsetStrategyModel elem = (OffsetStrategyModel) sel.getFirstElement();
                    getRequestProcsseor().setMethodDestination(elem.getStrategy());
                }
            }
        });
        getRequestProcsseor().setMethodDestination(strategyProvider.get(0).getStrategy());
        methodInsertionComb.getCombo().select(0);

        propertyInsertionLbl = new CLabel(comboComp, SWT.NONE);
        propertyInsertionLbl.setText(offsetStrategyInsertionPointProperty);
        propertyInsertionComb = createComboViewer(comboComp);

        propertyInsertionComb.addSelectionChangedListener(new ISelectionChangedListener() {
            public void selectionChanged(SelectionChangedEvent event) {
                IStructuredSelection sel = (IStructuredSelection) event.getSelection();
                if (!sel.isEmpty()) {
                    OffsetStrategyModel elem = (OffsetStrategyModel) sel.getFirstElement();
                    getRequestProcsseor().setPropertyDestination(elem.getStrategy());
                }
            }
        });

        getRequestProcsseor().setPropertyDestination(strategyProvider.get(2).getStrategy());
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.core.model.OffsetStrategyModel

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.