Package com.python.pydev.analysis.messages

Examples of com.python.pydev.analysis.messages.Message


                //keep going... nothing to see here...
                return;
            }
        }

        messages.add(new Message(IAnalysisPreferences.TYPE_PEP8, text, lineNumber, lineNumber, offset + 1, len, prefs));
    }
View Full Code Here


                int startLine = PySelection.getLineOfOffset(doc, offset) + 1;
                int startCol = 1;
                int endCol = startCol + lenFound;

                buffer.clear();
                ret.add(new Message(IAnalysisPreferences.TYPE_INDENTATION_PROBLEM, buffer.append("Bad Indentation (")
                        .append(lenFound).append(" spaces)").toString(), startLine, startLine, startCol, endCol,
                        analysisPrefs));

            }
View Full Code Here

                    } else {
                        break;
                    }
                }

                ret.add(new Message(IAnalysisPreferences.TYPE_INDENTATION_PROBLEM, errorMsg, startLine, startLine,
                        startCol, endCol, analysisPrefs));

            } catch (BadLocationException e) {
                Log.log(e);
            }
View Full Code Here

            if (!shouldAddUnusedImportMessage()) {
                return;
            }
        }

        Message messageToAdd = new Message(type, string, token, prefs);

        doAddMessage(msgs, messageToAdd);
    }
View Full Code Here

                    int startCol = openParensPos - document.getLineInformationOfOffset(openParensPos).getOffset() + 1;

                    //+1 doc to ast +1 because we also want to get the closing ')' char.
                    int endCol = closeParensPos - document.getLineInformationOfOffset(closeParensPos).getOffset() + 1
                            + 1;
                    Message messageToAdd = new Message(IAnalysisPreferences.TYPE_ARGUMENTS_MISATCH, buf.toString(),
                            startLine, endLine, startCol, endCol, prefs);
                    doAddMessage(msgs, messageToAdd);
                    return;
                }
            }
View Full Code Here

TOP

Related Classes of com.python.pydev.analysis.messages.Message

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.