Package org.python.pydev.editor.actions.PyFormatStd

Examples of org.python.pydev.editor.actions.PyFormatStd.FormatStd


                    if (whitespacesAtEnd == 0) {
                        strToAdd.insert(0, ' '); //it's a comment already, but as it has no spaces in the end, let's add one.
                    }

                } else {
                    FormatStd formatStd = IgnoreErrorParticipant.this.format;
                    if (formatStd == null) {
                        formatStd = PyFormatStd.getFormat();
                    }

                    strToAdd.insert(0, '#');
View Full Code Here


    }

    @Override
    public void propertyChange(PropertyChangeEvent event) {
        super.propertyChange(event);
        FormatStd formatStd = new FormatStd();
        formatStd.assignWithSpaceInsideParens = this.assignWithSpaceInsideParentesis.getBooleanValue();
        formatStd.operatorsWithSpace = operatorsWithSpace.getBooleanValue();
        formatStd.parametersWithSpace = spaceForParentesis.getBooleanValue();
        formatStd.spaceAfterComma = spaceAfterComma.getBooleanValue();
        formatStd.addNewLineAtEndOfFile = addNewLineAtEndOfFile.getBooleanValue();
View Full Code Here

    }

    public void setUp() throws Exception {
        super.setUp();
        format = new FormatStd();
        format.spacesBeforeComment = 2;
        participant = new IgnoreErrorParticipant(format);
        prefs = new AnalysisPreferencesStub();
        props = new ArrayList<ICompletionProposal>();
    }
View Full Code Here

TOP

Related Classes of org.python.pydev.editor.actions.PyFormatStd.FormatStd

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.