Examples of EditorPosition


Examples of edu.stanford.bmir.gwtcodemirror.client.EditorPosition

    @Override
    public void setError(ManchesterSyntaxFrameParseError error) {
        int line = error.getLine() - 1;
        int col = error.getCol();
        editor.setErrorRange(new EditorPosition(line, col), new EditorPosition(line, col + error.getToken().length()));
        errorMessageView.setErrorMessage(error.getMessage());
        errorMessageView.setCurrentToken(error.getToken());
        errorMessageView.setExpectedEntityTypes(error.getExpectedEntityTypes());
        showErrorMessageView();
    }
View Full Code Here

Examples of edu.stanford.bmir.gwtcodemirror.client.EditorPosition

            int lastWordStartIndex = getLastWordIndex(syntax, from);
            int lastWordEndIndex = getWordEnd(syntax, from);

            int fromLineNumber = action.getFromPos().getLineNumber();
            int fromColumnNumber = (action.getFromPos().getColumnNumber() - (from - lastWordStartIndex));
            EditorPosition fromPos = new EditorPosition(fromLineNumber, fromColumnNumber);
            EditorPosition toPos = new EditorPosition(fromLineNumber, action.getFromPos().getColumnNumber() + (lastWordEndIndex - from));
            String lastWordPrefix = syntax.substring(lastWordStartIndex, from).toLowerCase();
            List<AutoCompletionChoice> choices = Lists.newArrayList();

            List<AutoCompletionChoice> entityChoices = getEntityAutocompletionChoices(action, project, e, fromPos, toPos, lastWordPrefix);
            choices.addAll(entityChoices);
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.