Package org.python.pydev.refactoring.codegenerator.generateproperties.request

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


    private List<GeneratePropertiesRequest> generateRequests() {
        List<GeneratePropertiesRequest> requests = new ArrayList<GeneratePropertiesRequest>();

        for (TreeAttributeNode elem : getAttributes()) {
            GeneratePropertiesRequest request = extractRequest(elem);
            if (request != null) {
                requests.add(request);
            }
        }
View Full Code Here


    private GeneratePropertiesRequest extractRequest(TreeAttributeNode attr) {
        if (attr.getParent() != null && attr.getParent() instanceof TreeClassNode) {
            TreeClassNode classNode = (TreeClassNode) attr.getParent();

            return new GeneratePropertiesRequest(classNode.getAdapter(), attr.getAdapter(), getProperties(attr),
                    offsetMethodStrategy, offsetPropertyStrategy, accessModifier, adapterPrefs);
        }
        return null;
    }
View Full Code Here

        for (int elem : methodSelection) {
            properties.add(new PropertyTextAdapter(elem, ""));
        }

        List<GeneratePropertiesRequest> requests = new ArrayList<GeneratePropertiesRequest>();
        GeneratePropertiesRequest req;
        for (INodeAdapter elem : attributes) {
            req = new GeneratePropertiesRequest(clazz, elem, properties, methodOffsetStrategy, propertyOffsetStrategy,
                    accessModifier, new AdapterPrefs("\n", new IGrammarVersionProvider() {

                        public int getGrammarVersion() throws MisconfigurationException {
                            return IGrammarVersionProvider.GRAMMAR_PYTHON_VERSION_2_7;
                        }
View Full Code Here

TOP

Related Classes of org.python.pydev.refactoring.codegenerator.generateproperties.request.GeneratePropertiesRequest

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.